@@ -2625,6 +2625,9 @@ def make_gridcube(
26252625 It has one-dimensional X and Y coordinates, in a specific coordinate system.
26262626 Both can be given either regularly spaced or irregular points.
26272627
2628+ The cube is dataless, meaning that ``cube.data`` is ``None``, but data can easily be
2629+ assigned if required. See :ref:`dataless-cubes`.
2630+
26282631 Parameters
26292632 ----------
26302633 nx : int, optional
@@ -2654,7 +2657,7 @@ def make_gridcube(
26542657 Returns
26552658 -------
26562659 cube: iris.cube.Cube
2657- A cube with the specified grid, and all-zeroes (lazy) data.
2660+ A cube with the specified grid, but no data.
26582661
26592662 Warnings
26602663 --------
@@ -2671,7 +2674,7 @@ def make_gridcube(
26712674 # float32 zero, to force minimum 'f4' floating point precision
26722675 zero_f4 = np .asarray (
26732676 0.0 ,
2674- dtype = "f4" , # single precision (minimum), or what was passed
2677+ dtype = "f4" ,
26752678 )
26762679
26772680 def dimco (
@@ -2759,7 +2762,8 @@ def dimco(
27592762 xco = dimco ("x" , x_name , units , x_points , xlims , nx , coord_system = coord_system )
27602763 yco = dimco ("y" , y_name , units , y_points , ylims , ny , coord_system = coord_system )
27612764 cube = Cube (
2762- da .zeros ((yco .shape [0 ], xco .shape [0 ]), dtype = np .int8 ),
2765+ data = None ,
2766+ shape = (yco .shape [0 ], xco .shape [0 ]),
27632767 long_name = "grid_cube" ,
27642768 dim_coords_and_dims = ((yco , 0 ), (xco , 1 )),
27652769 )
0 commit comments