r.out.bin.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <h2>DESCRIPTION</h2>
  2. The <em>r.out.bin</em> program exports a GRASS raster map to a binary array
  3. file. Optionally, output can be sent to standard output (stdout) for direct
  4. input (pipe) into other applications. Data is exported according to the
  5. original GRASS raster type (e.g. float). If the "-i" flag is specified, an
  6. integer array is output. The region parameters are printed to stderr.
  7. <h2>NOTES</h2>
  8. With the -h flag, data can be directly used by
  9. <a href="http://gmt.soest.hawaii.edu/">GMT</a> as Grid Format 1 (float) or
  10. 2 (short). For example:
  11. <div class="code"><pre>
  12. r.out.bin -h input=grass.raster output=new.grd
  13. grdinfo new.grd=1 (if float)
  14. </pre></div>
  15. <p>Exported data can be piped directly into the GMT program xyz2grd.
  16. <div class="code"><pre>
  17. r.out.bin input=grass.raster output=- | xyz2grd -R.... -ZTLf -
  18. </pre></div>
  19. The example uses the GMT program xyz2grd with the -ZTLf flag indicating that
  20. a float array was output.
  21. <h2>SEE ALSO</h2>
  22. <em>
  23. <a href="r.in.bin.html">r.in.bin</a>,
  24. <a href="r.in.ascii.html">r.in.ascii</a>,
  25. <a href="r.in.gdal.html">r.in.gdal</a>,
  26. <a href="r.out.ascii.html">r.out.ascii</a>
  27. </em>
  28. <h2>AUTHOR</h2>
  29. This program is derived from <em><a href="r.out.ascii.html">r.out.ascii</a></em>
  30. with a few modifications. <br>
  31. Author: <a href="mailto:bcovill@tekmap.ns.ca">Bob Covill</a>
  32. <p><i>Last changed: $Date$</i>