<p dir="ltr">Hi,</p>
<p dir="ltr">On Jan 19, 2015 7:07 PM, "Pierric de Laborie" <<a href="mailto:pierric.delaborie@gmail.com">pierric.delaborie@gmail.com</a>> wrote:<br>
><br>
> Hi, <br>
> I am using Grass 7 beta 4 on Windows.<br>
><br>
> After importing Landsat raster bands, I use the following command that works fine.<br>
><br>
> i.landsat.toar --overwrite --verbose input=LC81900362014284LGN00_B output=ator metfile=C:\Users\Administrator\Downloads\LC81900362014284LGN00\LC81900362014284LGN00\LC81900362014284LGN00_MTL.txt<br>
><br>
> But when I try to do the same in the Python console (same software), I get the following error (please see below after code) complaining for the input prefix parameter. Note that I get the same error in my Python script on Linux using Grass7, so I supposed it is not related to the os. I guess it is caused by an error in the calling syntax (?)<br>
><br>
> import grass.script as grass   -> OK<br>
><br>
> from grass.pygrass.modules.shortcuts import imagery as i   -> OK<br>
><br>
> i.landsat_toar(input_prefix="LC81900362014284LGN00_B",output_prefix=outpref,metfile="LC81900362014284LGN00_MTL.txt", overwrite="True", quiet="False")<br>
><br>
> Traceback (most recent call last):<br>
>   File "<input>", line 1, in <module><br>
>   File "C:\Program Files (x86)\GRASS GIS 7.0.0beta4\etc\python\grass\pygrass\modules\interface\module.py", line 602, in __call__<br>
>     raise ParameterError('%s is not a valid parameter.' % key)<br>
> ParameterError: input_prefix is not a valid parameter.</p>
<p dir="ltr">In beta4 we have basically concluded the parameter name  standardization which is essentially a simplification.</p>
<p dir="ltr">In this case the parameter has been renamed to 'input'.</p>
<p dir="ltr">You can look it up here:</p>
<p dir="ltr"><a href="https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures#Imagerymodulechanges">https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures#Imagerymodulechanges</a></p>
<p dir="ltr">Hope this helps<br>
Markus</p>