Skip to content

Conversation

@ehogan
Copy link
Contributor

@ehogan ehogan commented Dec 23, 2019

This pull request fixes the issue originally reported via #3606.

When regridding a source cube that was used to create the regridder, the comparisons performed in copy_coords using is are True. However, when regridding a source cube that was not used to create the regridder, the comparisons are False, leading to cubes that have latitude and longitude coordinates without names (see test failure for 6f2dcda).

The solution is the one proposed in #3606.

@abooton abooton changed the title Fix issue related to comparison / equality in regridding code PI-2472: Fix issue related to comparison / equality in regridding code Dec 24, 2019
@abooton abooton merged commit 2900dd7 into SciTools:area_weighted_regridding Dec 24, 2019
abooton added a commit to abooton/iris that referenced this pull request Jan 9, 2020
* pr/3623:
  PI-2472:  Update area weighted regridder to accept different dim data (SciTools#3625)
  PI-2472: Fix issue related to comparison / equality in regridding code (SciTools#3624)
  Remove unused variables in regridding code (SciTools#3620)
  Add docstring and what's new (SciTools#3619)
  Move calculation of area weights from perform to prepare (SciTools#3617)
  PI-2472: Refactor AreaWeightedRegridder (SciTools#3606)
  Test for AreaWeightedRegridder (SciTools#3604)
  Split regrid_area_weighted_rectilinear_src_and_grid into prepare and perform (SciTools#3601)
abooton pushed a commit to abooton/iris that referenced this pull request Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants