pysiral.l2preproc
Created on Fri Aug 11 17:07:02 2017
@author: shendric
Classes
Template for default pysiral class with logging/error handling capabilities |
|
Template for default pysiral class with logging/error handling capabilities |
|
Default output handler with pysiral conventions. Uses product |
Module Contents
- class pysiral.l2preproc.Level2PreProcessor(product_def)
Bases:
pysiral.core.legacy_classes.DefaultLoggingClassTemplate for default pysiral class with logging/error handling capabilities
- error
- _job
- process_l2i_files(l2i_files, period)
Reads all l2i files and merges the valid data into a l2p summary file
- property job
- class pysiral.l2preproc.Level2PreProcProductDefinition
Bases:
pysiral.core.legacy_classes.DefaultLoggingClassTemplate for default pysiral class with logging/error handling capabilities
- _output_handler = None
- add_output_definition(l2i_product_dir, output_def_file, period='default', overwrite_protection=True, doi=None)
- property output_handler
- class pysiral.l2preproc.Level2POutputHandler(l2i_product_dir, output_def='default', subdirectory=None, period='default', overwrite_protection=True, doi=None)
Bases:
pysiral.core.output.OutputHandlerBaseDefault output handler with pysiral conventions. Uses product directory from local_machine_def.yaml as standard repository
- default_file_location = ['settings', 'outputdef', 'l2p_default.yaml']
- subfolder_tags = ['year', 'month']
- applicable_data_level = 2
- l2i_product_dir
- _period = 'default'
- _doi = None
- subdirectory = None
- overwrite_protection = True
- get_filename_from_data(l2p: pysiral.l2data.Level2Data) str
Return the filename for a defined level-2 data object based on tag filenaming in output definition file
- get_directory_from_data(l2p: pysiral.l2data.Level2Data, create: bool = True) str
Return the output directory based on l2 data object metadata
- Parameters:
l2p
create
- Returns:
- get_fullpath_from_data(l2)
Return export path and filename based on information provided in the l2 data object
- get_global_attribute_dict(l2)
- remove_old(time_range)
This method will erase all files in the target orbit for a given time range. Use with care
- _init_product_directory()
Get main product directory from local_machine_def, add mandatory runtag subdirectory, optional second subdirectory for overwrite protection and product level id subfolder
- property has_doi
- property doi
- property default_output_def_filename