imap_processing.hit.l1a.hit_l1a.subcom_sectorates#

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

Subcommutate sectorates data.

Sector rates data contains rates for 5 species and 10 energy ranges. This function subcommutates the sector rates data by organizing the rates 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”: “4He”, “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 index, declination, and azimuth. The energy index dimension is used to distinguish between the different energy ranges the data belongs to. The energy min and max values 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.