<div dir="ltr">Hi, <div>I am using<span style="font-size:13px"> Grass 7 beta 4 on Windows.</span></div><div><div style="font-size:13px"><br></div><div style="font-size:13px">After importing Landsat raster bands, I use the following command that works fine.</div><div style="font-size:13px"><br></div><div style="font-size:13px">i.landsat.toar --overwrite --verbose input=LC81900362014284LGN00_B output=ator metfile=C:\Users\Administrator\Downloads\LC81900362014284LGN00\LC81900362014284LGN00\LC81900362014284LGN00_MTL.txt<br></div><div style="font-size:13px"><br></div><div style="font-size:13px">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 (?)</div><div style="font-size:13px"><br></div><div style="font-size:13px"><div>import grass.script as grass   <span style="background-color:rgb(0,255,0)">-> OK</span></div><div><br></div><div>from grass.pygrass.modules.shortcuts import imagery as i  <span style="background-color:rgb(0,255,0)"> -> OK</span></div></div><div style="font-size:13px"><br></div><span style="font-size:13px">i.landsat_toar(input_prefix="</span><span style="font-size:13px">LC81900362014284LGN00_B",</span><span style="font-size:13px">output_prefix=outpref,metfile=</span><span style="font-size:13px">"LC81900362014284LGN00_MTL.</span><span style="font-size:13px">txt", overwrite="True", quiet="False")</span><div style="font-size:13px"><br></div><div style="font-size:13px"><div><font color="#ff0000">Traceback (most recent call last):</font></div><div><font color="#ff0000">  File "<input>", line 1, in <module></font></div><div><font color="#ff0000">  File "C:\Program Files (x86)\GRASS GIS 7.0.0beta4\etc\python\grass\pygrass\modules\interface\module.py", line 602, in __call__</font></div><div><font color="#ff0000">    raise ParameterError('%s is not a valid parameter.' % key)</font></div><div><font color="#ff0000">ParameterError: input_prefix is not a valid parameter.</font></div><div><font color="#ff0000"><br></font></div><div><font color="#ff0000"><br></font></div><div>Thanks in advance<br></div></div></div></div>