Failure to produce a Grid with Spline due to a MemoryError #92
-
I am using data with 50m x 50 m data and the data is huge. However, I trimmed to 1/10th its original size but the error was still appearing. Here is the error: MemoryError: Unable to allocate 60.6 GiB for an array with shape (90150, 90150) and data type float64. How do I deal with error? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
👋🏽 Hi @AlfredManda, I'm afraid you only have 2 options here:
The next version of Verde will include a fast nearest neighbours interpolator which would be great for making Lidar DEMs for example. If you want to use it, you'll have to install the development version of Verde from GitHub. See https://www.fatiando.org/verde/dev/api/generated/verde.KNeighbors.html#verde.KNeighbors and https://www.fatiando.org/verde/dev/install.html Hope this helps! |
Beta Was this translation helpful? Give feedback.
👋🏽 Hi @AlfredManda, I'm afraid you only have 2 options here:
Spline
is good for sparse data of moderate size (a few 10,000s). If you're interpolating between grids, use the built-in interpolation in xarray instead. Even then, anything other than nearest neighbours will be very limited for larger grids like yours.The next version of Verde will include a fast nearest neighbours interpolator which would be great for making Lidar DEMs for example. If you want to use it, you'll have to install the development version of Verde from GitHub. See https://www.fatiando.org/verde/dev/ap…