mod09Q1d.c 306 B

123456789101112131415161718
  1. /* Atmospheric correction 250m Unsigned Int bit[12]
  2. * 0 -> class 0: Not Corrected product
  3. * 1 -> class 1: Corrected product
  4. */
  5. #include <grass/raster.h>
  6. CELL mod09Q1d(CELL pixel)
  7. {
  8. CELL qctemp;
  9. pixel >>= 12; /* bit no 12 becomes 0 */
  10. qctemp = pixel & 0x01;
  11. return qctemp;
  12. }