imap_processing.mag.l0.decom_mag.generate_dataset#

imap_processing.mag.l0.decom_mag.generate_dataset(l0_data: list[MagL0], mode: DataMode, attribute_manager: ImapCdfAttributes) Dataset#

Generate a CDF dataset from the sorted raw L0 MAG data.

Parameters:
  • l0_data (list[MagL0]) – List of sorted L0 MAG data.

  • mode (DataMode) – The mode of the CDF file - burst or norm.

  • attribute_manager (ImapCdfAttributes) – Attribute manager for the dataset, including all MAG L1A attributes.

Returns:

dataset – The xarray dataset with proper CDF attributes and shape.

Return type:

xarray.Dataset