Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Jul 2, 2024
1 parent 6671720 commit 5f5ccee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pygrib/_pygrib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ cdef class gribmessage(object):
else:
missval = 1.e30
if self.expand_reduced:
lonsperlat = self['pl']
lonsperlat = self['pl'].astype(np.int32)
nx = lonsperlat.max()
print(lonsperlat.dtype, lonsperlat)
datarr = redtoreg(datarr, lonsperlat, missval=missval)
Expand Down Expand Up @@ -1560,7 +1560,7 @@ cdef class gribmessage(object):
lats = self['distinctLatitudes']
if lat2 < lat1 and lats[-1] > lats[0]: lats = lats[::-1]
ny = self['Nj']
lonsperlat = self['pl']
lonsperlat = self['pl'].astype(np.int32)
nx = lonsperlat.max()
print(lonsperlat.dtype, lonsperlat)
lon1 = self['longitudeOfFirstGridPointInDegrees']
Expand All @@ -1573,7 +1573,7 @@ cdef class gribmessage(object):
elif self['gridType'] == 'reduced_ll': # reduced lat/lon grid
if self.expand_reduced:
ny = self['Nj']
lonsperlat = self['pl']
lonsperlat = self['pl'].astype(np.int32)
nx = lonsperlat.max()
print(lonsperlat.dtype, lonsperlat)
lat1 = self['latitudeOfFirstGridPointInDegrees']
Expand Down

0 comments on commit 5f5ccee

Please sign in to comment.