DSTemplater#
- class obsarray.templater.dstemplater.DSTemplater(templates: Dict | None = None, metadata_defs: Dict | None = None)[source]#
Class to generate
xarray.Dataset
’s from a set of templates.- Parameters:
templates – template dictionary for each product format
metadata_defs – metadata for each product format
Each dictionary has as keys
"template_name"
strings that define the names of the different available dataset templates, e.g. “Level-0”.For the
templates
dictionary the corresponding entries should be a variable definition dictionary.For
metadata_defs
the corresponding entries should be a dictionary of per product metadata.Methods
Returns template dataset
Returns empty size dictionary for specified template
Returns variable definition info for specified template variable
Returns dims required for specified template
Returns available ds template names
Returns variables for specified template