netlogo - How to place turtles in a portion of a raster dataset? -



netlogo - How to place turtles in a portion of a raster dataset? -

from gis extension, imported netlogo raster represented in orange in figure below. objective randomly place 1 turtle in each block of raster represented in bluish (namely in 9 blocks). bluish raster portion of orange raster.

here code randomly place turtles in blocks

let number 1 inquire n-of number patches [ (max-pxcor - ((x-increment + 1) * (max-pxcor / 3))) <= pxcor , pxcor <= (max-pxcor - (x-increment * (max-pxcor / 3))) , (max-pycor - ((y-increment + 1) * (max-pycor / 3))) <= pycor , pycor <= (max-pycor - (y-increment * (max-pycor / 3))) ] [ sprout 1 ]

from orange raster in netlogo, how can apply code above in bluish raster ?

here rasters:

thanks much help.

how this?

ask patches [pcolor = blue] [ sprout 1 ]

i suspect doesn't reply question. that's because don't understand question. if can tell me why above code isn't you're looking for, perhaps can improve more helpful.

note doesn't create sense talk "orange raster" , "blue raster". gis extension knows how import rasters netlogo world, 1 time they've been imported, aren't rasters anymore. that's left after import finishes turtles , patches. if can utilize vocabulary of turtles , patches inquire question, rather vocabulary of "rasters", you'll have improve chance of formulating clear, answerable question.

netlogo

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -