<div dir="ltr">The use of r.external makes a lot of sense when dealing with very large files. Does the use of "external" files work as expected in all of the new t.* modules?<div><br></div><div>Thanks,</div><div>Dylan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 7, 2015 at 12:09 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Oct 7, 2015 at 12:55 PM, Blumentrath, Stefan<br>
<<a href="mailto:Stefan.Blumentrath@nina.no">Stefan.Blumentrath@nina.no</a>> wrote:<br>
...<br>
<span class="">> My suggestion is to not use PostGIS for big rasters, unless you have to,<br>
> because you want to use the data in a specific application for example.<br>
<br>
</span>Note r.external and r.external.out of GRASS GIS 7 for avoiding data duplication:<br>
<br>
<a href="https://grass.osgeo.org/grass70/manuals/r.external.html" rel="noreferrer" target="_blank">https://grass.osgeo.org/grass70/manuals/r.external.html</a><br>
<a href="https://grass.osgeo.org/grass70/manuals/r.external.out.html" rel="noreferrer" target="_blank">https://grass.osgeo.org/grass70/manuals/r.external.out.html</a><br>
<br>
Here an example:<br>
<br>
# register (rather than import) a GeoTIFF file in GRASS GIS:<br>
r.external input=terra_lst1km20030314.LST_Day.tif output=modis_celsius<br>
<br>
# define output directory for files resulting from subsequent calculations:<br>
r.external.out directory=$HOME/gisoutput/ format="GTiff"<br>
<br>
# perform calculations (here: extract pixels > 20 deg C)<br>
# store output directly as GeoTIFF file, hence add the .tif extension:<br>
r.mapcalc "warm.tif = if(modis_celsius > 20.0, modis_celsius, null() )"<br>
<br>
# cease GDAL output connection and turn back to write standard GRASS<br>
raster files:<br>
r.external.out -r<br>
<br>
# use the result elsewhere<br>
qgis $HOME/gisoutput/warm.tif<br>
<br>
Best<br>
Markus<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div><br></div>