<div dir="ltr"><p dir="ltr">Hey, Mati! Hola!</p>(Hint: you may want to set language to English so more people can understand the error messages and help)<br><br><div class="gmail_quote">El may 13, 2016 1:17 PM, "Matías Alejandro Castillo Moine" <<a href="mailto:matialecastillo@hotmail.com" target="_blank">matialecastillo@hotmail.com</a>> escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div><div dir="ltr"><div>Hi! I´m again!</div><div>The problem whith galwarp is solved (spatial reference system was wrong). </div><div>But now, I have my time serie registered in Grass and when I export it, I can only export this using the AAgrid or pack format, and R needs the GTiff formatt into the tar.gz archive. I believe that I´m using correctly the command</div><div><br></div><div><div>t.rast.export --overwrite input=LST2@MOD11A2 output=MOD11A2.tar.gz directory=C:\SIG\Grass compression=gzip</div></div></div></div></blockquote><div><br>If this is the command, you are not setting <b>format</b> there, so by default you should be exporting GTiff. <br><br>In the manual page for 7.1 also says that if you use gzip 
compression, you should add .tar.gzip to the output file name. This 
latter is not specified in 70 manual but I guess it applies here, too [0]. <br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div><div>WARNING: El tipo de datos GDAL seleccionado no cubre el rango de datos</div><div>WARNING: Tipo de datos GDAL: Byte, rango: 0 - 255</div><div>WARNING: Rango a exportar: 14837 - 15732</div></div></div></div></blockquote><div><p dir="ltr">What I can see there is that you are exporting your maps as
 byte (0-255) when your data is not in that range (WARNING: Rango a 
exportar: 14837 - 15732). In t.rast.export for grasss 7.1 there's a new 
parameter called type which allows to set data type and would allow you 
to change that [1]. Dunno which is default type for AAgrid or pack (not 
mentioned in the manual page), but for GTiff you 
have several options available (in that case you could try forcing type 
to UInt16,
 which would cover your data range). Anyway, this seems odd since you are using 7.0.4 and not 7.1, right?</p>
@Luca, might the error and/or message be related to [2]?<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="ltr"><div><div>ERROR: La exportación raster puede resultar en una pérdida completa de datos, cancelando.</div><div>Traceback (most recent call last):</div><div>  File "C:\OSGEO4~1\apps\grass\grass-7.0.4/scripts/t.rast.ex</div><div>port.py", line 87, in <module></div><div>    main()</div><div>  File "C:\OSGEO4~1\apps\grass\grass-7.0.4/scripts/t.rast.ex</div><div>port.py", line 82, in main</div><div>    _input, output, compression, directory, where, _format,</div><div>"strds")</div><div>  File "C:\OSGEO4~1\apps\grass\grass-7.0.4\etc\python\grass\</div><div>temporal\stds_export.py", line 298, in export_stds</div><div>    rows, tar, list_file, new_cwd, fs, format_)</div><div>  File "C:\OSGEO4~1\apps\grass\grass-7.0.4\etc\python\grass\</div><div>temporal\stds_export.py", line 97, in</div><div>_export_raster_maps_as_gdal</div><div>    shutil.rmtree(new_cwd)</div><div>  File "C:\OSGEO4~1\apps\Python27\lib\shutil.py", line 252,</div><div>in rmtree</div><div>    onerror(os.remove, fullname, sys.exc_info())</div><div>  File "C:\OSGEO4~1\apps\Python27\lib\shutil.py", line 250,</div><div>in rmtree</div><div>    os.remove(fullname)</div><div>WindowsError: [Error 32] El proceso no tiene acceso al</div><div>archivo porque está siendo utilizado por otro proceso:</div><div>'C:\\SIG\\Grass\\tmp883adw\\archive'</div><div>(Fri May 13 13:09:21 2016) Comando finalizado. (2 segundos)                     </div><div>(Fri May 13 13:14:02 2016)                                                      </div><div><br></div></div><div>Some new idea? </div><div><br></div><div>Thanks!!!</div><div><br></div></div></div></blockquote><div>Does r.out.gdal for only one map works? Something like <br><br></div><div>r.out.gdal input=LST output=LST.tif format=GTiff type=UInt16<br><br></div><div>Let us know :)<br></div><div><br></div><div></div><div>Vero <br></div><div><br>[0] <a href="https://trac.osgeo.org/grass/ticket/2416">https://trac.osgeo.org/grass/ticket/2416</a><br>[1] <a href="https://grass.osgeo.org/grass71/manuals/t.rast.export.html">https://grass.osgeo.org/grass71/manuals/t.rast.export.html</a><br>[2] <a href="https://trac.osgeo.org/grass/changeset/67961">https://trac.osgeo.org/grass/changeset/67961</a><br><br></div></div>
</div>