r3.out.ascii.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <H2>DESCRIPTION</H2>
  2. Outputs <I>G3D</I> maps in <I>ascii</I> format. <I>map</I> is
  3. a valid G3D map in the current mapset. <I>output</I> is the name of
  4. an ascii file which will be written in the current working directory.
  5. If <I>output</I> is not specified then <B>stdout</B> is used. The
  6. <I>-h</I> flag may be used to suppress header information. The module is
  7. sensitive to region settings (set with g.region).
  8. <H2>NOTES</H2>
  9. The default format for the ascii file is equivalent to that required
  10. by <EM>r3.in.ascii</EM>. In particular, files output by
  11. <EM>r3.out.ascii</EM> with header information may be converted back to
  12. G3D maps with <EM>r3.in.ascii</EM>.
  13. <P>
  14. The format for the ascii file is:
  15. <pre>
  16. north: <i>floating point</i>
  17. south: <i>floating point</i>
  18. east: <i>floating point</i>
  19. west: <i>floating point</i>
  20. top: <i>floating point</i>
  21. bottom: <i>floating point</i>
  22. rows: <i>integer</i>
  23. cols: <i>integer</i>
  24. levels: <i>integer</i>
  25. </pre>
  26. The header is followed by cell values in <EM>floating point</EM> format.
  27. Cell values are output as a series of horizontal slices in row-major
  28. order. That is,
  29. <pre>
  30. (x, y, z) (x + 1, y, z) ... (x + cols, y, z)
  31. (x, y + 1, z) (x + 1, y + 1, z) ... (x + cols, y + 1, z)
  32. and so on
  33. </pre>
  34. <P>
  35. One level maps can be imported with r.in.ascii (Raster 2D) after removing
  36. the header lines "top", "bottom" and "levels".
  37. <H2>SEE ALSO</H2>
  38. <EM><A HREF="r3.in.ascii.html">r3.in.ascii</A></EM><br>
  39. <EM><A HREF="g.region.html">g.region</A></EM><br>
  40. <H2>AUTHORS</H2>
  41. Roman Waupotitsch, Michael Shapiro,
  42. Helena Mitasova, Bill Brown, Lubos Mitas, Jaro Hofierka
  43. <p><i>Last changed: $Date$</i>