From 80235cf5ee6c1e7e5db446c9f5ed4280f1749b46 Mon Sep 17 00:00:00 2001 From: Patrick Peglar Date: Tue, 17 Jun 2025 15:15:21 +0100 Subject: [PATCH 1/3] Allow derived coord references to be lazy, when the source AuxCoord is. --- lib/iris/fileformats/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iris/fileformats/rules.py b/lib/iris/fileformats/rules.py index d24f38d3f3..f6835e49b7 100644 --- a/lib/iris/fileformats/rules.py +++ b/lib/iris/fileformats/rules.py @@ -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, From 38943f4273d72f54723778b6bfea5a9a27ddcaf2 Mon Sep 17 00:00:00 2001 From: Patrick Peglar Date: Tue, 8 Jul 2025 13:00:08 +0100 Subject: [PATCH 2/3] Small doctest fix. --- docs/src/userguide/cube_statistics.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/userguide/cube_statistics.rst b/docs/src/userguide/cube_statistics.rst index fb389a5229..efc031aa43 100644 --- a/docs/src/userguide/cube_statistics.rst +++ b/docs/src/userguide/cube_statistics.rst @@ -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 +bound Cell methods: 0 grid_longitude: grid_latitude: mean Attributes: @@ -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 +bound Cell methods: 0 grid_longitude: grid_latitude: sum Attributes: From 2bc19537361e9b93a0c7fd0b460a7df8ff0cd3ae Mon Sep 17 00:00:00 2001 From: Patrick Peglar Date: Tue, 8 Jul 2025 13:36:30 +0100 Subject: [PATCH 3/3] Add whatsnew. --- docs/src/whatsnew/latest.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/whatsnew/latest.rst b/docs/src/whatsnew/latest.rst index 160b68e5c1..b3fa1db7c4 100644 --- a/docs/src/whatsnew/latest.rst +++ b/docs/src/whatsnew/latest.rst @@ -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 =============