Skip to content
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 iris_grib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2016, Met Office
# (C) British Crown Copyright 2010 - 2017, Met Office
#
# This file is part of iris-grib.
#
Expand Down Expand Up @@ -184,7 +184,7 @@ def __init__(self, grib_message, grib_fh=None):
# 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.zeros(0).dtype, np.nan,
grib_fh.name,
offset - message_length)
self._data = biggus.NumpyArrayAdapter(proxy)
Expand Down
4 changes: 2 additions & 2 deletions iris_grib/_load_convert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2014 - 2016, Met Office
# (C) British Crown Copyright 2014 - 2017, Met Office
#
# This file is part of iris-grib.
#
Expand Down Expand Up @@ -1351,7 +1351,7 @@ def hybrid_factories(section, metadata):
units='Pa')
metadata['aux_coords_and_dims'].append((coord, None))
# Create the sigma scalar coordinate.
offset += NV / 2
offset += NV // 2
coord = AuxCoord(pv[offset], long_name='sigma')
metadata['aux_coords_and_dims'].append((coord, None))
# Create the associated factory reference.
Expand Down