Problem using Verde to project ETOPO file to cartesian coordinates #103
-
Kia ora everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @hwil055! Thanks for opening this question. The The good news is that for dense grids these interpolation methods are usually an overkill. You could use nearest neighbours instead and the results will still be accurate enough. So, for your case, pass vd.project_grid(topography, projection, method="nearest") You can check the documentation of the Hope it works! |
Beta Was this translation helpful? Give feedback.
Hi @hwil055! Thanks for opening this question.
The
vd.project_grid()
function projects the grid points and then performs an interpolation into a new regular grid on the projected coordinates. When working with large grids these interpolations can demand a huge amount of RAM. This is specially true if you use the"linear"
or"cubic"
method, where linear and cubic splines are using for the interpolation, respectively. By defaultvd.project_grid()
usesmethod="linear"
.The good news is that for dense grids these interpolation methods are usually an overkill. You could use nearest neighbours instead and the results will still be accurate enough. So, for your case, pass
method="nearest"
in your…