pysp2.util.gaussian_fit#

pysp2.util.gaussian_fit(my_ds, config, parallel=False, num_records=None)[source]#

Does Gaussian fitting for each wave in the dataset. This will do the fitting for channel 0 only.

Parameters:
  • my_ds (xarray Dataset) – Raw SP2 binary dataset

  • config (ConfigParser object) – The configuration loaded from the INI file.

  • parallel (str or bool) – If ‘dask’, use dask.bag to enable parallelism If ‘multiprocessing’ use multiprocessing.Pool to enable parallelism. By default, no parallelism is enabled (parallel=False).

  • num_records (int or None) – Only process first num_records datapoints. Set to None to process all records.

Returns:

wave_ds (xarray Dataset) – Dataset with gaussian fits