[GRASS-user] FW: Temporal + export

Veronica Andreo veroandreo at gmail.com
Fri May 6 19:24:40 PDT 2016


Hola Mati!

Maybe if you tell us more about your data, workflow and the commands you
are using, we could help you. What do you use gdalwarp for?

Cheers,
Vero

2016-05-06 18:24 GMT-03:00 Matías Alejandro Castillo Moine <
matialecastillo at hotmail.com>:

> Hola Verooooo!
> Thanks you for answer!
> I'm working to solve it. Apparently all my imported rasters are zero cell
> values. There is something wrong with my gdalwarp command... I'll tell you
> later...
> Thanks!!!
>
> ------------------------------
> Date: Thu, 5 May 2016 14:07:56 -0300
> Subject: Re: [GRASS-user] FW: Temporal + export
> From: veroandreo at gmail.com
> To: matialecastillo at hotmail.com
> CC: grass-user at lists.osgeo.org
>
>
> 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 at 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 <
> matialecastillo at hotmail.com>:
>
> 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=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 at 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
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160506/4ede1016/attachment-0001.html>


More information about the grass-user mailing list