Skip to content

Namespaced "internal" attributes #6572

@ukmo-ccbunney

Description

@ukmo-ccbunney

There are currently a few instances of attributes on a cube that are have some sort of "special handling", e.g. the iris_extended_grid_mapping attribute introduced in #6536.

These attributes could be marked as "internal" to Iris by defining them as part of an internal private "namespace" (e.g. attribute starts with iris_ or _iris_) meaning that they are not displayed when printing the cube or written out to a netCDF file on save, as is the case for iris_extended_grid_mapping.

Currently, the handling for this needs to be improved to make it more generic so that if anyone adds a new "internal" attribute to a cube in the future (i.e scoped with the "iris_" attribute name) they don't need to modify any code to exclude when saving or displaying the cube.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueA good issue to take on if you're just getting started with Iris development

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions