r.bitpattern.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <h2>DESCRIPTION</h2>
  2. <em>r.bitpattern</em> performs bit pattern comparisons.
  3. The module can be used to pixelwise verify a satellite image
  4. for low quality pixels if a Quality Control Bit Index map is
  5. provided (e.g. as for MODIS sensor maps).
  6. The functionality is two-fold:
  7. <ol>
  8. <li>define position: set bit(s) to 1 which shall match,
  9. then convert this position pattern to integer, set pattern=
  10. parameter with that integer value
  11. <li>define pattern *value* which should be in that position:
  12. first bit pattern of value, convert to integer, set
  13. patval= parameter
  14. </ol>
  15. If several bitpatterns have to be tested, the resulting maps
  16. can be used to exclude low quality pixel in the input satellite
  17. image using <em>r.mapcalc</em> (OR and NOT operators).
  18. <h2>EXAMPLE</h2>
  19. <ol>
  20. <li>define position:
  21. <pre>
  22. xx xx 1x xx
  23. binary: 1000 -> integer: 8 -> pattern=8
  24. </pre>
  25. <li>define value:
  26. <pre>
  27. Ex.: we want to check for 0 in that position
  28. xx xx 0x xx
  29. binary: 0000 -> integer: 0 -> patval=0
  30. if value can be arbitray (0/1), then assume 0 value
  31. </pre>
  32. </ol>
  33. <h2>SEE ALSO</h2>
  34. <em>
  35. <a href="i.modis.qc.html">i.modis.qc</a>,
  36. <a href="r.mapcalc.html">r.mapcalc</a>
  37. </em>
  38. <h2>AUTHORS</h2>
  39. Radim Blazek, Markus Neteler
  40. <p><i>Last changed: $Date$</i>