gordias.config.drop_unspecified_global_attributes#
- gordias.config.drop_unspecified_global_attributes(cubes: CubeList, config: GlobalAttributesInputConfiguration) list[str]#
Drop all unspecified global attributes for all cubes.
The attributes that are not specified in the transfer configuration is removed. A list is returned containing the set of removed attributes names and values.
- Parameters:
cubes (iris.cube.CubeList) – A list of cubes.
config (GlobalAttributesInputConfiguration) – A
GlobalAttributesInputConfigurationobject containing the input configuration for the global attributes.
- Returns:
A list of string containing the names and values of the removed global attributes.
- Return type: