Commit 5f5ccee 1 parent 6671720 commit 5f5ccee Copy full SHA for 5f5ccee
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-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.int32)
1325
1325
nx = lonsperlat.max()
1326
1326
print (lonsperlat.dtype, lonsperlat)
1327
1327
datarr = redtoreg(datarr, lonsperlat, missval = missval)
@@ -1560,7 +1560,7 @@ cdef class gribmessage(object):
1560
1560
lats = self [' distinctLatitudes' ]
1561
1561
if lat2 < lat1 and lats[- 1 ] > lats[0 ]: lats = lats[::- 1 ]
1562
1562
ny = self [' Nj' ]
1563
- lonsperlat = self [' pl' ]
1563
+ lonsperlat = self [' pl' ].astype(np.int32)
1564
1564
nx = lonsperlat.max()
1565
1565
print (lonsperlat.dtype, lonsperlat)
1566
1566
lon1 = self [' longitudeOfFirstGridPointInDegrees' ]
@@ -1573,7 +1573,7 @@ cdef class gribmessage(object):
1573
1573
elif self [' gridType' ] == ' reduced_ll' : # reduced lat/lon grid
1574
1574
if self .expand_reduced:
1575
1575
ny = self [' Nj' ]
1576
- lonsperlat = self [' pl' ]
1576
+ lonsperlat = self [' pl' ].astype(np.int32)
1577
1577
nx = lonsperlat.max()
1578
1578
print (lonsperlat.dtype, lonsperlat)
1579
1579
lat1 = self [' latitudeOfFirstGridPointInDegrees' ]
You can’t perform that action at this time.
0 commit comments