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=gzip
Traceback (most recent call last):
File “C:\OSGEO4~1\apps\grass\grass-7.0.3/scripts/t.rast.ex
port.py”, line 87, in
main()
File “C:\OSGEO4~1\apps\grass\grass-7.0.3/scripts/t.rast.ex
port.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”, line
329, in mkdtemp
_os.mkdir(file, 0700)
WindowsError: [Error 3] El sistema no puede encontrar la
ruta 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=None
format_=“GTiff”
type_=“strds”
tgis.export_stds(input, output, compression, directory, where, format_, type_)
Traceback (most recent call last):
File “”, line 1, in
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 + 1
TypeError: 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