[GRASS-SVN] r33286 - grass-addons/gipe/i.dn2full.l5
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 6 05:58:23 EDT 2008
Author: ychemin
Date: 2008-09-06 05:58:22 -0400 (Sat, 06 Sep 2008)
New Revision: 33286
Modified:
grass-addons/gipe/i.dn2full.l5/dn2rad_landsat5.c
Log:
inline explainations
Modified: grass-addons/gipe/i.dn2full.l5/dn2rad_landsat5.c
===================================================================
--- grass-addons/gipe/i.dn2full.l5/dn2rad_landsat5.c 2008-09-05 22:26:09 UTC (rev 33285)
+++ grass-addons/gipe/i.dn2full.l5/dn2rad_landsat5.c 2008-09-06 09:58:22 UTC (rev 33286)
@@ -10,39 +10,55 @@
int gain_mode;
+ /*Processing before 2003*/
if (c_year < 2003) {
gain_mode = 1;
}
+
+ /*Processing in YEAR 2003*/
else if (c_year == 2003) {
+ /*Processing before May 2003*/
if (c_month < 5) {
gain_mode = 1;
}
+ /*Processing before 5th of May 2003*/
else if (c_month == 5) {
if (c_day < 5) {
gain_mode = 1;
}
+ /*Processing after 5th of May 2003*/
else {
gain_mode = 2;
}
}
+ /*Processing after May 2003*/
else {
gain_mode = 2;
}
}
+
+ /*Processing in YEARS after 2003 and before 2007*/
else if (c_year > 2003 && c_year < 2007) {
gain_mode = 2;
}
+
+ /*Processing in YEAR 2007*/
else if (c_year == 2007) {
+ /*Processing before May 2007*/
if (c_month < 5) {
gain_mode = 2;
}
+ /*Satellite overpass year before 1992*/
else if (year < 1992) {
gain_mode = 3;
}
+ /*Satellite overpass year after 1992*/
else {
gain_mode = 4;
}
}
+ /*end of gain type search*/
+
if (gain_mode == 1) {
if (band == 1) {
gain = 0.602431;
More information about the grass-commit
mailing list