[GRASS-SVN] r43432 - grass-addons/imagery/i.landsat.acca
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 9 03:50:19 EDT 2010
Author: hamish
Date: 2010-09-09 07:50:19 +0000 (Thu, 09 Sep 2010)
New Revision: 43432
Modified:
grass-addons/imagery/i.landsat.acca/algorithm.c
grass-addons/imagery/i.landsat.acca/main.c
grass-addons/imagery/i.landsat.acca/tools.c
Log:
rm unused variables, spellin
Modified: grass-addons/imagery/i.landsat.acca/algorithm.c
===================================================================
--- grass-addons/imagery/i.landsat.acca/algorithm.c 2010-09-08 21:16:34 UTC (rev 43431)
+++ grass-addons/imagery/i.landsat.acca/algorithm.c 2010-09-09 07:50:19 UTC (rev 43432)
@@ -56,11 +56,11 @@
como opciones desde el programa main.
---------------------------------------------------------*/
-double th_1 = 0.08; /* Band 3 Brightness Thershold */
+double th_1 = 0.08; /* Band 3 Brightness Threshold */
double th_1_b = 0.07;
double th_2[] = { -0.25, 0.70 }; /* Normalized Snow Difference Index */
double th_2_b = 0.8;
-double th_3 = 300.; /* Band 6 Temperature Thershold */
+double th_3 = 300.; /* Band 6 Temperature Threshold */
double th_4 = 225.; /* Band 5/6 Composite */
double th_4_b = 0.08;
double th_5 = 2.35; /* Band 4/3 Ratio */
@@ -269,13 +269,13 @@
nsdi = (pixel[BAND2] - pixel[BAND5]) /
(pixel[BAND2] + pixel[BAND5]);
/* ----------------------------------------------------- */
- /* Brightness Thershold: Eliminates dark images */
+ /* Brightness Threshold: Eliminates dark images */
if (pixel[BAND3] > th_1)
{
/* Normalized Snow Difference Index: Eliminates many types of snow */
if (nsdi > th_2[0] && nsdi < th_2[1])
{
- /* Temperature Thershold: Eliminates warm image features */
+ /* Temperature Threshold: Eliminates warm image features */
if (pixel[BAND6] < th_3)
{
rat56 = (1 - pixel[BAND4]) * pixel[BAND6];
@@ -350,7 +350,7 @@
void acca_second(int verbose, Gfile * out, Gfile band,
int warm_ambiguous, double upper, double lower)
{
- int i, row, col, nrows, ncols;
+ int row, col, nrows, ncols;
char *mapset;
int code;
Modified: grass-addons/imagery/i.landsat.acca/main.c
===================================================================
--- grass-addons/imagery/i.landsat.acca/main.c 2010-09-08 21:16:34 UTC (rev 43431)
+++ grass-addons/imagery/i.landsat.acca/main.c 2010-09-09 07:50:19 UTC (rev 43432)
@@ -95,7 +95,6 @@
struct Option *input, *output, *hist;
struct Flag *shadow, *sat5, *filter, *pass2;
char *in_name, *out_name;
- double p;
Gfile band[5], out;
Modified: grass-addons/imagery/i.landsat.acca/tools.c
===================================================================
--- grass-addons/imagery/i.landsat.acca/tools.c 2010-09-08 21:16:34 UTC (rev 43431)
+++ grass-addons/imagery/i.landsat.acca/tools.c 2010-09-09 07:50:19 UTC (rev 43432)
@@ -40,7 +40,7 @@
double mean(int hist[])
{
int i, total;
- double value, mean;
+ double mean;
total = 0;
mean = 0.;
More information about the grass-commit
mailing list