Hi everyone! 
I never used a list... I think I made a mistake when sent the message 
yesterday...
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: 
Usising the GUI: t.rast.export --overwrite --verbose input=LST2@MOD11A2 
output=C:\SIG\Base de datos area de estudio\Datasets_R\LSR_R 
compression=gzipTraceback (most recent call last):  File 
"C:\OSGEO4~1\apps\grass\grass-7.0.3/scripts/t.rast.export.py", line 87, in 
<module>    main()  File 
"C:\OSGEO4~1\apps\grass\grass-7.0.3/scripts/t.rast.export.py", line 82, in main 
   _input, output, compression, directory, where, _format,"strds")  File 
"C:\OSGEO4~1\apps\grass\grass-7.0.3\etc\python\grass\temporal\stds_export.py", 
line 268, in export_stds    new_cwd = tempfile.mkdtemp(dir=directory)  File 
"C:\OSGEO4~1\apps\Python27\lib\tempfile.py", line329, in mkdtemp    
_os.mkdir(file, 0700)WindowsError: [Error 3] El sistema no puede encontrar 
laruta especificada: '/tmp\\tmppi2oh1'(Wed May 04 16:09:44 2016) Comando 
finalizado. (1 segundos)                     

In python (very difficult): 
input="LST2@MOD11A2"output="LST_R.tar.gz"compression="gzip"directory="C:/SIG/Base
 de datos area de 
estudio/Datasets_R/"where=Noneformat_="GTiff"type_="strds"tgis.export_stds(input,
 output, compression, directory, where, format_, type_)>>>Traceback (most 
recent call last):  File "<input>", line 1, in <module>  File 
"C:\OSGEO4~1\apps\grass\grass-7.0.3\etc\python\grass\temporal\stds_export.py", 
line 298, in export_stds    rows, tar, list_file, new_cwd, fs, format_)  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    nodata = max_val + 1TypeError: 
unsupported operand type(s) for +: 'NoneType' and 'int'

Some idea? I was try to set the nodata values to 0 using gdalwarp but this 
doesn't work apparently...  
Thanks you!!
Matías                                                                          
  
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to