[GRASS-SVN] r66619 - in grass/trunk/raster: r.external r.external.out
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 27 08:45:22 PDT 2015
Author: neteler
Date: 2015-10-27 08:45:22 -0700 (Tue, 27 Oct 2015)
New Revision: 66619
Modified:
grass/trunk/raster/r.external.out/r.external.out.html
grass/trunk/raster/r.external/r.external.html
Log:
r.external, r.external.out manual: minor text improvements
Modified: grass/trunk/raster/r.external/r.external.html
===================================================================
--- grass/trunk/raster/r.external/r.external.html 2015-10-27 15:43:43 UTC (rev 66618)
+++ grass/trunk/raster/r.external/r.external.html 2015-10-27 15:45:22 UTC (rev 66619)
@@ -28,7 +28,7 @@
<div class="code"><pre>
# import of all channels (each channel will become a GRASS raster map):
-r.external /home/user/data/maps/059100.tif out=ortho
+r.external input=/home/user/data/maps/059100.tif output=ortho
g.region raster=ortho.3 -p
d.rgb r=ortho.1 g=ortho.2 b=ortho.3
r.composite r=ortho.1 g=ortho.2 b=ortho.3 output=ortho.rgb
@@ -42,19 +42,19 @@
<div class="code"><pre>
# register GeoTIFF file to be used in current mapset:
-r.external terra_lst1km20030314.LST_Day.tif out=modis_celsius
+r.external input=terra_lst1km20030314.LST_Day.tif output=modis_celsius
# define output directory for files resulting from GRASS calculation:
r.external.out directory=$HOME/gisoutput/ format="GTiff"
-
-# perform GRASS calculation (here: extract pixels > 20 deg C)
+
+# perform GRASS calculation (here: extract pixels > 20 deg C)
# this stores the output map directly as GeoTIFF:
-r.mapcalc "warm.tif = if(modis_celsius > 20.0, modis_celsius, null() )"
-
+r.mapcalc "warm.tif = if(modis_celsius > 20.0, modis_celsius, null() )"
+
# cease GDAL output connection and turn back to write GRASS raster files:
r.external.out -r
-
-# now use the result elsewhere
+
+# now use the resulting file elsewhere
gdalinfo $HOME/gisoutput/warm.tif
</pre></div>
Modified: grass/trunk/raster/r.external.out/r.external.out.html
===================================================================
--- grass/trunk/raster/r.external.out/r.external.out.html 2015-10-27 15:43:43 UTC (rev 66618)
+++ grass/trunk/raster/r.external.out/r.external.out.html 2015-10-27 15:45:22 UTC (rev 66619)
@@ -20,23 +20,27 @@
while writing out the results directly in GeoTIFF:
<div class="code"><pre>
-# register GeoTIFF file in GRASS database:
-r.external terra_lst1km20030314.LST_Day.tif out=modis_celsius
+# register GeoTIFF file to be used in current mapset:
+r.external input=terra_lst1km20030314.LST_Day.tif output=modis_celsius
# define output directory for files resulting from GRASS calculation:
r.external.out directory=$HOME/gisoutput/ format="GTiff"
# perform GRASS calculation (here: extract pixels > 20 deg C)
-# write output directly as GeoTIFF:
-r.mapcalc "warm.tif = if(modis_celsius > 20, modis_celsius, null() )"
+# this stores the output map directly as GeoTIFF:
+r.mapcalc "warm.tif = if(modis_celsius > 20.0, 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
+# now use the resulting file elsewhere
+gdalinfo $HOME/gisoutput/warm.tif
</pre></div>
+<h2>REFERENCES</h2>
+
+GDAL Pages: <a href="http://www.gdal.org">http://www.gdal.org/</a><br>
+
<h2>SEE ALSO</h2>
<em>
@@ -45,12 +49,9 @@
<a href="r.external.html">r.external</a>
</em>
-<h2>REFERENCES</h2>
-
-GDAL Pages: <a href="http://www.gdal.org">http://www.gdal.org/</a><br>
-
<h2>AUTHOR</h2>
Glynn Clements
-<p><i>Last changed: $Date$</i>
+<p>
+<i>Last changed: $Date$</i>
More information about the grass-commit
mailing list