Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

This file is collection of key value pairs. It contains useful information needed by the Chimera framework to run in a generic way. This file should contain:

  • The names of all the precondition function
    e.g

    GET_PRODUCT_METADATA = "get_product_metadata"
    GET_METADATA = "get_metadata"
    GET_ORBIT_EPHEMERIS = "get_orbit_ephemeris"
    DYN_ANCILLARY_FILES = "getDynamicAncillaryFileTypes"
    LATEST_PRODUCTS_OVER_TIME_RANGE = "get_latest_products_over_time_range"
    MOST_RECENT_FILES = "get_product_most_recent"
    MOST_RECENT_VERSION_FILES = "get_product_most_recent_version"
  • Attribute names in run config
    e.g

    SW_VERSION_ID = "SWVersionID"
    INPUT_FILE_PATH = "InputFilePath"
    INPUT_FILE_GROUP = "InputFileGroup"
    STATIC_ANCILLARY_FILE_GROUP = "StaticAncillaryFileGroup"
    DYNAMIC_ANCILLARY_FILE_GROUP = "DynamicAncillaryFileGroup"
    PRODUCTION_DATE_TIME = "ProductionDateTime"
  • PGE names
    e.g

    L0A = "L0A"
    TIME_EXTRACTOR = "Time_Extractor"
    L0B = "L0B"


First, setup this file as follows:

from chimera.commons.constants import ChimeraConstants

class ChimeraConstantsClass(ChimeraConstants):

    def __init__(self): 

        ChimeraConstants.__init__(self)

These constants can be imported by the adaptation subclasses as follows:

from [path to constants file] import ChimeraConstantsClass as nc_const

Now you can use the constants within the adaptation subclasses as follows:

crid = self._settings.get(nc_const.CRID)
  • No labels