imap_processing.swe.l1a.swe_science.swe_science#

imap_processing.swe.l1a.swe_science.swe_science(l0_dataset: Dataset) Dataset#

SWE L1a science processing.

SWE L1A algorithm steps:
  • Read data from each SWE packet file

  • Uncompress counts data

  • Store metadata fields and data in DataArray of xarray

  • Save data to dataset.

In each packet, SWE collects data for 15 seconds. In each second, it collect data for 12 energy steps and at each energy step, it collects 7 data from each 7 CEMs.

Each L1A data from each packet will have this shape: 15 rows, 12 columns, and each cell in 15 x 12 table contains 7 element array. These dimension maps to this:

15 rows –> 15 seconds
12 column –> 12 energy steps in each second
7 element –> 7 CEMs counts

In L1A, we don’t do anything besides read raw data, uncompress counts data and store data in 15 x 12 x 7 array.

SWE want to keep all value as it is in L1A. Post L1A, we group data into full cycle and convert raw data to engineering data as needed.

Parameters:

l0_dataset (xarray.Dataset) – Raw packet data from SWE stored as an xarray dataset.

Returns:

dataset – The xarray dataset with data.

Return type:

xarray.Dataset