r3.in.bin.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <h2>DESCRIPTION</h2>
  2. <em>r3.in.bin</em> allows a user to create a GRASS 3D raster map
  3. from a variety of binary 3D raster data formats.
  4. <p>The top, bottom, north, south, east, and west field values entered
  5. are the coordinates of the edges of the geographic region.
  6. The depths, rows and cols field values entered describe the dimensions
  7. of the matrix of data to follow.
  8. If the bytes field is entered incorrectly an error will be generated
  9. suggesting a closer bytes value.
  10. <h2>NOTES</h2>
  11. The write order of the rows (north->south to south->north) and
  12. the write order of the depths (bottom->top to top->bottom) can be switched.
  13. <p>
  14. Have a look at <a href="r3.out.ascii.html">r3.out.ascii</a> to manual page that
  15. describes the internal layout of the 3D raster maps and the supported
  16. row and depth switch options.
  17. <p>
  18. Import of little and big endian byte order as well as signed and
  19. unsigned integer data types is supported.
  20. <h2>Example</h2>
  21. First we create a specific region and a 3D raster map that we will export with
  22. <a href="r3.out.bin.html">r3.out.bin</a> and import again.
  23. <div class="code"><pre>
  24. g.region w=0 e=180 s=0 n=90 b=0 t=100 res3=10
  25. r3.mapcalc expr="test_out_bin_float = float(if(row() == 2, null(), row()))"
  26. r3.out.bin input=test_out_bin_float byte=4 null=-9999 \
  27. output=test_out_bin_float_native_b4.bin order=native
  28. r3.in.bin output=test_in_bin_float byte=4 null=-9999 \
  29. input=test_out_bin_float_native_b4.bin order=native \
  30. bottom=0 top=100 west=0 east=180 south=0 north=90 \
  31. cols=18 rows=9 depths=10
  32. </pre></div>
  33. <h2>SEE ALSO</h2>
  34. <em>
  35. <a href="r3.out.bin.html">r3.out.bin</a>,
  36. <a href="r3.in.ascii.html">r3.in.ascii</a>,
  37. <a href="r3.out.ascii.html">r3.out.ascii</a>
  38. </em>
  39. <h2>AUTHORS</h2>
  40. Soren Gebbert, based on r.in.bin from Jacques Bouchard and Bob Covill
  41. <p><i>Last changed: $Date$</i>