Skip to content

Problem using Verde to project ETOPO file to cartesian coordinates #103

Answered by santisoler
hwil055 asked this question in Q&A
Discussion options

You must be logged in to vote

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 default vd.project_grid() uses method="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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hwil055
Comment options

@santisoler
Comment options

Answer selected by hwil055
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants