Closed mdtanker closed 1 year ago
@mdtanker thanks for reporting! The problem was that we should be adjusting the spacing or the region to make sure there are always two nodes in the coordinates generated but this wasn't working for spacing >= 2 * (stop - start)
. I tracked it down to our adjustment code in spacing_to_size
and implemented a fix in #406.
Could you check that the code in the main
branch fixes your issue? If it doesn't, please feel free to re-open this issue.
@leouieda Sorry for the slow response on this. I just checked and your fix seems to have worked. Thanks for solving this!
No worries! Thanks for checking and I'm glad it worked out 😁
Description of the problem:
I'm attempting to block-reduce some data along a single flight line. The flight line is oriented E-W, so there should only be a single block in the N-S direction, but several blocks in the E-W direction. The single N-S block is resulting in an error. I can fix this by using the
shape
parameter instead ofsize
.It looks like
verde.line_coordinates
needs at least 2 blocks to shift pixel registered values?Full code that generated the error
Full error message
System information
conda list
below:Output of conda list