Create df with the mortality raster using moving window #22
-
Hi Andrew and SAMC community, Thank you for developing this great package! I am getting some errors reported in the Model mortality data section. I replaced the road raster in the SAMC python example script with a nighttime light raster, but during the run I get the error "cannot allocate vector of size 4320.9 Gb", but my raster file is only 245.14 KB, how can I fix the error during the moving window? The code and warnings for the runtime error are as follows: b_mort <- data.frame( Error in h(simpleError(msg, call)) : Thankyou for reading this! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
My best guess is that the |
Beta Was this translation helpful? Give feedback.
My best guess is that the
990
infocalWeight(nightlight_zz, 990, 'rectangle')
is way too big based on the unit size for the CRS of your raster. If you plot your raster and look at the axes, the990
in your function is 990 times the distance of 1 unit on your axes. So first make sure your axes make sense, then pick a distance based on that.