Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-28 Thread Glynn Clements
Anna Petrášová wrote: How? If we change the interface, I would like to be able to also pass env to write_command. Do you mean passing arbitrary environment variables through grass.script.mapcalc() down to the underlying r.mapcalc command? Which environment variables would be

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-28 Thread Anna Petrášová
On Mon, Jul 28, 2014 at 11:59 AM, Glynn Clements gl...@gclements.plus.com wrote: Anna Petrášová wrote: How? If we change the interface, I would like to be able to also pass env to write_command. Do you mean passing arbitrary environment variables through

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-26 Thread Paulo van Breugel
On 26-07-14 07:58, Paulo van Breugel wrote: On 24-07-14 16:21, Glynn Clements wrote: Paulo van Breugel 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

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-26 Thread Paulo van Breugel
I am not familiar with how changes in the different version are handled, but will these changes to r.mapcalc and grass.script.mapcalc (now in grass 7.1) be implemented in grass 7.0? On 24-07-14 16:21, Glynn Clements wrote: Paulo van Breugel wrote: How do I use this new flag / seed

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-26 Thread Markus Neteler
On Sat, Jul 26, 2014 at 10:56 AM, Paulo van Breugel p.vanbreu...@gmail.com wrote: I am not familiar with how changes in the different version are handled, but will these changes to r.mapcalc and grass.script.mapcalc (now in grass 7.1) be implemented in grass 7.0? In my view this should be done

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-26 Thread Glynn Clements
Anna Petrášová wrote: How do I use this new flag / seed parameter for r.mapcalc in python scripts? I'll update the Python interface. How? If we change the interface, I would like to be able to also pass env to write_command. Do you mean passing arbitrary environment variables

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-26 Thread Glynn Clements
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

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-26 Thread Anna Petrášová
On Sat, Jul 26, 2014 at 6:15 PM, Glynn Clements gl...@gclements.plus.com wrote: Anna Petrášová wrote: How do I use this new flag / seed parameter for r.mapcalc in python scripts? I'll update the Python interface. How? If we change the interface, I would like to be able to

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-25 Thread Paulo van Breugel
On 24-07-14 16:21, Glynn Clements wrote: Paulo van Breugel 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

[GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-24 Thread Paulo van Breugel
How do I use this new flag / seed parameter for r.mapcalc in python scripts? I have for example a script where I can define the seed, or if left empty I want to set the 's' flag: if seed == : grass.mapcalc($tmp_map = rand(${minval},${maxval}), minval = minval,

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-24 Thread Glynn Clements
Paulo van Breugel wrote: How do I use this new flag / seed parameter for r.mapcalc in python scripts? I'll update the Python interface. -- Glynn Clements gl...@gclements.plus.com ___ grass-dev mailing list grass-dev@lists.osgeo.org

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-24 Thread Anna Petrášová
On Thu, Jul 24, 2014 at 10:00 AM, Glynn Clements gl...@gclements.plus.com wrote: Paulo van Breugel wrote: How do I use this new flag / seed parameter for r.mapcalc in python scripts? I'll update the Python interface. How? If we change the interface, I would like to be able to also pass

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-24 Thread Glynn Clements
Paulo van Breugel 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. -- Glynn Clements

Re: [GRASS-dev] Using the new s flag or seed option for r.mapcalc in a python script

2014-07-24 Thread Anna Petrášová
On Thu, Jul 24, 2014 at 10:21 AM, Glynn Clements gl...@gclements.plus.com wrote: Paulo van Breugel 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