s1tiling.libs.file_naming.TemplateOutputFilenameGenerator
- class s1tiling.libs.file_naming.TemplateOutputFilenameGenerator(template)[source]
Bases:
OutputFilenameGenerator
Given a template:
"text{key1}_{another_key}_.."
, inject the metadata instead of the template keys.Most filename format templates can be fine tuned to end-user ideal filenames. While the filenames used for intermediary products may be changed, it’s not recommended for data flow stability.
All Python standard format specifiers plus extra conversion fields are supported:
!c
will capitalize a field – only the first letter will be in uppercase!l
will output the field in lowercase!u
will output the field in uppercase
See [Processing].fname_fmt.* for the short list of filenames meant to be adapted, and the list of available fields.
New methods & Specialized methods
__init__
Default implementation does nothing.
Tells whether the generator is specialized for several outputs