libera_utils.aws.constants.DataProductIdentifier#
- class libera_utils.aws.constants.DataProductIdentifier(value)#
Bases:
Enum
Enumeration of data product canonical IDs used in AWS resource naming These IDs refer to the data products (files) themselves, NOT the processing steps (since processing steps may produce multiple products).
In general these names are of the form <level>-<source>-<type>
- __init__(*args, **kwds)#
Methods
validate
(product_name)Validate a product name string used by the DAG or the processing orchestration system.
dump
([chunk_number])Convert the DataProductIdentifier to a string suitable for matching with a DAG key or in the processing orchestration system.
Attributes
l0_cr
l0_rad_pds
l0_cam_pds
l0_azel_pds
l0_jpss_pds
spice_az_ck
spice_el_ck
spice_jpss_ck
spice_jpss_spk
cal_rad
cal_cam
l1b_rad
l1b_cam
anc_adm
- dump(chunk_number: int | None = None) str #
Convert the DataProductIdentifier to a string suitable for matching with a DAG key or in the processing orchestration system.
The chunk_number can be specified when the data product represents a PDS file that is typically provided in 12 2-hour chunks per day. In that case, the chunk_number appears as a suffix to the orchestration product name.
- classmethod validate(product_name: str) tuple[DataProductIdentifier, int | None] #
Validate a product name string used by the DAG or the processing orchestration system.
If successful, returns a tuple containing the DataProductIdentifier and the chunk_number, which can be None if the input string does not contain a valid chunk number.