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)[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) – The size distribution bin width in microns.

  • num_bins (int) – The number of size bins

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

Returns:

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