[GRASS-SVN] r55068 - grass/trunk/imagery/i.landsat.toar

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 15 03:00:51 PST 2013


Author: ychemin
Date: 2013-02-15 03:00:50 -0800 (Fri, 15 Feb 2013)
New Revision: 55068

Modified:
   grass/trunk/imagery/i.landsat.toar/landsat.h
   grass/trunk/imagery/i.landsat.toar/landsat_met.c
   grass/trunk/imagery/i.landsat.toar/main.c
Log:
corrected typo sunza->sunaz (azimuth)

Modified: grass/trunk/imagery/i.landsat.toar/landsat.h
===================================================================
--- grass/trunk/imagery/i.landsat.toar/landsat.h	2013-02-15 00:19:13 UTC (rev 55067)
+++ grass/trunk/imagery/i.landsat.toar/landsat.h	2013-02-15 11:00:50 UTC (rev 55068)
@@ -50,7 +50,7 @@
     char date[11];		/* Image acquisition date        */
     double dist_es;		/* Distance Earth-Sun            */
     double sun_elev;		/* Solar elevation               */
-    double sunza;		/* Solar Zenith Angle            */
+    double sunaz;		/* Solar Azimuth                 */
     double time;		/* Image Acquisition Time        */
 
     char sensor[10];		/* Type of sensor: MSS, TM, ETM+, OLI/TIRS */

Modified: grass/trunk/imagery/i.landsat.toar/landsat_met.c
===================================================================
--- grass/trunk/imagery/i.landsat.toar/landsat_met.c	2013-02-15 00:19:13 UTC (rev 55067)
+++ grass/trunk/imagery/i.landsat.toar/landsat_met.c	2013-02-15 11:00:50 UTC (rev 55068)
@@ -111,9 +111,9 @@
     chrncpy(lsat->creation, value, 10);
 
     get_mtldata(mtldata, "SUN_AZIMUTH", value);
-    lsat->sunza = atof(value);
-    if( lsat->sunza == 0. )
-        G_warning("Sun azimuth is %f", lsat->sunza);
+    lsat->sunaz = atof(value);
+    if( lsat->sunaz == 0. )
+        G_warning("Sun azimuth is %f", lsat->sunaz);
 
     get_mtldata(mtldata, "SUN_ELEVATION", value);
     if( value[0] == '\0' )

Modified: grass/trunk/imagery/i.landsat.toar/main.c
===================================================================
--- grass/trunk/imagery/i.landsat.toar/main.c	2013-02-15 00:19:13 UTC (rev 55067)
+++ grass/trunk/imagery/i.landsat.toar/main.c	2013-02-15 11:00:50 UTC (rev 55068)
@@ -189,10 +189,10 @@
     lsatmet->required = NO;
     lsatmet->label = 	_("return value stored for a given metadata");
     lsatmet->description = _("Required only if 'metfile' and -p given");
-    lsatmet->options = "number,creation,date,sun_elev,sensor,bands,sunza,time";
+    lsatmet->options = "number,creation,date,sun_elev,sensor,bands,sunaz,time";
     desc = NULL;
     G_asprintf(&desc,
-	        "number;%s;creation;%s;date;%s;sun_elev;%s;sensor;%s;bands;%s;sunza;%s;time;%s",
+	        "number;%s;creation;%s;date;%s;sun_elev;%s;sensor;%s;bands;%s;sunaz;%s;time;%s",
 	        _("Landsat Number"),
 	        _("Creation timestamp"),
 	        _("Date"),
@@ -282,8 +282,8 @@
 		if (strcmp(lsatmet->answer, "bands") == 0) {
 			fprintf(stdout,"%d\n",lsat.bands);
 		}
-		if (strcmp(lsatmet->answer, "sunza") == 0) {
-			fprintf(stdout,"%f\n",lsat.sunza);
+		if (strcmp(lsatmet->answer, "sunaz") == 0) {
+			fprintf(stdout,"%f\n",lsat.sunaz);
 		}
 		if (strcmp(lsatmet->answer, "time") == 0) {
 			fprintf(stdout,"%f\n",lsat.time);



More information about the grass-commit mailing list