mod09A1sf.c 256 B

12345678910111213141516171819
  1. /* Internal Cloud Algorithm Flag unsigned int bits[10]
  2. * 0 -> class 0: Cloud
  3. * 1 -> class 1: No cloud
  4. */
  5. #include <grass/raster.h>
  6. CELL mod09A1sf(CELL pixel)
  7. {
  8. CELL qctemp;
  9. pixel >>= 10;
  10. qctemp = pixel & 0x01;
  11. return qctemp;
  12. }