mod09Q1f.c 324 B

12345678910111213141516171819
  1. /* Different orbit from 500m product, 250m Unsigned Int bit[14]
  2. * 0 -> class 0: same orbit as 500m
  3. * 1 -> class 1: different orbit from 500m
  4. */
  5. #include <grass/raster.h>
  6. CELL mod09Q1f(CELL pixel)
  7. {
  8. CELL qctemp;
  9. pixel >>= 14; /* bit no 14 becomes 0 */
  10. qctemp = pixel & 0x01;
  11. return qctemp;
  12. }