Scroll to navigation

r.transect(1grass) GRASS GIS User's Manual r.transect(1grass)


r.transect - Outputs raster map layer values lying along user defined transect line(s).


raster, profile, transect


r.transect --help
r.transect [-g] map=name line=east,north,azimuth,distance[,east,north,azimuth,distance,...] [null_value=string] [--help] [--verbose] [--quiet] [--ui]


Output easting and northing in first two columns of four column output

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Raster map to be queried

Transect definition

String representing NULL value
Default: *


This program outputs, in ASCII, the values in a raster map which lie along one or more user-defined transect lines. The transects are described by their starting coordinates, azimuth, and distance.

The line parameter is a definition of (each) transect line, specified by the geographic coordinates of its starting point (easting, northing), the angle and direction of its travel (azimuth), and its distance (distance).

The azimuth is an angle, in degrees, measured to the east of north. The distance is in map units (meters for a metered database, like UTM).

The null parameter can optionally be set to change the character string representing null values.


This program is a front-end to the r.profile program. It simply converts the azimuth and distance to an ending coordinate and then runs r.profile. There once were width= and result=raw|median|average options which are not currently implemented.


r.profile, wxGUI profile tool


Michael Shapiro, U.S. Army Construction Engineering Research Laboratory


Available at: r.transect source code (history)

Accessed: Thu May 12 20:53:47 2022

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2022 GRASS Development Team, GRASS GIS 8.2.0RC1 Reference Manual

GRASS 8.2.0RC1