imap_processing.hit.l1a.hit_l1a.process_science#

imap_processing.hit.l1a.hit_l1a.process_science(dataset: Dataset, attr_mgr: ImapCdfAttributes, packet_date: str) list[Dataset]#

Will process science datasets for CDF products.

The function processes binary science data for CDF creation. The data is decommutated, decompressed, grouped into science frames, and split into count rates, sectored count rates, and event datasets. It also updates the dataset attributes according to specifications in a cdf yaml file.

Parameters:
  • dataset (xarray.Dataset) – A dataset containing HIT science data.

  • attr_mgr (ImapCdfAttributes) – Attribute manager used to get the data product field’s attributes.

  • packet_date (str) – The date of the packet data, used for processing.

Returns:

dataset – A list of science datasets ready for CDF conversion.

Return type:

list