mcd43B2a.c 393 B

123456789101112131415161718192021
  1. /* mcd43B2 SDS Albedo Ancillary QA Flags 1Km bits[0-3]
  2. * 0000 -> class 0: Satellite Platform: Terra
  3. * 0001 -> class 1: Satellite Platform: Terrra/Aqua
  4. * 0010 -> class 2: Satellite Platform: Aqua
  5. * 1111 -> class 15: Fill Value
  6. * Classes 3-14: Not used
  7. */
  8. #include <grass/raster.h>
  9. CELL mcd43B2a (CELL pixel)
  10. {
  11. CELL qctemp;
  12. qctemp = pixel & 0x0F;
  13. return qctemp;
  14. }