Skip to content

Allow derived coord references to be lazy. #6517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/src/userguide/cube_statistics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ These areas can now be passed to the ``collapsed`` method as weights:
forecast_reference_time 2009-11-19 04:00:00
grid_latitude 1.5145501 degrees, bound=(0.13755022, 2.89155) degrees
grid_longitude 358.74948 degrees, bound=(357.48724, 360.01172) degrees
surface_altitude 399.625 m, bound=(-14.0, 813.25) m
surface_altitude <lazy>+bound
Cell methods:
0 grid_longitude: grid_latitude: mean
Attributes:
Expand Down Expand Up @@ -191,7 +191,7 @@ the units of the resulting cube are multiplied by an area unit:
forecast_reference_time 2009-11-19 04:00:00
grid_latitude 1.5145501 degrees, bound=(0.13755022, 2.89155) degrees
grid_longitude 358.74948 degrees, bound=(357.48724, 360.01172) degrees
surface_altitude 399.625 m, bound=(-14.0, 813.25) m
surface_altitude <lazy>+bound
Cell methods:
0 grid_longitude: grid_latitude: sum
Attributes:
Expand Down
3 changes: 3 additions & 0 deletions docs/src/whatsnew/latest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ This document explains the changes made to Iris for this release
the behaviour when calling :attr:`iris.MeshCoord.points` and :attr:`MeshCoord.bounds`, which will return
real data but will leave the :class:`iris.MeshCoord` (and attached mesh) lazy. (:issue:`4757`, :pull:`6405`)

#. `@pp-mo`_ made it possible for the reference surfaces of derived coordinates, like orography, to be lazy.
(:pull: 6517).


🐛 Bugs Fixed
=============
Expand Down
2 changes: 1 addition & 1 deletion lib/iris/fileformats/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _dereference_args(factory, reference_targets, regrid_cache, cube):
src, cube = _ensure_aligned(regrid_cache, src, cube)
if src is not None:
new_coord = iris.coords.AuxCoord(
src.data,
src.core_data(),
src.standard_name,
src.long_name,
src.var_name,
Expand Down
Loading