r3.in.ascii.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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.
  4. <p>The <em>tiledimension</em> parameter defines the dimension of the tiles
  5. used in the output file. The format is: XxYxZ
  6. <p>The <em>nv</em> parameter specifies which value to convert to NULL-value.
  7. If the specified value is <em>none</em>, no conversion is performed.
  8. Default is <em>none</em>.
  9. <h2>NOTES</h2>
  10. The data is automatically imported into the correct internal coordinate system,
  11. that is visualized in the following picture, independently from the specified
  12. ordering in the ASCII input file:
  13. <center>
  14. <img src="raster3d_layout.png" border=0><br>
  15. <table border=0 width=700>
  16. <tr><td><center>
  17. <i>The volume coordinate system and tile layout of the imported voxel map</i>
  18. </center></td></tr>
  19. </table>
  20. </center>
  21. <h2>NOTES</h2>
  22. The format of the 3D ASCII file:
  23. <div class="code"><pre>
  24. version: <i>"grass7"</i>
  25. order: <i>"nsbt" or "nstb" or "snbt" or "sntb"</i>
  26. north: <i>floating point</i>
  27. south: <i>floating point</i>
  28. east: <i>floating point</i>
  29. west: <i>floating point</i>
  30. top: <i>floating point</i>
  31. bottom: <i>floating point</i>
  32. rows: <i>integer</i>
  33. cols: <i>integer</i>
  34. levels: <i>integer</i>
  35. </pre></div>
  36. The version and order option have been introduced in GRASS 7 in June 2011.
  37. The version option is self explaining. The order option specifies the row
  38. and depth order of the data in the input file.
  39. The supported row/depth ordering is documented in the <em>r3.out.ascii</em>
  40. manual page. The order of the data in the input file does not specify the
  41. data order in the generated output 3D raster map which is in any case
  42. <em>north -> south, west -> east, bottom -> top</em> order.
  43. So dependent on the order information the data is automatically imported
  44. into the correct internal coordinate system.
  45. <p>The version and order options are not mandatory. In case no version and
  46. order option is specified, the default GRASS 6 ASCII format is assumed.
  47. <p>This header is followed by the cell values in <em>floating point</em> format
  48. organized in rows with constant <em>col</em> and <em>level</em> coordinate.
  49. The rows are organized by constant <em>level</em> coordinate. Individual cell
  50. values are separated by <em>space</em> or <em>CR</em>.
  51. <h2>EXAMPLES</h2>
  52. 4x3x2 sample. Note in case no specific ordering is specified in the input
  53. file the upper-left (NW) corner of the bottom level comes first. The according
  54. order option is: nsbt for north -> south, bottom -> top ordering. This is
  55. identical with <em>r.in.ascii</em> for single level data. So the y coordinate
  56. is 0 at the northern edge.
  57. <!-- TODO: beautify HTML -->
  58. north: 3.0<br>
  59. south: 0.0<br>
  60. east: 4.0<br>
  61. west: 0.0<br>
  62. top: 2.0<br>
  63. bottom: 0.0<br>
  64. rows: 3<br>
  65. cols: 4<br>
  66. levels: 2<br>
  67. w<sub>111</sub>x1,y1,z1 w<sub>211</sub>x2,y1,z1 w<sub>311</sub>x3,y1,z1 w<sub>411</sub>x4,y1,z1<br>
  68. w<sub>121</sub>x1,y2,z1 w<sub>221</sub>x2,y2,z1 w<sub>321</sub>x3,y2,z1 w<sub>421</sub>x4,y2,z1<br>
  69. w<sub>131</sub>x1,y3,z1 w<sub>231</sub>x2,y3,z1 w<sub>331</sub>x3,y3,z1 w<sub>431</sub>x4,y3,z1<br>
  70. w<sub>112</sub>x1,y1,z2 w<sub>212</sub>x2,y1,z2 w<sub>312</sub>x3,y1,z2 w<sub>412</sub>x4,y1,z2<br>
  71. w<sub>122</sub>x1,y2,z2 w<sub>222</sub>x2,y2,z2 w<sub>322</sub>x3,y2,z2 w<sub>422</sub>x4,y2,z2<br>
  72. w<sub>132</sub>x1,y3,z2 w<sub>232</sub>x2,y3,z2 w<sub>332</sub>x3,y3,z2 w<sub>432</sub>x4,y3,z2<br>
  73. <p>
  74. Note that unit tests for <em>r3.in.ascii</em> are implemented in the
  75. <em>test.r3.out.ascii.sh</em> script located in the
  76. <em>r3.out.ascii</em> directory.
  77. <h2>EXAMPLES</h2>
  78. Please refer to the detailed examples in
  79. <a href="r3.out.ascii.html">r3.out.ascii</a>.
  80. <h2>AUTHORS</h2>
  81. Roman Waupotitsch, Michael Shapiro,
  82. Helena Mitasova, Bill Brown, Lubos Mitas, Jaro Hofierka, S&ouml;ren Gebbert
  83. <h2>SEE ALSO</h2>
  84. <em>
  85. <a href="r.in.ascii.html">r.in.ascii</a>,
  86. <a href="r3.out.ascii.html">r3.out.ascii</a>,
  87. <a href="v.to.rast3.html">v.to.rast3</a>,
  88. <a href="g.region.html">g.region</a>
  89. </em>
  90. <p><i>Last changed: $Date$</i>