gordias.config.add_global_attributes#

gordias.config.add_global_attributes(cubes: CubeList, attributes: dict[str, str]) list[str]#

Add global attributes to all cubes.

Attributes specified in the dictionary attributes will be added. A list is returned containing the set of replaced attributes with names and values.

Parameters:
  • cubes (iris.cube.CubeList) – A list of cubes.

  • attributes (dict[str, str]) – A dictionary containing new global attribute names and values.

Returns:

A list of string containing the names and values of the replaced global attributes.

Return type:

list[str]