Commit 155a0f2 1 parent 23874cd commit 155a0f2 Copy full SHA for 155a0f2
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1321,7 +1321,7 @@ cdef class gribmessage(object):
1321
1321
else :
1322
1322
missval = 1.e30
1323
1323
if self .expand_reduced:
1324
- lonsperlat = self [' pl' ]
1324
+ lonsperlat = self [' pl' ].astype(np.int64)
1325
1325
nx = lonsperlat.max()
1326
1326
datarr = redtoreg(datarr, lonsperlat, missval = missval)
1327
1327
else :
@@ -1559,7 +1559,8 @@ cdef class gribmessage(object):
1559
1559
lats = self [' distinctLatitudes' ]
1560
1560
if lat2 < lat1 and lats[- 1 ] > lats[0 ]: lats = lats[::- 1 ]
1561
1561
ny = self [' Nj' ]
1562
- nx = self [' pl' ].max()
1562
+ lonsperlat = self [' pl' ].astype(np.int64)
1563
+ nx = lonsperlat.max()
1563
1564
lon1 = self [' longitudeOfFirstGridPointInDegrees' ]
1564
1565
lon2 = self [' longitudeOfLastGridPointInDegrees' ]
1565
1566
lons = np.linspace(lon1,lon2,nx)
@@ -1570,7 +1571,8 @@ cdef class gribmessage(object):
1570
1571
elif self [' gridType' ] == ' reduced_ll' : # reduced lat/lon grid
1571
1572
if self .expand_reduced:
1572
1573
ny = self [' Nj' ]
1573
- nx = self [' pl' ].max()
1574
+ lonsperlat = self [' pl' ].astype(np.int64)
1575
+ nx = lonsperlat.max()
1574
1576
lat1 = self [' latitudeOfFirstGridPointInDegrees' ]
1575
1577
lat2 = self [' latitudeOfLastGridPointInDegrees' ]
1576
1578
lon1 = self [' longitudeOfFirstGridPointInDegrees' ]
You can’t perform that action at this time.
0 commit comments