opera.pge.dswx_hls package

Submodules

opera.pge.dswx_hls.dswx_hls_pge module

dswx_hls_pge.py

Module defining the implementation for the Dynamic Surface Water Extent (DSWx) from Harmonized Landsat and Sentinel-1 (HLS) PGE.

class opera.pge.dswx_hls.dswx_hls_pge.DSWxHLSExecutor(pge_name, runconfig_path, **kwargs)[source]

Bases: DSWxHLSPreProcessorMixin, DSWxHLSPostProcessorMixin, PgeExecutor

Main class for execution of a DSWx-HLS PGE, including the SAS layer.

This class essentially rolls up the tailored pre- and post-processors while inheriting all other functionality from the base PgeExecutor class.

LEVEL = 'L3'

Processing Level for DSWx-HLS Products

NAME = 'DSWx-HLS'

Short name for the DSWx-HLS PGE

PGE_VERSION = '1.0.2'

Version of the PGE (overrides default from base_pge)

SAS_VERSION = '1.0.1'

Version of the SAS wrapped by this PGE, should be updated as needed with new SAS deliveries

class opera.pge.dswx_hls.dswx_hls_pge.DSWxHLSPostProcessorMixin[source]

Bases: PostProcessorMixin

Mixin class responsible for handling all post-processing steps for the DSWx-HLS PGE. The post-processing phase is defined as all steps necessary after SAS execution has completed.

In addition to the base functionality inherited from PostProcessorMixin, this mixin adds an output validation step to ensure that the output file defined by the RunConfig exist and are valid.

run_postprocessor(**kwargs)[source]

Executes the post-processing steps for DSWx-HLS PGE job completion.

The DSWxHLSPostProcessorMixin version of this function performs the same steps as the base PostProcessorMixin, but inserts an output file validation check and Landsat-9 metadata correction step prior to staging of the output files.

Parameters:

**kwargs (dict) – Any keyword arguments needed by the post-processor

class opera.pge.dswx_hls.dswx_hls_pge.DSWxHLSPreProcessorMixin[source]

Bases: PreProcessorMixin

Mixin class responsible for handling all pre-processing steps for the DSWx-HLS PGE. The pre-processing phase is defined as all steps necessary prior to SAS execution.

In addition to the base functionality inherited from PreProcessorMixin, this mixin adds an input validation step to ensure that the input(s) defined by the RunConfig exist and are valid.

run_preprocessor(**kwargs)[source]

Executes the pre-processing steps for DSWx-HLS PGE initialization.

The DSWxHLSPreProcessorMixin version of this function performs all actions of the base PreProcessorMixin class, and adds the validation check for input files/directories.

Parameters:

**kwargs (dict) – Any keyword arguments needed by the pre-processor

Module contents