[GRASS-user] FW: Temporal + export
Matías Alejandro Castillo Moine
matialecastillo at hotmail.com
Thu May 5 08:41:03 PDT 2016
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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160505/51d2c905/attachment.html>
More information about the grass-user
mailing list