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 373d0f7 commit 5446d64
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pygrib/_pygrib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ def redtoreg(float_type[:] redgrid_data, int_type[:] lonsperlat, missval=None):
Includes handling of missing values using nearest neighbor interpolation.
"""

cdef cython.Py_ssize_t nlons = np.max(lonsperlat)
cdef cython.Py_ssize_t nlats = lonsperlat.shape[0]
cdef cython.Py_ssize_t i,j,indx,ilons,im,ip,nlona
#cdef cython.Py_ssize_t nlons = np.max(lonsperlat)
#cdef cython.Py_ssize_t nlats = lonsperlat.shape[0]
cdef int nlons = np.max(lonsperlat)
cdef int nlats = lonsperlat.shape[0]
#cdef cython.Py_ssize_t i,j,indx,ilons,im,ip,nlona
cdef int i,j,indx,ilons,im,ip,nlona
cdef float_type zxi, zdx, flons, missvalc
if float_type is float:
float_dtype = np.float32
Expand Down

0 comments on commit 5446d64

Please sign in to comment.