libera_utils.aws.constants.DataProductIdentifier#
- class libera_utils.aws.constants.DataProductIdentifier(value)#
Bases:
EnumEnumeration 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_crl0_rad_pdsl0_cam_pdsl0_azel_pdsl0_jpss_pdsspice_az_ckspice_el_ckspice_jpss_ckspice_jpss_spkcal_radcal_caml1b_radl1b_camanc_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.