[GRASS-SVN] r67655 - grass-addons/grass7/imagery/i.wi

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 24 14:06:07 PST 2016


Author: ychemin
Date: 2016-01-24 14:06:07 -0800 (Sun, 24 Jan 2016)
New Revision: 67655

Added:
   grass-addons/grass7/imagery/i.wi/awei.c
   grass-addons/grass7/imagery/i.wi/tcw.c
   grass-addons/grass7/imagery/i.wi/wi.c
Log:
Added tcw, wi and awei libraries

Added: grass-addons/grass7/imagery/i.wi/awei.c
===================================================================
--- grass-addons/grass7/imagery/i.wi/awei.c	                        (rev 0)
+++ grass-addons/grass7/imagery/i.wi/awei.c	2016-01-24 22:06:07 UTC (rev 67655)
@@ -0,0 +1,27 @@
+#include<stdio.h>
+#include<math.h>
+#include<stdlib.h>
+
+    /* Automated Water Extraction Index
+     * Feyisa, G.L., Meilby, H., Fensholt, R., & Proud, S.R. (2014). Automated Water Extraction
+Index: A new technique for surface water mapping using Landsat imagery. Remote
+Sensing of Environment, 140, 23–35. http://dx.doi.org/10.1016/j.rse.2013.08.029.
+     * Landsat TM/ETM+ : 4 × (b2 - b5 ) - (0.25 × b4 + 2.75 × b5 )
+     */ 
+double awei_noshadow(double greenchan, double nirchan, double mirchan) 
+{
+    double result= 4 * (greenchan - mirchan ) - (0.25 * nirchan + 2.75 * mirchan )
+    return result;
+}
+
+    /* Automated Water Extraction Index
+     * Feyisa, G.L., Meilby, H., Fensholt, R., & Proud, S.R. (2014). Automated Water Extraction
+Index: A new technique for surface water mapping using Landsat imagery. Remote
+Sensing of Environment, 140, 23–35. http://dx.doi.org/10.1016/j.rse.2013.08.029.
+     * Landsat TM/ETM+ : b1 + 2.5 × b2 - 1.5 × (b4 + b5 ) - 0.25 × b7
+     */ 
+double awei_shadow(double bluechan, double greenchan, double nirchan, double mirchan, double band7chan) 
+{
+    double result= bluechan + 2.5 * greenchan - 1.5 * (nirchan + mirchan) - 0.25 * band7chan
+    return result;
+}

Added: grass-addons/grass7/imagery/i.wi/tcw.c
===================================================================
--- grass-addons/grass7/imagery/i.wi/tcw.c	                        (rev 0)
+++ grass-addons/grass7/imagery/i.wi/tcw.c	2016-01-24 22:06:07 UTC (rev 67655)
@@ -0,0 +1,14 @@
+#include<stdio.h>
+#include<math.h>
+#include<stdlib.h>
+
+    /* T C W 
+     * Crist, E.P. (1985). A TM tasseled cap equivalent transformation for reflectance factor data.
+Remote Sensing of Environment, 17, 301–306.
+     * Landsat TM/ETM+ : 0.0315*b1 + 0.2021*b2 + 0.3102*b3 + 0.1594*b4 - 0.6806*b5 - 0.6109*b7
+     */ 
+double tcw(double bluechan, double greenchan, double redchan, double nirchan, double nirchan, double band7chan) 
+{
+    double result = 0.0315*bluechan + 0.2021*greenchan + 0.3102*redchan + 0.1594*nirchan - 0.6806*mirchan - 0.6109*band7chan;
+    return result;
+}

Added: grass-addons/grass7/imagery/i.wi/wi.c
===================================================================
--- grass-addons/grass7/imagery/i.wi/wi.c	                        (rev 0)
+++ grass-addons/grass7/imagery/i.wi/wi.c	2016-01-24 22:06:07 UTC (rev 67655)
@@ -0,0 +1,13 @@
+#include<stdio.h>
+#include<math.h>
+#include<stdlib.h>
+
+    /* WI
+     * Adrian Fisher, Neil Flood, Tim Danaher, Comparing Landsat water index methods for automated water classification in eastern Australia, Remote Sensing of Environment, Volume 175, 15 March 2016, Pages 167-182, ISSN 0034-4257, http://dx.doi.org/10.1016/j.rse.2015.12.055.
+     * Landsat TM/ETM+ : 1.7204 + 171 b2 + 3 b3 - 70 b4 - 45 b5 - 71 b7
+     */ 
+double wi( double greenchan, double redchan, double nirchan, double nirchan, double band7chan) 
+{
+    double result = 1.7204 + 171 * greenchan + 3 * redchan - 70 * nirchan - 45 * mirchan - 71 * band7chan;
+    return result;
+}



More information about the grass-commit mailing list