irfu / irfu-matlab

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

BICAS: L2: Use NSO to set fill values for selected antenna channels (1x single+2x diffs) #142

Open ErikPGJ opened 1 month ago

ErikPGJ commented 1 month ago

Problem

BICAS needs to handle ANT3 or other antennas breaking down, possibly intermittently, in a good way. This affects the generation of L3 too via solo.vdccal and solo.psp2ne().

NOTE:

Solution to be implemented

It was agreed on IRFU RPW/BIAS calibration meeting 2024-06-04 to implement functionality for setting any selected L2 single antenna channel (1x single + 2x diffs) to fill values when the corresponding antenna-specific (to-be-defined) NSOID applies.

Fill values in channels should already be automatically be represented as NaN in the input data to solo.psp2ne() and solo.vdccal(). Those functions should thus be able to detect and handle the absence of data on arbitrary channels as they (should) already do, more or less (to be checked). They should thus do not need to be aware of failing antennas and be independent of the functionality for special handling of failing antennas (no change of interface).

TODO-NI: Do solo.psp2ne() and `solo.vdccal() handle NaN sufficiently well? TODO: Define NSOIDs. TODO-NI: Cap QUALITY_FLAG?