Hola Mati!!!!! I'm so glad you are using grass and writing to the list! :)
Markus won me, but I had the same pieces of advice. First idea/advice: do not use folder names (nor file names) with spaces, second: maybe you wanna update to 7.0.4, the new stable release. I've tried here (grass71, fedora23 box) with: t.rast.export input=cla@clorofila output=cla.gzip compression=gzip directory=/home/veroandreo where="start_time >= '2013-01-01'" Checking GDAL data type and nodata value... 100% Using GDAL data type <Float32> Input raster map contains cells with NULL-value (no-data). The value -nan will be used to represent no-data values in the input map. You can specify a nodata value with the nodata option. Exporting raster data to GTiff format... 100% r.out.gdal complete. File <A20130012013008.L3m_8D_CHL_chlor_a_4km_arg.tif> created. ... tar xvf cla.gzip all is there and looks fine... The nodata option comes from r.out.gdal [1]. t.rast.export uses it to export maps in the strds. Don't know about gdalwarp, but in any case, if you will then import data into R for other analyses, you can change the value there. Un abrazo, Vero [1] https://grass.osgeo.org/grass70/manuals/r.out.gdal.html 2016-05-05 12:41 GMT-03:00 Matías Alejandro Castillo Moine < [email protected]>: > 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 <module> > 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 "<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 + 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 > > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user >
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
