Commit 23874cd 1 parent 055e6aa commit 23874cd Copy full SHA for 23874cd
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,11 @@ npc.import_array()
18
18
ctypedef fused float_type:
19
19
float
20
20
double
21
+ ctypedef fused int_type:
22
+ long
23
+ long long
21
24
22
- def redtoreg (float_type[:] redgrid_data , long [:] lonsperlat , missval = None ):
25
+ def redtoreg (float_type[:] redgrid_data , int_type [:] lonsperlat , missval = None ):
23
26
"""
24
27
redtoreg(redgrid_data, lonsperlat, missval=None)
25
28
@@ -1318,8 +1321,8 @@ cdef class gribmessage(object):
1318
1321
else :
1319
1322
missval = 1.e30
1320
1323
if self .expand_reduced:
1321
- lonsperlat = self [' pl' ].astype(np.int64)
1322
- nx = self [ ' pl ' ] .max()
1324
+ lonsperlat = self [' pl' ]
1325
+ nx = lonsperlat .max()
1323
1326
datarr = redtoreg(datarr, lonsperlat, missval = missval)
1324
1327
else :
1325
1328
nx = None
You can’t perform that action at this time.
0 commit comments