[GRASS-SVN] r33303 - grass-addons/gipe/i.dn2full.l5

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 6 11:19:06 EDT 2008


Author: ychemin
Date: 2008-09-06 11:19:06 -0400 (Sat, 06 Sep 2008)
New Revision: 33303

Modified:
   grass-addons/gipe/i.dn2full.l5/dn2rad_landsat5.c
Log:
bug fixing processing made after 2007

Modified: grass-addons/gipe/i.dn2full.l5/dn2rad_landsat5.c
===================================================================
--- grass-addons/gipe/i.dn2full.l5/dn2rad_landsat5.c	2008-09-06 13:14:46 UTC (rev 33302)
+++ grass-addons/gipe/i.dn2full.l5/dn2rad_landsat5.c	2008-09-06 15:19:06 UTC (rev 33303)
@@ -57,6 +57,17 @@
 	    gain_mode = 4;
 	}
     }
+    /*Processing in YEAR 2008+*/
+    else if (c_year >= 2008) {
+        /*Satellite overpass year before 1992*/
+	if (year < 1992) {
+	    gain_mode = 3;
+	}
+        /*Satellite overpass year after 1992*/
+	else {
+	    gain_mode = 4;
+	}
+    }
     /*end of gain type search*/
 
     if (gain_mode == 1) {



More information about the grass-commit mailing list