Skip to content

NetCDF global attributes vs data variable local attributes #3325

@bjlittle

Description

@bjlittle

Update Mon 3rd July:
this effort is now handled in it's own project
please see there for existing task breakdown + progress


At the moment iris takes a rational but naive approach to dealing with the local attributes of a NetCDF variable (a variable that becomes a cube) and the global attributes of the NetCDF file that the said variable comes from.

That is, the resultant cube.attributes will be a combination of both the local and global attributes, where the local attributes will take precedence, and overwrite, common global attributes.

From the inception of iris, and in the light of no use cases, this seemed like a reasonable thing to do. However, such an approach prevents preservation of the local and global attributes metadata. This is a major issue for many users, who require to preserve all attribute metadata.

We require to resolve this issue now in iris once and for all 😄

Note that, if a solution to this issue was implemented, then it would most likely be a breaking change - caution is needed here.

This is somewhat tangential related to #2352

Metadata

Metadata

Type

No type

Projects

Status

✅ Done

Status

💰 Finished

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions