imap_processing.codice.codice_l1a.create_binned_dataset#

imap_processing.codice.codice_l1a.create_binned_dataset(apid: int, dataset: Dataset, science_values: list[str]) Dataset#

Create dataset for data that is binned by energy.

This applies to the hi-omni and hi-sectored datasets. In addition to data for species (e.g. h, c, o, etc.), we add CDF variables for their respective energy bin centers and deltas (e.g. energy_h, energy_h_delta, etc.)

Parameters:
  • apid (int) – The APID of the packet.

  • dataset (xarray.Dataset) – The packets to process.

  • science_values (list[str]) – The values of the “data” field of the dataset.

Returns:

dataset – Xarray dataset containing the final processed dataset.

Return type:

xarray.Dataset