libera_utils.l1a.nom_hk_trim#

Trim decoded NOM-HK L1A Datasets to contiguous calibration ObsID runs.

One file is written per contiguous ObsID run, stamped with the run’s calibration dependency family ProductID rather than its ObsID: ObsIDs that downstream algorithms process identically share one TRIMMED ProductID (see libera_utils.obsids). A day therefore normally yields several files sharing one family ProductID — six NOM-HK-SWC-FAMILY-TRIMMED granules for the six shortwave LED ObsIDs, for example — distinguished by their filename time ranges. Each file covers exactly one ObsID run, and the ObsID is read from the ICIE__SW_OBSID_* variable the file carries.

Functions

find_obsid_runs(nom_hk, *[, source])

Detect contiguous trim-eligible ObsID runs in a NOM-HK Dataset.

get_trimmed_nom_hk_product_definition(...)

Load the NOM-HK L1A product definition with ProductID set to a TRIMMED DPI.

write_trimmed_nom_hk_products(nom_hk, ...[, ...])

Detect ObsID runs in nom_hk and write one TRIMMED file per run.