[GRASS-SVN] r49319 - grass/trunk/raster/r.external.out

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Nov 21 17:09:53 EST 2011


Author: neteler
Date: 2011-11-21 14:09:53 -0800 (Mon, 21 Nov 2011)
New Revision: 49319

Modified:
   grass/trunk/raster/r.external.out/r.external.out.html
Log:
explain directory trick (from glynnc)

Modified: grass/trunk/raster/r.external.out/r.external.out.html
===================================================================
--- grass/trunk/raster/r.external.out/r.external.out.html	2011-11-21 21:23:16 UTC (rev 49318)
+++ grass/trunk/raster/r.external.out/r.external.out.html	2011-11-21 22:09:53 UTC (rev 49319)
@@ -3,7 +3,16 @@
 <em>r.external.out</em> instructs GRASS to write raster maps as data
 files (e.g. GeoTIFF) using GDAL.
 
+<h2>NOTES</h2>
 
+A relative directory path (parameter <em>directory</em>) is interpreted
+relative to the current mapset directory, not the current directory where
+the command was launched. An unspecified or empty directory (which will
+occur if the user passes a simple filename for <em>output</em>) results
+in the output file being placed in the "gdal/" subdirectory of the 
+current mapset directory.
+
+
 <h2>EXAMPLE</h2>
 
 The module <em>r.external.out</em> can be used along with
@@ -14,12 +23,15 @@
 # register GeoTIFF file in GRASS database:
 r.external terra_lst1km20030314.LST_Day.tif out=modis_celsius
 
-# define output directory for GRASS calculation results:
+# define output directory for files resulting from GRASS calculation:
 r.external.out $HOME/gisoutput/
 
 # do something (here: extract pixels &gt; 20°C), write output directly as GeoTIFF:
 r.mapcalc "warm.tif = if(modis_celsius &gt; 20, modis_celsius, null() )"
 
+# cease GDAL output connection and turn back to write GRASS raster files:
+r.external.out -r
+
 # use the result elsewhere
 qgis $HOME/gisoutput/warm.tif
 </pre></div>



More information about the grass-commit mailing list