[STATSGRASS] Re: [GRASS-user] Simulation in grass 6
Michael Barton
michael.barton at asu.edu
Tue Sep 25 10:22:13 EDT 2007
Ranier,
On 9/25/07 2:02 AM, "Hamish" <hamish_nospam at yahoo.com> wrote:
> Rainer M. Krug wrote:
>
>> I am planning to write a spatial simulation model, simulating the spread
>> of alien species on a landscape scale by using grass.
>> My question how I should write the simulation model, i.e. in which
>> scripting language. I am using Linux and have quite a bit of experience
>> with R, so I thought that R (together with spgrass6) would be a nice
>> scripting language to write the simulation and sending the grass
>> commands through to grass, because it offers me quite a bit more
>> concerning strtucturing on the modelling side then using a normal shell
>> script
>> But the simulation should also run under Windows and I don't have any
>> experience with grass and R under windows.
You might want to take a look at the wildfire modeling routines already in
GRASS. I think that with minimal work, these could be modified to become
general spread-modeling routines. I've used these (with some difficulty) to
model the spread of other phenomena than wildfires and would love to have
general spread routines in GRASS.
>
> It sounds very well suited for Linux or MacOSX, but I've little idea about the
> GRASS+R Windows situation. Maybe someone on the statsgrass mailing list knows?
> (taking the liberty to cc)
>
>> I have the following questions:
> ..
>> 3) Is any other scripting language more suitable for what I want to
>> achieve (I have no experience with C / C++, but quite a bit with Delphi.
>> I have never used the likes of perl et al. and bash scrips seem a bit
>> awkward to me for bigger projects.)?
>
> You could try python. The next version of GRASS will use python heavily for
> the
> GUI, so expect lots of example scripts, help on the mailing list from fellow
> travelers, and tight integration with the code.
>
> Learn python in 10 min: http://www.poromenos.org/tutorials/python
>
> Also there is a SWIG/Python interface to any needed GIS library functions,
> which is pretty cool, although the grass modules generally give you what you
> need without having to resort to using any low-level libgis functions.
>
> see http://grass.gdf-hannover.de/wiki/GRASS_and_Python
> http://freegis.org/cgi-bin/viewcvs.cgi/grass6/swig/python/
>
> Hamish
I also want to second Hamish's mention of Python. It is a powerful and
(relatively) easy to learn language that will become increasingly important
to GRASS in the future. Extensions scipy and numpy give it additional
abilities.
Michael
>
>
>
>
> ______________________________________________________________________________
> ______
> Luggage? GPS? Comic books?
> Check out fitting gifts for grads at Yahoo! Search
> http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz
>
>
__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
More information about the grass-stats
mailing list