[GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script
Glynn Clements
glynn at gclements.plus.com
Sat Jul 26 15:23:58 PDT 2014
Anna Petrášová wrote:
> > > How do I use this new flag / seed parameter for r.mapcalc in python
> > > scripts?
> >
> > The grass.script.mapcalc() function has been updated to accept a seed=
> > parameter, which should be either an integer or the string 'auto' for
> > a random seed.
>
> Just curious, why don't you use the s flag and instead create the seed in
> Python?
It was simpler. Also, the Python version probably has better entropy.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list