imap_processing.hit.l1a.hit_l1a.subcom_sectorates#

imap_processing.hit.l1a.hit_l1a.subcom_sectorates(sci_dataset: Dataset) Dataset#

Subcommutate sectorates data.

Sectored rates data contains raw counts for 5 species and 10 energy ranges. This function subcommutates the sectored rates data by organizing the counts by species. Which species and energy range the data belongs to is determined by taking the mod 10 value of the corresponding header minute count value in the dataset. A mapping of mod 10 values to species and energy ranges is provided in constants.py.

MOD_10_MAPPING = {

0: {“species”: “h”, “energy_min”: 1.8, “energy_max”: 3.6}, 1: {“species”: “h”, “energy_min”: 4, “energy_max”: 6}, 2: {“species”: “h”, “energy_min”: 6, “energy_max”: 10}, 3: {“species”: “he4”, “energy_min”: 4, “energy_max”: 6}, … 9: {“species”: “fe”, “energy_min”: 4, “energy_max”: 12}}

The data is added to the dataset as new data fields named according to their species. They have 4 dimensions: epoch energy mean, azimuth, and zenith. The energy mean dimension is used to distinguish between the different energy ranges the data belongs to. The energy deltas for each species are also added to the dataset as new data fields.

Parameters:

sci_dataset (xarray.Dataset) – Xarray dataset containing parsed HIT science data.

Returns:

sci_dataset – Xarray dataset with sectored rates data organized by species.

Return type:

xarray.Dataset