The maximum grid size? #180
-
OrdinaryKriging: I run with 100 samples and 1000x1000 grid size, got MemoryError, but succeed with 500x500, so how large grid size can be supported? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey there, it is depending on the memory size of your system. For example, I have 16GB of memory installed and I don't have a problem with a grid-size of To get an impression, have a look at the following code: >>> import numpy as np
>>> a = np.zeros((32768, 32768), dtype=float)
>>> a.nbytes/1024/1024
8192.0 So a numpy array of the size We are working on more memory efficient routines, but for now, you have to either down-size your input-data, or update your system-memory. If you are on a Linux system, you could think about using a dynamic swap-space to increase available ram by using your HDD/SSD (helped me some years ago): https://github.com/Tookmund/Swapspace Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hello Sebastian, tnx for your prior msg. Are 1k^2 points w 16 gb ram still the ~limit? Does it matter if style = ‘grid’ or ‘points’? Tnx for your work. Bis bald, Mark |
Beta Was this translation helpful? Give feedback.
Hey there,
it is depending on the memory size of your system. For example, I have 16GB of memory installed and I don't have a problem with a grid-size of
1000*1000
. The kriging matrix has a size of at leastn_samples * n_samples
and the right-hand-side ofn_samples * n_grid_pnts
.To get an impression, have a look at the following code:
So a numpy array of the size
2^15 * 2^15
takes 8GiB of RAM.We are working on more memory efficient routines, but for now, you have to either down-size your input-data, or update your system-memory.
If you are on a Linux system, you could think about using a …