问题
I created a landscape that it is possible to modify at each simulation by changing paramaters in the interface.
For my simulated landscapes, I considered that one patch = 100 m²
. For the moment, the spatial extent of my landscape is 0.3 km² (51 patches x 51 patches x 100)
if I didn't make a mistake.
Ideally, I would like to have a spatial extent of 10 000 km²
. I made some tests and obtained an internal error when I specified max-pxcor = 1000
, max-pycor = 1000
and patch size = 1 pixel
in model settings. So, is it possible to have a landscape with a spatial extent of 10 000 km²
?
Thank you very much for your help.

回答1:
This sounds like you might be using up your computer's memory. First, make sure in the "Settings" on the Interface that you set the Location of Origin to "Corner"; otherwise, if you leave the origin at the center then your space will really be 2000 x 2000. Then set max-pxcor and max-pycor to 999 (so space goes 0 to 999).
It works on my computer...
Steve R.
回答2:
The simplest solution would of course be to just increase the patches to 1km². Then you only need the view to be 100x100
. If you have agents on the landscape, you could then just divide their sizes by 10 and speeds by 100 (since each patch is 100 times wider and taller than before).
回答3:
In case amount of pixels in the view (count patches * patch-size ^ 2) is the cause of error instead of amount of patches: running "set-patch-size 1 resize-world 0 999 0 999" instead of "resize-world 0 999 0 999 set-patch-size 1" should remove errors caused by too many pixels in view.
10000x10000 world? For me testing a world with 1 patch and patch size larger than 9000 pixels starts causing errors. A list with a size of 10000 * 10000 elements takes too much memory.
Displaying a world of such size is possible in netlogo. Contents of the world would have to be scattered around in files on the harddrive instead of memory. Visualization can be done with bitmap extension or drawing/stamping with a turtle. Partially visualizing the world using patches is also possible.
来源:https://stackoverflow.com/questions/21919890/how-to-modify-spatial-extent-of-a-landscape