List Info

Thread: Creating turtles based on patch values




Creating turtles based on patch values
country flaguser name
United States
2008-03-27 11:31:46

I am new to Netlogo, i am working on a GIS map i inputted to the
netlogo through an ascii file. However i want to create turtles on
specific patches through their values.
Does anyone has an idea about a way to go about doing this, or perhaps
the code i can use for this .

Olaniyi Vincent Odunuga
Department of Urban and Regional Planning and Geo-Information
Management & Applications (PGM),
International Institute for Geo-Information Science and Earth
Observation (ITC),
PO Box 6, 7500 AA Enschede, The Netherlands.
Tel: +31-534874258
Fax: +31-534874575
E-mail: odunuga17392%40itc.nl">odunuga17392itc.nl
http://www.itc.nl

__._,_.___
.

__,_._,___
Re: Creating turtles based on patch values
country flaguser name
United States
2008-03-28 13:22:55

You can use the WITH operator to select the patches of interest.
You can use the SPROUT command to make a patch sprout one or more
turtles and make those turtles run commands to initialize themselves.

e.g.:

ask patches with [ landuse-code = 47 ] ;; select patches
[ ;; the patches run this code
hatch 1 ;; make a turtles
[ ;; the turtle runs this code
set breed breed-47
set color blue
set shape "house"
set size 1.5
;; and so on...
]
]

~~james

On Thu, Mar 27, 2008 at 12:31 PM, olaniyi1979 < olaniyi1979%40yahoo.com">olaniyi1979yahoo.com> wrote:
&gt; I am new to Netlogo, i am working on a GIS map i inputted to the
> netlogo through an ascii file. However i want to create turtles on
> specific patches through their values.
> Does anyone has an idea about a way to go about doing this, or perhaps
> the code i can use for this .
>
>
>;
> Olaniyi Vincent Odunuga
> Department of Urban and Regional Planning and Geo-Information
>; Management & Applications (PGM),
&gt; International Institute for Geo-Information Science and Earth
&gt; Observation (ITC),
&gt; PO Box 6, 7500 AA Enschede, The Netherlands.
> Tel: +31-534874258
&gt; Fax: +31-534874575
&gt; E-mail: odunuga17392%40itc.nl">odunuga17392itc.nl
> http://www.itc.nl
>
>;
>
> ------------------------------------
&gt;
> Yahoo! Groups Links
&gt;
>
>
>;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )