Replies: 5 comments 6 replies
-
Just a note, I have modified my raster.py file to leave only |
Beta Was this translation helpful? Give feedback.
-
I wonder if the current behavior of |
Beta Was this translation helpful? Give feedback.
-
@jlarsen-usgs you should probably weigh in on this discussion item |
Beta Was this translation helpful? Give feedback.
-
There is in fact a small bug in the raster resampling, however it is unrelated to the |
Beta Was this translation helpful? Give feedback.
-
With the update in PR #2285, the resample filters out NaN values prior to resampling using nearest interpolation. A user asked me whether this is always the intended behavior? They wanted to resample a raster with layer elevations (including NaNs where this particular geological feature is not present). The result should be layer elevations on a finer grid with NaNs where the original dataset contained NaNs. The NaNs in the result can then be used to set the idomain for that layer. The previous version of flopy returned a result containing NaNs, though that might not have been the intended behavior judging from the comments above. So my question:
|
Beta Was this translation helpful? Give feedback.
-
Hello. I understand that this line in the current resample_to_grid code:
if extrapolate_edges and method != "nearest":
results in that all other resampling methods will fill the values for cells that touch raster voids (using the nearest method). The only method that will yield nodatavals for those grid cells is, actually, the nearest method. This means those cells need to be dealt with after the resampling.I wonder if it would not be more intuitive that the extrapolate_edges option could also be used with the nearest method. Maybe I'm missing something in the resample function usage.
Beta Was this translation helpful? Give feedback.
All reactions