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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 11 01:14:40 PDT 2014


Author: ychemin
Date: 2014-09-11 01:14:40 -0700 (Thu, 11 Sep 2014)
New Revision: 61858

Modified:
   grass/trunk/imagery/i.modis.qc/i.modis.qc.html
   grass/trunk/imagery/i.modis.qc/main.c
   grass/trunk/imagery/i.modis.qc/mod09A1sb.c
   grass/trunk/imagery/i.modis.qc/mod09A1sf.c
   grass/trunk/imagery/i.modis.qc/mod09A1sg.c
   grass/trunk/imagery/i.modis.qc/mod09A1sh.c
   grass/trunk/imagery/i.modis.qc/mod09A1si.c
   grass/trunk/imagery/i.modis.qc/mod09A1sj.c
   grass/trunk/imagery/i.modis.qc/mod09A1sk.c
Log:
Updated Mod09CMG State QA, fixed binary classes typos

Modified: grass/trunk/imagery/i.modis.qc/i.modis.qc.html
===================================================================
--- grass/trunk/imagery/i.modis.qc/i.modis.qc.html	2014-09-11 06:50:16 UTC (rev 61857)
+++ grass/trunk/imagery/i.modis.qc/i.modis.qc.html	2014-09-11 08:14:40 UTC (rev 61858)
@@ -161,8 +161,8 @@
 <em>MOD09A1s: Cloud shadow bits=[2]</em>
 </pre>
 <ul>
- <li>[0]= class 0: yes</li>
- <li>[1]= class 1: no</li>
+ <li>[0]= class 0: no</li>
+ <li>[1]= class 1: yes</li>
 </ul>
 
 <pre>
@@ -203,48 +203,48 @@
 <em>MOD09A1s: Internal Cloud Algorithm Flag bits=[10]</em>
 </pre>
 <ul>
- <li>[0]= class 0: Cloud</li>
- <li>[1]= class 1: No cloud</li>
+ <li>[0]= class 0: No cloud</li>
+ <li>[1]= class 1: Cloud</li>
 </ul>
 
 <pre>
 <em>MOD09A1s: Internal Fire Algorithm Flag bits=[11]</em>
 </pre>
 <ul>
- <li>[0]= class 0: Fire</li>
- <li>[1]= class 1: No fire</li>
+ <li>[0]= class 0: No fire</li>
+ <li>[1]= class 1: Fire</li>
 </ul>
 
 <pre>
 <em>MOD09A1s: MOD35 snow/ice flag bits=[12]</em>
 </pre>
 <ul>
- <li>[0]= class 0: Yes</li>
- <li>[1]= class 1: No</li>
+ <li>[0]= class 0: No</li>
+ <li>[1]= class 1: Yes</li>
 </ul>
 
 <pre>
 <em>MOD09A1s: Pixel adjacent to cloud bits=[13]</em>
 </pre>
 <ul>
- <li>[0]= class 0: Yes</li>
- <li>[1]= class 1: No</li>
+ <li>[0]= class 0: No</li>
+ <li>[1]= class 1: Yes</li>
 </ul>
 
 <pre>
 <em>MOD09A1s: BRDF correction performed bits=[14]</em>
 </pre>
 <ul>
- <li>[0]= class 0: Yes</li>
- <li>[1]= class 1: No</li>
+ <li>[0]= class 0: No</li>
+ <li>[1]= class 1: Yes</li>
 </ul>
 
 <pre>
 <em>MOD09A1s: Internal Snow Mask bits=[15]</em>
 </pre>
 <ul>
- <li>[0]= class 0: Snow</li>
- <li>[1]= class 1: No snow</li>
+ <li>[0]= class 0: No snow</li>
+ <li>[1]= class 1: Snow</li>
 </ul>
 
 <pre>

