[GRASS-SVN] r73023 - grass/trunk/imagery/i.atcorr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 2 00:56:09 PDT 2018


Author: mmetz
Date: 2018-08-02 00:56:09 -0700 (Thu, 02 Aug 2018)
New Revision: 73023

Modified:
   grass/trunk/imagery/i.atcorr/6s.cpp
   grass/trunk/imagery/i.atcorr/main.cpp
Log:
i.atcorr: add comments and warnings

Modified: grass/trunk/imagery/i.atcorr/6s.cpp
===================================================================
--- grass/trunk/imagery/i.atcorr/6s.cpp	2018-07-31 16:25:24 UTC (rev 73022)
+++ grass/trunk/imagery/i.atcorr/6s.cpp	2018-08-02 07:56:09 UTC (rev 73023)
@@ -106,7 +106,6 @@
     return 0;
 }
 
-
 /* Only update those objects that are affected by a height and vis change */
 void pre_compute_hv(const float height, const float vis)
 {
@@ -532,6 +531,10 @@
 	}
     }
 
+    if (seb < accu3)
+	G_warning("compute(): variable seb is too small: %g", seb);
+    if (sb < accu3)
+	G_warning("compute(): variable sb is too small: %g", sb);
 
     /* ---- integrated values of apparent reflectance, radiance          ----*/
     /* ---- and gaseous transmittances (total,downward,separately gases) ----*/

Modified: grass/trunk/imagery/i.atcorr/main.cpp
===================================================================
--- grass/trunk/imagery/i.atcorr/main.cpp	2018-07-31 16:25:24 UTC (rev 73022)
+++ grass/trunk/imagery/i.atcorr/main.cpp	2018-08-02 07:56:09 UTC (rev 73023)
@@ -54,7 +54,15 @@
  * for 10 aerosol optical depths. Here we use finer grain. */
 
 /* TICache: create bins for altitude and visibility */
+/* altitude range: appr. 0 - 9000
+ * bin 10: change between bins is 0.05 - 0.16%
+ * bin 100: change between bins is 0.5 - 1.5% 
+ * bin 1000: change between bins is 6 - 13%*/
 #define BIN_ALT 10	/* unit is meters */
+/* visibility range: 0 - 50000
+ * bin 10: change between bins is 0.004 - 0.16%
+ * bin 100: change between bins is 0.01 - 1.6% 
+ * bin 1000: change between bins is 0.1 - 13%*/
 #define BIN_VIS 100	/* unit is meters */
 
 /* uncomment to disable cache usage */



More information about the grass-commit mailing list