[GRASS-user] i.maxlik

Johannes Radinger johannesradinger at gmail.com
Wed Feb 13 03:27:04 PST 2013


Hi

On Wed, Feb 13, 2013 at 10:36 AM, Rebecca Stedham
<rlstedham at btinternet.com> wrote:
> Hello,
>
> I am running i.maxlik in python - attempting to automate a processing chain.
> I use the command:
>
> grass.run_command('i.maxlik', group= group, subgroup=subgroup,
> class='classification', sigfile = sigfile, verbose = True)
>
> Infuriatingly, however 'class' is a python keyword and it doesn't run due to
> 'invalid syntax'.

I had a similar issue with v.distance which uses 'from', another python keyword.
Here the pythoncode is '_from' which looks like:
grass.run_command("v.distance",_from="xxx",to="xxx",...)

Maybe there is something similar for class ('_class'?) in i.maxlik.

/johannes

>
> Would you know a way to work around this?
>
> Regards
>
> Becky
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>


More information about the grass-user mailing list