pysiral.scripts.l2proc

Classes

L2ProcScriptArguments

Functions

l2proc(→ None)

Main entry point for the Level-2 Processor job.

Module Contents

pysiral.scripts.l2proc.l2proc(processing_period: dateperiods.DatePeriod = None, l2_settings: str | pathlib.Path = None, l2_outputs: List[str | pathlib.Path] = None, exclude_months: List[int] = None, source_dataset_id: str = None, l1p_version: str = None, force_l2def_record_type: bool = False, use_multiprocessing: bool = False, multiprocessing_num_cores: int = None) None

Main entry point for the Level-2 Processor job.

This function initializes the Level-2 processor with the provided settings and processes the Level-1P data files for the specified time range.

Parameters:
  • processing_period – Start date for processing in [year, month, [day]] format.

  • l2_settings – Path to the Level-2 settings file or its identifier.

  • l2_outputs – List of output definitions for Level-2 products.

  • exclude_months – List of months to exclude from processing (1-12).

  • source_dataset_id – Version of the input data (optional).

  • l1p_version – Version of the Level-1P data (optional).

  • force_l2def_record_type – If True, forces the use of a specificLevel-2 definition record type.

  • use_multiprocessing – If True, enables multiprocessing for the processor.

  • multiprocessing_num_cores – Number of CPU cores to use for multiprocessing (optional).

class pysiral.scripts.l2proc.L2ProcScriptArguments

Bases: object

parser
get(args_list: List[str] = None) argparse.Namespace
static get_argument_parser() argparse.ArgumentParser

Set up the command line argument parser for the Level-2 Processor.

Returns:

The argument parser object.