When there are more than 90,000 coordinates (for example an area a bit larger than 300 pixels * 300 pixels), the variogram functions produces "std::bad_alloc" error. I would like to know if there is any workaround for this error or it is dependent on the hardware.
The coordinates are all integer and the data (values) are integer as well in this case. Changing n_lags or bin_func doesn't resolve that error. Setting max_lag to 1/2 of maximum lag doesn't help either.
Before I was only doing variogram on area at most 150 pixels * 150 pixels, and the coordinates are float64 as well as the data (values) and there was no error. I am guessing that there is a threshold of maximum of coordinates if it is irrelevant to the hardware.
I can provide the data in case.
When there are more than 90,000 coordinates (for example an area a bit larger than 300 pixels * 300 pixels), the variogram functions produces "std::bad_alloc" error. I would like to know if there is any workaround for this error or it is dependent on the hardware.
The coordinates are all integer and the data (values) are integer as well in this case. Changing n_lags or bin_func doesn't resolve that error. Setting max_lag to 1/2 of maximum lag doesn't help either.
Before I was only doing variogram on area at most 150 pixels * 150 pixels, and the coordinates are float64 as well as the data (values) and there was no error. I am guessing that there is a threshold of maximum of coordinates if it is irrelevant to the hardware.
I can provide the data in case.