You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using resample_to_grid raster utility to map elevation data from a raster to the model grid with method='nearest'. When I manually check the resampled data, it is outside the range of the raster cells covering the model element. It seems to me that 'linear', or 'mean' works. I just can't use them due to memory limit.
To Reproduce
Steps to reproduce the behavior:
I can provide the datasets I am using but it returned a similar result when I tested with other raster data.
Expected behavior
The resampled data using method='nearest' will not match the underlying raster cells.
Additional context
I found these two links below. It sounds like the issue originates from the griddata function of scipy. The first link explains what may be going on in griddata and the second link suggests setting rescale=True in griddata. When I modified the resample_to_grid call of the griddata with rescale=True, it works.
Describe the bug
I am using resample_to_grid raster utility to map elevation data from a raster to the model grid with method='nearest'. When I manually check the resampled data, it is outside the range of the raster cells covering the model element. It seems to me that 'linear', or 'mean' works. I just can't use them due to memory limit.
To Reproduce
Steps to reproduce the behavior:
I can provide the datasets I am using but it returned a similar result when I tested with other raster data.
Expected behavior
The resampled data using method='nearest' will not match the underlying raster cells.
Additional context
I found these two links below. It sounds like the issue originates from the griddata function of scipy. The first link explains what may be going on in griddata and the second link suggests setting rescale=True in griddata. When I modified the resample_to_grid call of the griddata with rescale=True, it works.
Thank you!
The text was updated successfully, but these errors were encountered: