123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <h2>DESCRIPTION</h2>
- This module creates a cross section 2D map from one 3D raster volume
- map based on a 2D elevation map. It checks if the value of the
- elevation map is located in the z-coordinate space of the 3D map. If
- so, the 3D voxel value for this position is transferred to the related
- cross section output map cell, otherwise the NULL value is set.
- <center>
- <img src="r3.cross.rast.png" border="0"><br>
- <table border="0" width="700">
- <tr><td><center>
- <i>How r3.cross.rast works</i>
- </center></td></tr>
- </table>
- </center>
- <p>If the 2D and 3D region settings are different,
- the 2D resolution will be adjust to the 3D resolution.
- <h2>NOTES</h2>
- To create a cut plane elevation map use <em>r.mapcalc</em>. Some examples:
- <ul>
- <li>To create a cut plane elevation map in x direction type
- <br><i>r.mapcalc "cutplane = col()*x"</i>,<br> x be the value for
- the elevation. If the range of col() is 1 ... 10, the elevation map
- has the range 1 ... 10 if x == 1 and if x == 10 the range 10
- ... 100</li>
- <li>To create a cut plane elevation map in y direction type
- <br><i>r.mapcalc "cutplane = row()*x"</i>,<br> x be the value for
- the elevation. If the range of col() is 1 ... 10, the elevation map
- has the range 1 ... 10 if x == 1 and if x == 10 the range 10
- ... 100</li>
- <li>The user can also make a cut in y and x direction with <em>r.mapcalc</em> by
- using <br><i>r.mapcalc "cutplane = (row()+col())*x"</i></li>
- </ul>
- <h2>EXAMPLE</h2>
- <h3>Simple Spearfish example</h3>
- <div class="code"><pre>
- g.region -d
- g.region res=150 res3=150 t=1000 b=0 tbres=100
- # synthetic data, could be geological structures:
- r3.mapcalc "map3d = sin(row())+sin(col())+sin(depth()*depth())"
- #create a cutplane map
- r.mapcalc "cutplane = col()*10"
- #create the cross section map
- r3.cross.rast input=map3d elevation=cutplane output=crosssection
- </pre></div>
- <h2>SEE ALSO</h2>
- <em>
- <a href="g.region.html">g.region</a>,
- <a href="r.mapcalc.html">r.mapcalc</a>,
- <a href="r3.mapcalc.html">r3.mapcalc</a>,
- <a href="r3.to.rast.html">r3.to.rast</a>
- </em>
- <h2>AUTHOR</h2>
- Sören Gebbert
- <!--
- <p>
- <i>Last changed: $Date$</i>
- -->
|