Skip to content

Commit

Permalink
Allow contiguous representation of extracted regions (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Jean Herman authored Jan 17, 2024
1 parent 79455c1 commit 009a985
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion esmvalcore/preprocessor/_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def extract_region(
latitude=(start_latitude, end_latitude),
ignore_bounds=True,
)
region_subset = region_subset.intersection(longitude=(0., 360.))
else:
region_subset = _extract_irregular_region(
cube,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/preprocessor/_area/test_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def test_crop_cube_with_ne_file(ne_ocean_shapefile):
result = _crop_cube(cube, *geometries.bounds, cmor_coords=False)
result = (result.coord("latitude").points[-1],
result.coord("longitude").points[-1])
expected = (89., 359.)
expected = (89., 179.)
np.testing.assert_allclose(result, expected)


Expand Down

0 comments on commit 009a985

Please sign in to comment.