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