<div dir="ltr"><div>Dear grass users,<br></div><div><br></div><div>I'm using grass 7.4.1 trying to export  all raster layers in the current mapset out of grass to a folder

as GeoTiff files though a for loop from the python shell  as follows and I'm getting the error in red... <br></div><div>What could be the problem?<br></div><div>Thanks a lot in advance.</div><div>Regards,</div><div>Gabriel<br></div><div><br></div><div>>>>import grass.script as gscript<br>>>>rastlist=grass.read_command("g.list",type="rast")<br>>>>rastlist<br>F121996<br>F121997<br>F141999<br>F142000<br><br>>>>os.chdir('C:\\Users\\Gabriel\\Desktop\\out')<br>None<br>>>>for raster in rastlist:<br>...         gscript.run_command('r.out.gdal', input=raster,<br>...                                             output=raster + '.tiff', format='GTiff')<br>                        <br><span style="color:rgb(255,0,0)">Traceback (most recent call last):<br>  File "<input>", line 3, in <module><br>  File "C:\OSGEO4~1\apps\grass\grass-7.4.1\etc\python\grass\script\core.py", line 421, in run_command<br>    return handle_errors(returncode, returncode, args, kwargs)<br>  File "C:\OSGEO4~1\apps\grass\grass-7.4.1\etc\python\grass\script\core.py", line 332, in handle_errors<br>    returncode=returncode)<br>CalledModuleError: Module run None ['r.out.gdal', 'input=F', 'output=F.tiff', 'format=GTiff'] ended with error<br>Process ended with non-zero return code 1. See errors in the (error) output.</span><br></div></div>