Skip to content

regrid_3d fails if dimensional coordinates have slightly different metadata #43

@dennissergeev

Description

@dennissergeev

aeolus.coord.regrid_3d() fails if dimensional coordinates have slightly different metadata, e.g. var_name, even if the rest of the metadata is the same. The error comes from a supporting function, aeolus.coord.not_equal_coord_axes().

A temporary workaround is to fix or remove the offending attributes, e.g.

for cube in [cube1, cube2]:
    for coord_name in [um.z, um.y, um.x]:
        cube.coord(coord_name).var_name = coord_name  # or None

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions