mod13A2e.c 282 B

12345678910111213141516171819
  1. /* mod13A2 Atmosphere BRDF correction performed 1Km bit[9]
  2. * 00 -> class 0: No
  3. * 01 -> class 1: Yes
  4. */
  5. #include <grass/raster.h>
  6. CELL mod13A2e (CELL pixel)
  7. {
  8. CELL qctemp;
  9. pixel >>= 9; /*bit [9] becomes [0] */
  10. qctemp = pixel & 0x01;
  11. return qctemp;
  12. }