s1tiling.libs.steps._ProducerStep
- class s1tiling.libs.steps._ProducerStep(*unused_argv, **kwargs)[source]
Bases:
AbstractStep
Root class for all Steps that produce files
New methods & Specialized methods
_clean_cache
Takes care or removing intermediary files once we know they are no longer required like the orthorectified subtiles once the concatenation has been done.
Variation point that takes care to execute hooks.
Variation point that takes care of the actual production.
_write_image_metadata
Update Image metadata (with GDAL API).
Actually produce the expected output.
Methods inherited from parent
__init__
Constructor.
Makes sure that steps with applications are releasing the application (no-op for this class)
Attributes and properties
Basename property will be used to generate all future output filenames.
Tells whether this step is the first of a pipeline.
Step meta data property.
Property that returns the name of the file produced by the current step.
Generate a name for the associated pipeline
No OTB related step requires its result to be stored on disk and to break in_memory connection by default.
Property that returns the name of the file produced by the current step while the OTB application, or the executable, or even the gdal function is running.
- abstract _do_execute(parameters, dryrun: bool) None [source]
Variation point that takes care of the actual production.
- execute_and_write_output(parameters, execution_parameters: Dict) None [source]
Actually produce the expected output. The how is still a variation point that’ll get decided in
_do_execute()
specializations.While the output is produced, a temporary filename will be used as output. On successful execution, the output will be renamed to match its expected final name.
- property out_filename: str
Property that returns the name of the file produced by the current step.
- property pipeline_name
Generate a name for the associated pipeline
- release_app() None
Makes sure that steps with applications are releasing the application (no-op for this class)