imap_processing.hit.l1a.hit_l1a.subset_sectored_counts#

imap_processing.hit.l1a.hit_l1a.subset_sectored_counts(sectored_counts_dataset: Dataset, packet_date: str) Dataset#

Subset data for complete sets of sectored counts and corresponding livetime values.

A set of sectored data starts with hydrogen and ends with iron and correspond to the mod 10 values 0-9. The livetime values from the previous 10 minutes are used to calculate the rates for each set since those counts are transmitted 10 minutes after they were collected. Therefore, only complete sets of sectored counts where livetime from the previous 10 minutes are available are included in the output.

Parameters:
  • sectored_counts_dataset (xarray.Dataset) – The sectored counts dataset.

  • packet_date (str) – The date of the packet data in ‘YYYYMMDD’ format, used for filtering.

Returns:

A dataset of complete sectored counts and corresponding livetime values for the processing day.

Return type:

xarray.Dataset