[GRASS-SVN] r43681 - grass-addons/imagery/i.landsat.toar
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 25 02:13:39 EDT 2010
Author: hamish
Date: 2010-09-25 06:13:39 +0000 (Sat, 25 Sep 2010)
New Revision: 43681
Modified:
grass-addons/imagery/i.landsat.toar/landsat.c
grass-addons/imagery/i.landsat.toar/main.c
Log:
convert C++ comments to C style
Modified: grass-addons/imagery/i.landsat.toar/landsat.c
===================================================================
--- grass-addons/imagery/i.landsat.toar/landsat.c 2010-09-25 06:09:00 UTC (rev 43680)
+++ grass-addons/imagery/i.landsat.toar/landsat.c 2010-09-25 06:13:39 UTC (rev 43681)
@@ -116,8 +116,8 @@
PI * Lp) / pi_d2;
Tz = 1 - (4 * pi_d2 * Lp) / (lsat->band[i].esun * sin_e);
Tv = exp(sin_e * log(Tz) / cos_v);
- // G_message("TAUv = %.5f (%.5f), TAUz = %.5f (%.5f) and Edown = %.5f\n", TAUv, Tv, TAUz, Tz, PI * Lp );
- // } while( abs(TAUv - Tv) > 0.0000001 || abs(TAUz - Tz) > 0.0000001);
+ /* G_message("TAUv = %.5f (%.5f), TAUz = %.5f (%.5f) and Edown = %.5f\n", TAUv, Tv, TAUz, Tz, PI * Lp ); */
+ /* } while( abs(TAUv - Tv) > 0.0000001 || abs(TAUz - Tz) > 0.0000001); */
} while (TAUv != Tv && TAUz != Tz);
TAUz = (Tz < 1. ? Tz : 1.);
TAUv = (Tv < 1. ? Tv : 1.);
Modified: grass-addons/imagery/i.landsat.toar/main.c
===================================================================
--- grass-addons/imagery/i.landsat.toar/main.c 2010-09-25 06:09:00 UTC (rev 43680)
+++ grass-addons/imagery/i.landsat.toar/main.c 2010-09-25 06:13:39 UTC (rev 43681)
@@ -292,12 +292,14 @@
else
method = UNCORRECTED;
- // if (metho->answer[3] == 'r') method = CORRECTED;
- // else if (metho->answer[3] == '1') method = DOS1;
- // else if (metho->answer[3] == '2') method = (metho->answer[4] == '\0') ? DOS2 : DOS2b;
- // else if (metho->answer[3] == '3') method = DOS3;
- // else if (metho->answer[3] == '4') method = DOS4;
- // else method = UNCORRECTED;
+/*
+ if (metho->answer[3] == 'r') method = CORRECTED;
+ else if (metho->answer[3] == '1') method = DOS1;
+ else if (metho->answer[3] == '2') method = (metho->answer[4] == '\0') ? DOS2 : DOS2b;
+ else if (metho->answer[3] == '3') method = DOS3;
+ else if (metho->answer[3] == '4') method = DOS4;
+ else method = UNCORRECTED;
+*/
for (i = 0; i < lsat.bands; i++) {
dn_mode[i] = 0;
@@ -359,7 +361,7 @@
/* Mode of DN */
h_max = 0L;
for (j = lsat.band[i].qcalmin; j < 241; j++) { /* Exclude ptentially saturated < 240 */
- // printf("%d-%ld\n", j, hist[j]);
+ /* G_debug(5, "%d-%ld", j, hist[j]); */
if (hist[j] > h_max) {
h_max = hist[j];
dn_mode[i] = j;
More information about the grass-commit
mailing list