[GRASS-SVN] r67791 - grass/trunk/scripts/i.pansharpen
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 9 08:51:03 PST 2016
Author: neteler
Date: 2016-02-09 08:51:03 -0800 (Tue, 09 Feb 2016)
New Revision: 67791
Modified:
grass/trunk/scripts/i.pansharpen/i.pansharpen.html
grass/trunk/scripts/i.pansharpen/i.pansharpen.py
grass/trunk/scripts/i.pansharpen/rgb_brovey321.jpg
grass/trunk/scripts/i.pansharpen/rgb_ihs321.jpg
grass/trunk/scripts/i.pansharpen/rgb_landsat321.jpg
grass/trunk/scripts/i.pansharpen/rgb_pca321.jpg
Log:
i.pansharpen: fix r.colors call; HTML cosmetics; shrink screenshots to 600px width as per documentation rules
Modified: grass/trunk/scripts/i.pansharpen/i.pansharpen.html
===================================================================
--- grass/trunk/scripts/i.pansharpen/i.pansharpen.html 2016-02-08 13:22:52 UTC (rev 67790)
+++ grass/trunk/scripts/i.pansharpen/i.pansharpen.html 2016-02-09 16:51:03 UTC (rev 67791)
@@ -80,6 +80,8 @@
<h2>EXAMPLES</h2>
+<h3>Pan sharpening comparison example</h3>
+
Pan sharpening of a Landsat image from Boulder, Colorado, USA:
<div class="code"><pre>
@@ -93,12 +95,14 @@
blue=p034r032_7dt20010924_z13_10 pan=p034r032_7dp20010924_z13_80
output=ihs321 method=ihs
+# ... likewise with method=brovey and method=pca
+
# display at 15m
g.region raster=ihs321_blue -p
d.rgb b=ihs321_blue g=ihs321_green r=ihs321_red
</pre></div>
-
+<p>
<b><em>Results:</em></b>
<p><center>
@@ -139,8 +143,9 @@
</center>
<br>
+<h3>Pan sharpening of LANDSAT ETM+ (Landsat 7)</h3>
-Example: LANDSAT ETM+ (Landsat 7), North Carolina sample dataset:
+LANDSAT ETM+ (Landsat 7), North Carolina sample dataset:
<div class="code"><pre>
# original at 28m
Modified: grass/trunk/scripts/i.pansharpen/i.pansharpen.py
===================================================================
--- grass/trunk/scripts/i.pansharpen/i.pansharpen.py 2016-02-08 13:22:52 UTC (rev 67790)
+++ grass/trunk/scripts/i.pansharpen/i.pansharpen.py 2016-02-09 16:51:03 UTC (rev 67791)
@@ -316,7 +316,7 @@
# equalized grey scales give best contrast
for ch in ['red', 'green', 'blue']:
grass.run_command('r.colors', quiet=True, map="%s_%s" % (out, ch),
- flags="e", col='grey')
+ flags="e", color='grey')
# Landsat too blue-ish because panchromatic band less sensitive to blue
# light, so output blue channed can be modified
Modified: grass/trunk/scripts/i.pansharpen/rgb_brovey321.jpg
===================================================================
(Binary files differ)
Modified: grass/trunk/scripts/i.pansharpen/rgb_ihs321.jpg
===================================================================
(Binary files differ)
Modified: grass/trunk/scripts/i.pansharpen/rgb_landsat321.jpg
===================================================================
(Binary files differ)
Modified: grass/trunk/scripts/i.pansharpen/rgb_pca321.jpg
===================================================================
(Binary files differ)
More information about the grass-commit
mailing list