[GRASS-SVN] r48092 - grass/trunk/scripts/i.spectral
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 3 08:18:23 EDT 2011
Author: neteler
Date: 2011-09-03 05:18:23 -0700 (Sat, 03 Sep 2011)
New Revision: 48092
Modified:
grass/trunk/scripts/i.spectral/i.spectral.html
grass/trunk/scripts/i.spectral/i.spectral.py
Log:
fix broken script; update HTML; still no output
Modified: grass/trunk/scripts/i.spectral/i.spectral.html
===================================================================
--- grass/trunk/scripts/i.spectral/i.spectral.html 2011-09-03 12:02:41 UTC (rev 48091)
+++ grass/trunk/scripts/i.spectral/i.spectral.html 2011-09-03 12:18:23 UTC (rev 48092)
@@ -7,22 +7,18 @@
This script needs gnuplot to be installed.
-
<H2>EXAMPLE</H2>
-To analyze a time series of maps, run:
+North Carolina sample dataset:
<div class="code"><pre>
-d.rast map_1
-LIST=`g.mlist type=rast mapset=timeseries pat="map_*" | sort -t '_' -k 2 -n | tr '\n' ','| sed 's+,$++g'`
-i.spectral -i rast=$LIST
+g.region rast=lsat7_2002_10 -p
+LIST=`g.mlist type=rast pat="lsat7_2002_[1-5,7]0" fs=","`
+i.spectral raster=$LIST east_north=637502.25,221744.25
</pre></div>
-This will search all maps in the mapset 'timeseries' which match have
-the 'map_' prefix and order by a number following this prefix (day of the
-year etc). The user is then asked to click into a map position and the
-resulting pixel values of all matching maps are drawn in the gnuplot
-output.
+This will search all LANDSAT map for 2002 but select only the B, G, R,
+NIR, and MIR channels.
<h2>SEE ALSO</h2>
Modified: grass/trunk/scripts/i.spectral/i.spectral.py
===================================================================
--- grass/trunk/scripts/i.spectral/i.spectral.py 2011-09-03 12:02:41 UTC (rev 48091)
+++ grass/trunk/scripts/i.spectral/i.spectral.py 2011-09-03 12:18:23 UTC (rev 48092)
@@ -31,6 +31,7 @@
#% required : no
#%end
#%option G_OPT_R_INPUTS
+#% key: raster
#% required : no
#%end
#%option G_OPT_F_OUTPUT
@@ -154,7 +155,7 @@
group = options['group']
raster = options['raster']
output = options['output']
- coords = options['coords']
+ coords = options['east_north']
label = flags['c']
gnuplot = flags['g']
More information about the grass-commit
mailing list