Skip to content

Commit

Permalink
Fix straight gradient resampling
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Sep 21, 2022
1 parent aafde42 commit 8ba117b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyresample/gradient/_gradient_search.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,16 @@ cpdef one_step_gradient_search(const DTYPE_t [:, :, :] data,
# output image array --> needs to be (lines, pixels) --> y,x
cdef DTYPE_t [:, :, :] image = np.full([z_size, y_size, x_size], np.nan, dtype=DTYPE)
image = np.full([z_size, y_size, x_size], np.nan, dtype=DTYPE)
cdef DTYPE_t [:, :, :] image_view = image
cdef size_t [:] elements = np.arange(x_size, dtype=np.uintp)
with nogil:
one_step_gradient_search_no_gil(data,
src_x, src_y,
xl, xp, yl, yp,
dst_x, dst_y,
x_size, y_size,
fun, image,
fun, image_view,
elements)
# return the output image
return image
Expand Down

0 comments on commit 8ba117b

Please sign in to comment.