<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div><span style="font-size: 12pt;">Hi everyone! </span></div><div><span style="font-size: 12pt;"><br></span></div><div>I never used a list... I think I made a mistake when sent the message yesterday...</div><div><br></div><div><div dir="ltr"><div>I was construct a strds in grass 7.0.3, and I want to export it for use in R to do some statistics not included with tgrass.. But when I do the export operation, I receive this message: </div><div><br></div><div>Usising the GUI: </div><div><div>t.rast.export --overwrite --verbose input=LST2@MOD11A2 output=C:\SIG\Base de datos area de estudio\Datasets_R\LSR_R compression=gzip</div><div>Traceback (most recent call last):</div><div>  File "C:\OSGEO4~1\apps\grass\grass-7.0.3/scripts/t.rast.ex</div><div>port.py", line 87, in <module></div><div>    main()</div><div>  File "C:\OSGEO4~1\apps\grass\grass-7.0.3/scripts/t.rast.ex</div><div>port.py", line 82, in main</div><div>    _input, output, compression, directory, where, _format,</div><div>"strds")</div><div>  File "C:\OSGEO4~1\apps\grass\grass-7.0.3\etc\python\grass\</div><div>temporal\stds_export.py", line 268, in export_stds</div><div>    new_cwd = tempfile.mkdtemp(dir=directory)</div><div>  File "C:\OSGEO4~1\apps\Python27\lib\tempfile.py", line</div><div>329, in mkdtemp</div><div>    _os.mkdir(file, 0700)</div><div>WindowsError: [Error 3] El sistema no puede encontrar la</div><div>ruta especificada: '/tmp\\tmppi2oh1'</div><div>(Wed May 04 16:09:44 2016) Comando finalizado. (1 segundos)                     </div></div><div><br></div><div><div><br></div><div>In python (very difficult): </div><div><br></div><div>input="LST2@MOD11A2"</div><div>output="LST_R.tar.gz"</div><div>compression="gzip"</div><div>directory="C:/SIG/Base de datos area de estudio/Datasets_R/"</div><div>where=None</div><div>format_="GTiff"</div><div>type_="strds"</div><div>tgis.export_stds(input, output, compression, directory, where, format_, type_)</div><div>>>>Traceback (most recent call last):</div><div>  File "<input>", line 1, in <module></div><div>  File "C:\OSGEO4~1\apps\grass\grass-7.0.3\etc\python\grass\temporal\stds_export.py", line 298, in export_stds</div><div>    rows, tar, list_file, new_cwd, fs, format_)</div><div>  File "C:\OSGEO4~1\apps\grass\grass-7.0.3\etc\python\grass\temporal\stds_export.py", line 74, in _export_raster_maps_as_gdal</div><div>    nodata = max_val + 1</div><div>TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'</div></div><div><br></div><div><br></div><div>Some idea? I was try to set the nodata values to 0 using gdalwarp but this doesn't work apparently...  </div><div><br></div><div>Thanks you!!</div><div><br></div><div>Matías</div>                                    </div></div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>                                      </div></body>
</html>