Browse Source

correcting errors in data allocation and variables names

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34017 15284696-431f-4ddb-bdfa-cd5b030d7da7
Yann Chemin 16 years ago
parent
commit
00d6be3df8

+ 1 - 1
imagery/i.modis.qc/qc250b.c

@@ -11,7 +11,7 @@ CELL qc250b(CELL pixel)
 {
     CELL qctemp;
 
-    qctemp >> 2;		/*bits [2-3] become [0-1] */
+    pixel >>= 2;		/*bits [2-3] become [0-1] */
     qctemp = pixel & 0x03;
     
     return qctemp;

+ 1 - 1
imagery/i.modis.qc/qc250c.c

@@ -17,7 +17,7 @@ CELL qc250c(CELL pixel, int bandno)
 {
     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;

+ 1 - 1
imagery/i.modis.qc/qc250d.c

@@ -9,7 +9,7 @@ CELL qc250d(CELL pixel)
 {
     CELL qctemp;
 
-    qctemp >> 12;		/* bit no 12 becomes 0 */
+    pixel >>= 12;		/* bit no 12 becomes 0 */
     qctemp = pixel & 0x01;
     
     return qctemp;

+ 1 - 1
imagery/i.modis.qc/qc250e.c

@@ -9,7 +9,7 @@ CELL qc250e(CELL pixel)
 {
     CELL qctemp;
 
-    qctemp >> 13;		/* bit no 13 becomes 0 */
+    pixel >>= 13;		/* bit no 13 becomes 0 */
     qctemp = pixel & 0x01;
     
     return qctemp;

+ 1 - 1
imagery/i.modis.qc/qc250f.c

@@ -9,7 +9,7 @@ CELL qc250f(CELL pixel)
 {
     CELL qctemp;
 
-    qctemp >> 14;		/* bit no 14 becomes 0 */
+    pixel >>= 14;		/* bit no 14 becomes 0 */
     qctemp = pixel & 0x01;
     
     return qctemp;

+ 1 - 1
imagery/i.modis.qc/qc500c.c

@@ -19,7 +19,7 @@ CELL qc500c(CELL pixel, int bandno)
 {
     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;

+ 1 - 1
imagery/i.modis.qc/qc500d.c

@@ -9,7 +9,7 @@ CELL qc500d(CELL pixel)
 {
     CELL qctemp;
 
-    pixel >> 30;		/* bit no 30 becomes 0 */
+    pixel >>= 30;		/* bit no 30 becomes 0 */
     qctemp = pixel & 0x01;    
 
     return qctemp;

+ 1 - 1
imagery/i.modis.qc/qc500e.c

@@ -9,7 +9,7 @@ CELL qc500e(CELL pixel)
 {
     CELL qctemp;
 
-    pixel >> 31;		/* bit no 31 becomes 0 */
+    pixel >>= 31;		/* bit no 31 becomes 0 */
     qctemp = pixel & 0x01; 
     
     return qctemp;