Skip to content

Regridding maintains a reference to target coordinates #6844

Description

@stephenworsley

🐛 Bug Report

When doing area weighted regridding, the lat-lon coordinates on the result are the same object as the lat-lon coordinates on the target cube, editing one edits the other. I believe this was introduced by #3623, before this PR result coordinates were only copies. The coordinates in question appear to be fetched on this line:

grid_x, grid_y = _get_xy_coords(grid_cube)

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions