mod09Q1a.c 595 B

123456789101112131415161718
  1. /* MODLAND QA Bits 250m Unsigned Int bits[0-1]
  2. * 00 -> class 0: Corrected product produced at ideal quality -- all bands
  3. * 01 -> class 1: Corrected product produced at less than idel quality -- some or all bands
  4. * 10 -> class 2: Corrected product NOT produced due to cloud effect -- all bands
  5. * 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])
  6. */
  7. #include <grass/raster.h>
  8. CELL mod09Q1a (CELL pixel)
  9. {
  10. CELL qctemp;
  11. qctemp = pixel & 0x03;
  12. return qctemp;
  13. }