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

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 27 04:36:14 EDT 2008


Author: ychemin
Date: 2008-10-27 04:36:14 -0400 (Mon, 27 Oct 2008)
New Revision: 34017

Modified:
   grass/trunk/imagery/i.modis.qc/qc250b.c
   grass/trunk/imagery/i.modis.qc/qc250c.c
   grass/trunk/imagery/i.modis.qc/qc250d.c
   grass/trunk/imagery/i.modis.qc/qc250e.c
   grass/trunk/imagery/i.modis.qc/qc250f.c
   grass/trunk/imagery/i.modis.qc/qc500c.c
   grass/trunk/imagery/i.modis.qc/qc500d.c
   grass/trunk/imagery/i.modis.qc/qc500e.c
Log:
correcting errors in data allocation and variables names

Modified: grass/trunk/imagery/i.modis.qc/qc250b.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/qc250b.c	2008-10-27 04:08:58 UTC (rev 34016)
+++ grass/trunk/imagery/i.modis.qc/qc250b.c	2008-10-27 08:36:14 UTC (rev 34017)
@@ -11,7 +11,7 @@
 {
     CELL qctemp;
 
-    qctemp >> 2;		/*bits [2-3] become [0-1] */
+    pixel >>= 2;		/*bits [2-3] become [0-1] */
     qctemp = pixel & 0x03;
     
     return qctemp;

Modified: grass/trunk/imagery/i.modis.qc/qc250c.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/qc250c.c	2008-10-27 04:08:58 UTC (rev 34016)
+++ grass/trunk/imagery/i.modis.qc/qc250c.c	2008-10-27 08:36:14 UTC (rev 34017)
@@ -17,7 +17,7 @@
 {
     CELL qctemp;
 
-    qctemp >> 4 + (4 * (bandno - 1));	/* bitshift [4-7] or [8-11] to [0-3] */
+    pixel >>= 4 + (4 * (bandno - 1));	/* bitshift [4-7] or [8-11] to [0-3] */
     qctemp = pixel & 0x0F;
 
     return qctemp;

Modified: grass/trunk/imagery/i.modis.qc/qc250d.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/qc250d.c	2008-10-27 04:08:58 UTC (rev 34016)
+++ grass/trunk/imagery/i.modis.qc/qc250d.c	2008-10-27 08:36:14 UTC (rev 34017)
@@ -9,7 +9,7 @@
 {
     CELL qctemp;
 
-    qctemp >> 12;		/* bit no 12 becomes 0 */
+    pixel >>= 12;		/* bit no 12 becomes 0 */
     qctemp = pixel & 0x01;
     
     return qctemp;

Modified: grass/trunk/imagery/i.modis.qc/qc250e.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/qc250e.c	2008-10-27 04:08:58 UTC (rev 34016)
+++ grass/trunk/imagery/i.modis.qc/qc250e.c	2008-10-27 08:36:14 UTC (rev 34017)
@@ -9,7 +9,7 @@
 {
     CELL qctemp;
 
-    qctemp >> 13;		/* bit no 13 becomes 0 */
+    pixel >>= 13;		/* bit no 13 becomes 0 */
     qctemp = pixel & 0x01;
     
     return qctemp;

Modified: grass/trunk/imagery/i.modis.qc/qc250f.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/qc250f.c	2008-10-27 04:08:58 UTC (rev 34016)
+++ grass/trunk/imagery/i.modis.qc/qc250f.c	2008-10-27 08:36:14 UTC (rev 34017)
@@ -9,7 +9,7 @@
 {
     CELL qctemp;
 
-    qctemp >> 14;		/* bit no 14 becomes 0 */
+    pixel >>= 14;		/* bit no 14 becomes 0 */
     qctemp = pixel & 0x01;
     
     return qctemp;

Modified: grass/trunk/imagery/i.modis.qc/qc500c.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/qc500c.c	2008-10-27 04:08:58 UTC (rev 34016)
+++ grass/trunk/imagery/i.modis.qc/qc500c.c	2008-10-27 08:36:14 UTC (rev 34017)
@@ -19,7 +19,7 @@
 {
     CELL qctemp;
 
-    pixel >> 2 + (4 * (bandno - 1));	/* bitshift [] to [0-3] etc. */
+    pixel >>= 2 + (4 * (bandno - 1));	/* bitshift [] to [0-3] etc. */
     qctemp = pixel & 0x0F;    
     
     return qctemp;

Modified: grass/trunk/imagery/i.modis.qc/qc500d.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/qc500d.c	2008-10-27 04:08:58 UTC (rev 34016)
+++ grass/trunk/imagery/i.modis.qc/qc500d.c	2008-10-27 08:36:14 UTC (rev 34017)
@@ -9,7 +9,7 @@
 {
     CELL qctemp;
 
-    pixel >> 30;		/* bit no 30 becomes 0 */
+    pixel >>= 30;		/* bit no 30 becomes 0 */
     qctemp = pixel & 0x01;    
 
     return qctemp;

Modified: grass/trunk/imagery/i.modis.qc/qc500e.c
===================================================================
--- grass/trunk/imagery/i.modis.qc/qc500e.c	2008-10-27 04:08:58 UTC (rev 34016)
+++ grass/trunk/imagery/i.modis.qc/qc500e.c	2008-10-27 08:36:14 UTC (rev 34017)
@@ -9,7 +9,7 @@
 {
     CELL qctemp;
 
-    pixel >> 31;		/* bit no 31 becomes 0 */
+    pixel >>= 31;		/* bit no 31 becomes 0 */
     qctemp = pixel & 0x01; 
     
     return qctemp;



More information about the grass-commit mailing list