gordias.config.get_create_configuration_attributes#
- gordias.config.get_create_configuration_attributes(attributes: list[OutputCreateConfiguration], cube: Cube | None = None, extra_attributes: dict[str, Any] | None = None) dict[str, str]#
Create attributes from the create configuration.
A extra_attributes dictionary can be given to include attributes.
- Parameters:
attributes (list[OutputCreateConfiguration]) – A list containing
OutputCreateConfigurationobjects that describes the create configuration for the global attributes in the output files.cube (iris.cube.Cube) – A iris cube with global attributes to be included in the global attribute configuration.
extra_attributes (dict[str, Any], optional) – A dictionary containing extra attributes to be included in the global attributes.
- Returns:
A dictionary of string containing the names and values of the created global attributes.
- Return type: