mod13A2a.c 402 B

12345678910111213141516171819
  1. /* mod13A2 Mandatory QA Flags 1Km bits[0-1]
  2. * 00 -> class 0: VI produced, good quality
  3. * 01 -> class 1: VI produced, but check other QA
  4. * 10 -> class 2: Pixel produced, but most probably cloud
  5. * 11 -> class 3: Pixel not produced due to other reasons than clouds
  6. */
  7. #include <grass/raster.h>
  8. CELL mod13A2a (CELL pixel)
  9. {
  10. CELL qctemp;
  11. qctemp = pixel & 0x03;
  12. return qctemp;
  13. }