Your company here — click to reach over 10,000 unique daily visitors

r3.cross.rast.1grass - Man Page

Creates cross section 2D raster map from 3D raster map based on 2D elevation map


raster3d, profile, raster, voxel


r3.cross.rast --help
r3.cross.rast [-m] input=string elevation=string output=string  [--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]



Use 3D raster mask (if exists) with input map


Allow output files to overwrite existing files


Print usage summary


Verbose module output


Quiet module output


Force launching GUI dialog


input=string [required]

Input 3D raster map for cross section

elevation=string [required]

2D elevation map used to create the cross section map

output=string [required]

Resulting cross section 2D raster map


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.

How r3.cross.rast works

If the 2D and 3D region settings are different, the 2D resolution will be adjust to the 3D resolution.


To create a cut plane elevation map use r.mapcalc. Some examples:


Simple Spearfish example

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

See Also

g.region, r.mapcalc, r3.mapcalc, r3.to.rast


Sören Gebbert

Source Code

Available at: r3.cross.rast source code (history)

Accessed: Tuesday May 14 13:41:00 2024

Main index | 3D raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2024 GRASS Development Team, GRASS GIS 8.3.2 Reference Manual


GRASS 8.3.2 GRASS GIS User's Manual