[GRASS-SVN] r67006 - grass-addons/grass7/imagery/i.spec.sam
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 2 02:49:00 PST 2015
Author: ychemin
Date: 2015-12-02 02:49:00 -0800 (Wed, 02 Dec 2015)
New Revision: 67006
Added:
grass-addons/grass7/imagery/i.spec.sam/test1.sh
Log:
Updated test data map generation based on python specangle test
Added: grass-addons/grass7/imagery/i.spec.sam/test1.sh
===================================================================
--- grass-addons/grass7/imagery/i.spec.sam/test1.sh (rev 0)
+++ grass-addons/grass7/imagery/i.spec.sam/test1.sh 2015-12-02 10:49:00 UTC (rev 67006)
@@ -0,0 +1,21 @@
+#!/bin/bash
+#This is a test using nc_spm_08_grass7 sample dataset
+#from the main grass website
+
+# create R/G/B/NIR
+i.group group=test1 input=sam_test_b1,sam_test_b2,sam_test_b3,sam_test_b4
+
+# computational region
+g.region raster=sam_test_b1 -p
+
+# SAM
+i.spec.sam group=test1 input=~/dev/grass-addons/grass7/imagery/i.spec.sam/spectrum.dat result=specang
+# color table (TODO: should be reverse?)
+for map in `seq 1 4` ; do r.colors specang.$map color=grey ; done
+
+# visualize
+d.mon wx1 ; sleep 2 ; d.rast specang.1; d.legend specang.1
+d.mon wx2 ; sleep 2 ; d.rast specang.2; d.legend specang.2
+d.mon wx3 ; sleep 2 ; d.rast specang.3; d.legend specang.3
+d.mon wx4 ; sleep 2 ; d.rast specang.4; d.legend specang.4
+
More information about the grass-commit
mailing list