[GRASS-SVN] r62503 - grass/trunk/imagery/i.modis.qc

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Oct 31 07:58:43 PDT 2014


Author: neteler
Date: 2014-10-31 07:58:43 -0700 (Fri, 31 Oct 2014)
New Revision: 62503

Modified:
   grass/trunk/imagery/i.modis.qc/main.c
   grass/trunk/imagery/i.modis.qc/mod09CMGa.c
Log:
i.modis.qc: comment unproductive flag checking for MOD09CMG

Modified: grass/trunk/imagery/i.modis.qc/main.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/main.c	2014-10-31 11:25:59 UTC (rev 62502)
+++ grass/trunk/imagery/i.modis.qc/main.c	2014-10-31 14:58:43 UTC (rev 62503)
@@ -346,14 +346,22 @@
     }
     
     /*mod09A1 stateqa or mod09CMG stateqa*/
-    if ((strcmp(qcflag, "cirrus_detected") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
+/* - What is this block for?
+    G_debug(1, "qcflag: %s - product %s", qcflag, product);
+    if ((strcmp(qcflag, "cloud_state") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
 	(strcmp(qcflag, "cloud_shadow") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
-	(strcmp(qcflag, "cloud_state") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
-	(strcmp(qcflag, "internal_cloud_algorithm") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) ))||
+	(strcmp(qcflag, "land_water") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
+	(strcmp(qcflag, "aerosol_quantity") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
+	(strcmp(qcflag, "cirrus_detected") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
+	(strcmp(qcflag, "internal_cloud_algorithm") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
 	(strcmp(qcflag, "internal_fire_algorithm") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
 	(strcmp(qcflag, "internal_snow_mask") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
-	(strcmp(qcflag, "mod35_snow_ice") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )))
+	(strcmp(qcflag, "mod35_snow_ice") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
+	(strcmp(qcflag, "pixel_is_adjacent_to_cloud") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
+	(strcmp(qcflag, "BRDF_correction_performed") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) ||
+	(strcmp(qcflag, "internal_snow_mask") && ( !(strcmp(product, "mod09A1s")) || !(strcmp(product, "mod09CMGs")) )) )
 	G_fatal_error(_("This bit flag is only available for MOD09A1s @ 500m or MOD09CMG @ 5000m products"));
+*/
 
     /*mod09CMG*/
     if ((strcmp(qcflag, "icm_cloudy") && !(strcmp(product, "mod09CMGi"))) ||

Modified: grass/trunk/imagery/i.modis.qc/mod09CMGa.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/mod09CMGa.c	2014-10-31 11:25:59 UTC (rev 62502)
+++ grass/trunk/imagery/i.modis.qc/mod09CMGa.c	2014-10-31 14:58:43 UTC (rev 62503)
@@ -1,8 +1,8 @@
 /* MODLAND QA Bits 500m long int bits[0-1]
  * 00 -> class 0: Corrected product produced at ideal quality -- all bands
- * 01 -> class 1: Corrected product produced at less than idel quality -- some or all bands
+ * 01 -> class 1: Corrected product produced at less than ideal quality -- some or all bands
  * 10 -> class 2: Corrected product NOT produced due to cloud effect -- all bands
- * 11 -> class 3: Corrected product NOT produced due to other reasons -- some or all bands mayb be fill value (Note that a value of [11] overrides a value of [01])
+ * 11 -> class 3: Corrected product NOT produced due to other reasons -- some or all bands maybe fill value (Note that a value of [11] overrides a value of [01])
  */  
 
 #include <grass/raster.h>



More information about the grass-commit mailing list