Modified: grass/trunk/imagery/i.modis.qc/main.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/main.c	2014-09-11 06:50:16 UTC (rev 61857)
+++ grass/trunk/imagery/i.modis.qc/main.c	2014-09-11 08:14:40 UTC (rev 61858)
@@ -536,12 +536,6 @@
             }
             else if (!strcmp(product, "mod09CMGs"))
             {
-	        /* NOTE: we simply reuse the MOD09A1s functions - TODO: check if appropriate */
-		/* NOTE: Not sure it is appropriate=> https://lpdaac.usgs.gov/products/modis_products_table/myd09cmg*/
-	        /* NOTE: 0-1: MOD35 cloud, 2: cloud shadow, 3-5: land/water flag, 6-7: aerosol Quantity*/
-	        /* NOTE: 8-9: cirrus detected, 10: internal cloud algorithm flag, 11: internal fire algorithm flag*/
-	        /* NOTE: 12: MOD35 snow/ice, 13: Pixel is adjacent to cloud, 14: BRDF correction is performed*/
-	        /* NOTE: 15:internal snow algorithm flag*/
 	        if (!strcmp(qcflag, "cloud_state"))
 		/*calculate mod09A1s cloud state flag  */ 
                     c = mod09A1sa(c);

Modified: grass/trunk/imagery/i.modis.qc/mod09A1sb.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/mod09A1sb.c	2014-09-11 06:50:16 UTC (rev 61857)
+++ grass/trunk/imagery/i.modis.qc/mod09A1sb.c	2014-09-11 08:14:40 UTC (rev 61858)
@@ -1,6 +1,6 @@
 /* cloud shadow unsigned int bits[2]
- * 0 -> class 0: yes
- * 1 -> class 1: no
+ * 0 -> class 0: no
+ * 1 -> class 1: yes
  */  
 
 #include <grass/raster.h>

Modified: grass/trunk/imagery/i.modis.qc/mod09A1sf.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/mod09A1sf.c	2014-09-11 06:50:16 UTC (rev 61857)
+++ grass/trunk/imagery/i.modis.qc/mod09A1sf.c	2014-09-11 08:14:40 UTC (rev 61858)
@@ -1,6 +1,6 @@
 /* Internal Cloud Algorithm Flag unsigned int bits[10]
- * 0 -> class 0: Cloud 
- * 1 -> class 1: No cloud
+ * 0 -> class 0: No cloud 
+ * 1 -> class 1: Cloud
  */  
 
 #include <grass/raster.h>

Modified: grass/trunk/imagery/i.modis.qc/mod09A1sg.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/mod09A1sg.c	2014-09-11 06:50:16 UTC (rev 61857)
+++ grass/trunk/imagery/i.modis.qc/mod09A1sg.c	2014-09-11 08:14:40 UTC (rev 61858)
@@ -1,6 +1,6 @@
 /* Internal Fire Algorithm Flag unsigned int bits[11]
- * 0 -> class 0: Fire 
- * 1 -> class 1: No fire
+ * 0 -> class 0: No fire 
+ * 1 -> class 1: Fire
  */  
 
 #include <grass/raster.h>

Modified: grass/trunk/imagery/i.modis.qc/mod09A1sh.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/mod09A1sh.c	2014-09-11 06:50:16 UTC (rev 61857)
+++ grass/trunk/imagery/i.modis.qc/mod09A1sh.c	2014-09-11 08:14:40 UTC (rev 61858)
@@ -1,6 +1,6 @@
 /* MOD35 snow/ice flag unsigned int bits [12]
- * 0 -> class 0: Yes
- * 1 -> class 1: No
+ * 0 -> class 0: No
+ * 1 -> class 1: Yes
  */  
 
 #include <grass/raster.h>

Modified: grass/trunk/imagery/i.modis.qc/mod09A1si.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/mod09A1si.c	2014-09-11 06:50:16 UTC (rev 61857)
+++ grass/trunk/imagery/i.modis.qc/mod09A1si.c	2014-09-11 08:14:40 UTC (rev 61858)
@@ -1,6 +1,6 @@
 /* Pixel adjacent to cloud unsigned int bits[13]
- * 0 -> class 0: Yes
- * 1 -> class 1: No
+ * 0 -> class 0: No
+ * 1 -> class 1: Yes
  */  
 
 #include <grass/raster.h>

Modified: grass/trunk/imagery/i.modis.qc/mod09A1sj.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/mod09A1sj.c	2014-09-11 06:50:16 UTC (rev 61857)
+++ grass/trunk/imagery/i.modis.qc/mod09A1sj.c	2014-09-11 08:14:40 UTC (rev 61858)
@@ -1,6 +1,6 @@
 /* BRDF correction performed unsigned int bits[14]
- * 0 -> class 0: Yes
- * 1 -> class 1: No
+ * 0 -> class 0: No
+ * 1 -> class 1: Yes
  */  
 
 #include <grass/raster.h>

Modified: grass/trunk/imagery/i.modis.qc/mod09A1sk.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/mod09A1sk.c	2014-09-11 06:50:16 UTC (rev 61857)
+++ grass/trunk/imagery/i.modis.qc/mod09A1sk.c	2014-09-11 08:14:40 UTC (rev 61858)
@@ -1,6 +1,6 @@
 /* Internal Snow Mask unsigned int bits[15]
- * 0 -> class 0: Snow
- * 1 -> class 1: No snow
+ * 0 -> class 0: No snow
+ * 1 -> class 1: Snow
  */  
 
 #include <grass/raster.h>



More information about the grass-commit mailing list