r.transect(1grass)
π r.transect β the manual page, bestie edition π
okay so you found yourself at r.transect(1grass) in the GRASS User's Manual and honestly? slay. pull up a chair. this is the tool that goes pew pew along a line and reads out what the raster has to say about it. it's giving β¨transectβ¨ and it's giving β¨iconicβ¨. lowkey the whole thing fits in one breath, so let's go.
π NAME π
r.transect β outputs raster map layer values lying along user defined transect line(s). π
π KEYWORDS π
raster, profile, transect
π SYNOPSIS π
r.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]
π© Flags π©
-gβ outputs easting and northing in the first two columns of a four column output. coordinate girlies rise up π--helpβ prints the usage summary. the classic "what does this even do" button.--verboseβ verbose module output. it will tell you everything, no cap.--quietβ quiet module output. shhh. π€«--uiβ forces launching the GUI dialog. for when clicking > typing, and that's valid.
π§Έ Parameters π§Έ
map=name[required] β raster map to be queried. bestie, you GOTTA name the map, it's required fr fr.line=east,north,azimuth,distance[,east,north,azimuth,distance,...][required] β the transect definition. also required. also not optional. also did I mention required.null_value=stringβ string representing NULL value. Default:*
πΈ DESCRIPTION πΈ
r.transect 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. no drama, just a lil line drawn across your map and a lil list of numbers coming back. π¦
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. so that's four lil numbers per line and they're a whole squad. π
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). so like, north is the reference, east is where you start counting to, and the distance is justβ¦ however long you're walking. πΆβοΈβ¨
the null parameter can optionally be set to change the character string representing null values. yes, you can pick your own little placeholder glyph. customise your void. π
π NOTES π
this program is a front-end to ther.profileprogram. it simply converts the azimuth and distance to an ending coordinate and then runsr.profile.
so it's not doing the heavy lifting itself, it's delegating. respect. π«Ά
also, there once were width= and result=raw|median|average options which are not currently implemented. so if you see them in the wild, they're ghosts. π don't come for me, I don't make the rules.
π SEE ALSO π
r.profilewxGUI profile tool
π AUTHOR π
Michael Shapiro, U.S. Army Construction Engineering Research Laboratory
πΎ SOURCE CODE πΎ
Available at: r.transect source code (history)
Latest change: Thursday May 08 20:58:05 2025 in commit: 4144ba81fa125e1549fc52e1cf5feb4fa004be8b
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
and that's the whole page, bestie π we were hanging out in the GRASS 8.5.0 Reference Manual the entire time β Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual β and this lil icon of a manpage is r.transect(1grass), GRASS 8.5.0. periodt. β¨ππΈ
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms