r3.in.ascii.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <h2>DESCRIPTION</h2>
  2. <em>r3.in.ascii</em> allows a user to create a (binary) GRASS 3D raster map
  3. layer from a 3D ASCII raster input file with (optional) TITLE.
  4. <p>
  5. Note that for compression the <em>none</em> option only specifies
  6. that neither LZW nor RLE is used for compression. It
  7. does not turn off the compression all together. 3D raster maps do
  8. not support non-compressed files.
  9. <p>
  10. The <em>tiledimension</em> parameter defines the dimension of the tiles
  11. used in the output file. The format is: XxYxZ
  12. <p>
  13. The <em>nv</em> parameter specifies which value to convert to NULL-value.
  14. If the specified value is <em>none</em>, no conversion is performed.
  15. Default is <em>none</em>.
  16. <center>
  17. <img src="g3d_volume_layout.png" border=0><BR>
  18. <table border=0 width=700>
  19. <tr><td><center>
  20. <i>The volume coordinate system and tile layout of the inported voxel map</i>
  21. </center></td></tr>
  22. </table>
  23. </center>
  24. <h2>NOTES</h2>
  25. The format of the 3D ASCII file:
  26. <div class="code"><pre>
  27. version: <i>"grass7"</i>
  28. order: <i>"nsbt" or "nstb" or "snbt" or "sntb"</i>
  29. north: <i>floating point</i>
  30. south: <i>floating point</i>
  31. east: <i>floating point</i>
  32. west: <i>floating point</i>
  33. top: <i>floating point</i>
  34. bottom: <i>floating point</i>
  35. rows: <i>integer</i>
  36. cols: <i>integer</i>
  37. levels: <i>integer</i>
  38. </pre></div>
  39. The version and order option have been introduced in GRASS 7 in June 2011.
  40. The version option is self explaining. The order option specifies the row
  41. and depth order of the data in the input file.
  42. The supported row/depth ordering is documented in the <em>r3.out.ascii</em>
  43. manual page. The order of the data in the input file does not specifiy the
  44. data order in the generated output 3D raster map which is in any case
  45. <em>north -> south, west -> east, bottom -> top</em> order.
  46. So dependent on the order information the data is automatically imported
  47. into the correct internal coordinate system.
  48. <p>
  49. The version and order options are not mandatory. In case no version and
  50. order option is specified, the default GRASS 6 ASCII format is assumed.
  51. <p>
  52. This header is followed by the cell values in <em>floating point</em> format
  53. organized in rows with constant <em>col</em> and <em>level</em> coordinate.
  54. The rows are organized by constant <em>level</em> coordinate. Individual cell
  55. values are separated by <em>space</em> or <em>CR</em>.
  56. <h2>EXAMPLES</h2>
  57. 4x3x2 sample. Note in case no specific ordering is specified in the input
  58. file the upper-left (NW) corner of the bottom level comes first. The according
  59. order option is: nsbt for north -> south, bottom -> top ordering. This is
  60. identical with <em>r.in.ascii</em> for single level data. So the y coordinate
  61. is 0 at the northern edge.
  62. <div class="code"><pre>
  63. north: 3.0
  64. south: 0.0
  65. east: 4.0
  66. west: 0.0
  67. top: 2.0
  68. bottom: 0.0
  69. rows: 3
  70. cols: 4
  71. levels: 2
  72. x1,y1,z1 x2,y1,z1 x3,y1,z1 x4,y1,z1
  73. x1,y2,z1 x2,y2,z1 x3,y2,z1 x4,y2,z1
  74. x1,y3,z1 x2,y3,z1 x3,y3,z1 x4,y3,z1
  75. x1,y1,z2 x2,y1,z2 x3,y1,z2 x4,y1,z2
  76. x1,y2,z2 x2,y2,z2 x3,y2,z2 x4,y2,z2
  77. x1,y3,z2 x2,y3,z2 x3,y3,z2 x4,y3,z2
  78. </pre></div>
  79. Note that unit tests for <em>r3.in.ascii</em> are implemented in the
  80. <em>test.r3.out.ascii.sh</em> script located in the
  81. <em>r3.out.ascii</em> directory.
  82. <h2>AUTHORS</h2>
  83. Roman Waupotitsch, Michael Shapiro,
  84. Helena Mitasova, Bill Brown, Lubos Mitas, Jaro Hofierka, S&ouml;ren Gebbert
  85. <h2>SEE ALSO</h2>
  86. <em>
  87. <a href="r.in.ascii.html">r.in.ascii</a>,
  88. <a href="r3.out.ascii.html">r3.out.ascii</a>,
  89. <a href="v.to.rast3.html">v.to.rast3</a>
  90. </em>
  91. <p>
  92. <i>Last changed: $Date$</i>