diff --git a/lib/iris/fileformats/grib/__init__.py b/lib/iris/fileformats/grib/__init__.py index f31e20dd1f..7bbc200922 100644 --- a/lib/iris/fileformats/grib/__init__.py +++ b/lib/iris/fileformats/grib/__init__.py @@ -239,7 +239,7 @@ def __init__(self, grib_message, grib_fh=None, auto_regularise=True): # The byte offset requires to be reset back to the first byte # of this message. The file pointer offset is always at the end # of the current message due to the grib-api reading the message. - proxy = GribDataProxy(shape, np.zeros(0).dtype, np.nan, + proxy = GribDataProxy(shape, np.array([0.]).dtype, np.nan, grib_fh.name, offset - message_length, auto_regularise)