pysp2.util.process_psds#

pysp2.util.process_psds(particle_ds, hk_ds, config, deltaSize=0.005, num_bins=199, avg_interval=10, deadtime_correction=False, leo_fits=False, Globals=None)[source]#

Processes the Scattering and BC mass size distributions:

Parameters:
  • particle_ds (xarrray Dataset) – The xarray Dataset containing the particle statistics (.dat file information).

  • hk_ds (xarray Dataset) – The xarray Dataset containing the housekeeping variables

  • config (dict) – The .ini file loaded as a dict.

  • deltaSize (float or str) – The size distribution bin width in microns if input is float. If ‘log’ then the size distribution bin width will be even in log space.

  • num_bins (int) – The number of size bins

  • avg_interval (int) – The time in seconds to average the concentrations into.

  • deadtime_correction (bool) – Set to True if you want to correct for the deatime. Default is False.

  • leo_fits (bool) – Set to True if you want to do LEO-fits. Default is False. LEO fits are done using utils/leo_fits.py

  • Globals (DMTGlobals structure or None) – DMTGlobals structure containing calibration coefficients. Set to None to use default values for MOSAiC.

Returns:

psd_ds (xarray Dataset) – The xarray Dataset containing the time-averaged particle statistics.