mcd43B2c.c 319 B

123456789101112131415161718
  1. /* mcd43B2 SDS Albedo Ancillary QA Sun Zenith Angle at local solar noon bits[8-14]
  2. Returns integer value [0-90], 127 is Fill Value
  3. */
  4. #include <grass/raster.h>
  5. CELL mcd43B2c (CELL pixel)
  6. {
  7. CELL qctemp;
  8. pixel >>= 8; /*bits [8-14] become [0-7] */
  9. qctemp = pixel & 0x7F;
  10. return qctemp;
  11. }