mod13A2i.c 263 B

12345678910111213141516171819
  1. /* mod13A2 Possible Shadow 1Km bits[15]
  2. * 0 -> class 0: No
  3. * 1 -> class 1: Yes
  4. */
  5. #include <grass/raster.h>
  6. CELL mod13A2i (CELL pixel)
  7. {
  8. CELL qctemp;
  9. pixel >>= 15; /*bit [15] becomes [0] */
  10. qctemp = pixel & 0x01;
  11. return qctemp;
  12. }