From 2123b8f1c274c03a0e36e615aaff4a6adc95f438 Mon Sep 17 00:00:00 2001 From: Elias Sadek Date: Wed, 18 Dec 2024 14:49:22 +0000 Subject: [PATCH] added whatsnew --- docs/src/whatsnew/latest.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/src/whatsnew/latest.rst b/docs/src/whatsnew/latest.rst index ae13b8a883..0c3bac110e 100644 --- a/docs/src/whatsnew/latest.rst +++ b/docs/src/whatsnew/latest.rst @@ -38,6 +38,17 @@ This document explains the changes made to Iris for this release your code for new floating point problems if activating this (e.g. when using the :class:`~iris.Constraint` API). (:pull:`6260`) +#. `@ESadek-MO`_ made :attr:`~iris.cube.Cube.data` optional in a + :class:`~iris.cube.Cube`, when :attr:`~iris.cube.Cube.shape` is provided + instead. `dataless cubes` can currently be used as targets in regridding, or + for templates to add data to at a later time. + + This is the first step in making `dataless cubes`. Currently, most cube methods + don't work on `dataless cubes`, and will raise in an error if attempted. + :meth:`~iris.cube.Cube.transpose` will work, as will :meth:`~iris.cube.Cube.copy`. + `my_cube.copy(data = iris.DATALESS)` will copy the cube and remove data in + the process. + (:issue:`4447`, :pull:`6253`) 🐛 Bugs Fixed =============