hypso.processing.calibrate#
L1A to L1B: radiometric, smile, destriping and spectral calibration.
Coefficient files come from the sensor’s calibration package
(hypso1_calibration, hypso2_calibration); see the calibration guide
for the variants and releases.
Functions#
|
Calibrate an L1A tree to L1B (top-of-atmosphere radiance |
Module Contents#
- hypso.processing.calibrate.l1a_to_l1b(tree, coeff_type=None, version=None, coeff_files=None, radiometric=True, smile=True, destripe=True, spectral=True, keystone=False)[source]#
Calibrate an L1A tree to L1B (top-of-atmosphere radiance
Lt).- Parameters:
tree (xarray.DataTree) – L1A product tree.
coeff_type (str, optional) – Radiometric variant:
"abs"(default),"moved"or"lab", or a set registered withhypso.calibration.register_calibration_coeffs. None uses the file’sradiometric_coefficients_versionif present, else the default. Withoutversion, a variant the default release lacks takes the newest release that has it (HYPSO-1"moved": V2).version (str or dict, optional) – Coefficient release -
"V3.1"(default),"V3.1v2spec"(V2 band names, for OC-SMART),"V2","V1";"V3"means V3.1 - or{correction: release}to mix them, e.g.{"smile": "V2"}(the calibration package’sdata/coefficients.yaml).coeff_files (dict, optional) – Explicit
{kind: path}instead ofcoeff_typeandversion.radiometric (bool, default True) – False skips that correction.
smile (bool, default True) – False skips that correction.
destripe (bool, default True) – False skips that correction.
spectral (bool, default True) – False skips that correction.
keystone (bool, default False) – Also correct keystone (spatial misregistration across the spectrum) with the sensor’s optional distortion model, after radiometric calibration and before smile (
hypso.calibration.keystone). Groundwork, unreviewed: HYPSO-2’s model is shipped disabled, so this warns; sensors without a model raise ValueError.
- Returns:
L1B tree, without geometry (
hypso.processing.georeference_l1b()adds it). The files used, their checksums and the package versions are recorded inmetadata/processing/l1b, and a summary is logged.- Return type: