[GRASS-SVN] r43419 - grass-addons/imagery/i.landsat.toar
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 6 12:38:59 EDT 2010
Author: ejtizado
Date: 2010-09-06 16:38:59 +0000 (Mon, 06 Sep 2010)
New Revision: 43419
Modified:
grass-addons/imagery/i.landsat.toar/landsat_set.c
grass-addons/imagery/i.landsat.toar/main.c
Log:
Reverted 127 qcalmax value in MSS sensors
Modified: grass-addons/imagery/i.landsat.toar/landsat_set.c
===================================================================
--- grass-addons/imagery/i.landsat.toar/landsat_set.c 2010-09-06 09:07:15 UTC (rev 43418)
+++ grass-addons/imagery/i.landsat.toar/landsat_set.c 2010-09-06 16:38:59 UTC (rev 43419)
@@ -28,7 +28,7 @@
lsat->band[i].code = *(code + i);
lsat->band[i].wavemax = *(wmax + i);
lsat->band[i].wavemin = *(wmin + i);
- lsat->band[i].qcalmax = 127.;
+ lsat->band[i].qcalmax = 255.;
lsat->band[i].qcalmin = 0.;
lsat->band[i].thermal = 0;
}
Modified: grass-addons/imagery/i.landsat.toar/main.c
===================================================================
--- grass-addons/imagery/i.landsat.toar/main.c 2010-09-06 09:07:15 UTC (rev 43418)
+++ grass-addons/imagery/i.landsat.toar/main.c 2010-09-06 16:38:59 UTC (rev 43419)
@@ -285,14 +285,14 @@
else if (G_strcasecmp(metho->answer, "dos3") == 0) method = DOS3;
else if (G_strcasecmp(metho->answer, "dos4") == 0) 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;
-*/
+
+// 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;
@@ -360,6 +360,7 @@
h_max = 0L;
for (j= lsat.band[i].qcalmin; j < 241; j++) /* Exclude ptentially saturated < 240 */
{
+// printf("%d-%ld\n", j, hist[j]);
if (hist[j] > h_max)
{
h_max = hist[j];
More information about the grass-commit
mailing list