irfu / irfu-matlab

Matlab routines to work with space data, particularly with MMS and Cluster/CAA data. Also some general plasma routines.
59 stars 46 forks source link

BICAS: (1) Reorg. L2 saturation quality flags; enable L3 to (2a) only use non-saturated channels and (2b) raise L3 QUALITY_FLAG #143

Open ErikPGJ opened 4 months ago

ErikPGJ commented 4 months ago

Problem

L2 datasets only contain one "full saturation" quality flag (boolean/bit) which is set if any L2 channel is saturated. This means that the code for deriving of L3 data can not even in principle (1) tell whether or not saturation occurs on an irrelevant channel (e.g. AC diff), (2) derive values from a smaller number of non-saturated channels (avoid saturated channels).

Problem has been discussed on Slack.

Solution to be implemented

It was agreed on IRFU RPW/BIAS calibration meeting 2024-06-04 to implement functionality for reorganizing saturation quality flags and let code for deriving L3 use them.