r.transect(1)

πŸ’– r.transect(1) β€” GRASS GIS User's Manual πŸ’–

okay bestie, welcome to the GRASS GIS manual page for r.transect(1), and lemme tell you, this one is so chill. πŸ¦‹


✨ NAME ✨

r.transect β€” outputs raster map layer values lying along user defined transect line(s).

like. it literally just reads a raster along a line you drew in your head. iconic behavior. πŸ‘‘


🏷️ 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 the four column output. so you get coordinates and values, four columns deep, periodt.
  • --help β€” prints the usage summary. your emergency 411.
  • --verbose β€” verbose module output. it will talk. a lot. main character energy.
  • --quiet β€” quiet module output. it will not talk. shhh.
  • --ui β€” force launching GUI dialog. for when you want the pretty buttons instead of the terminal grind.

🧚 Parameters:

  • map=name [required] β€” the raster map to be queried. you gotta tell it what to look at, no cap.
  • line=east,north,azimuth,distance[,east,north,azimuth,distance,...] [required] β€” the transect definition. yes you can stack a bunch of them, separated by commas, and it will eat them all.
  • null_value=string β€” string representing NULL value. Default: *

πŸ’… DESCRIPTION πŸ’…

okay so 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. that's it. that's the whole job. lowkey perfect.

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 like, point, angle, how far. a lil road trip through your raster. πŸš—

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. so if * isn't your vibe, swap it out. πŸ™ˆ


πŸ“ NOTES πŸ“

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. so it's giving delegation, and honestly? respect. it knows its strengths.

🚨 lore drop: there once were width= and result=raw|median|average options which are not currently implemented. so don't come for them, they are ghosts. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

  • r.profile
  • wxGUI profile tool

πŸ‘‘ AUTHOR πŸ‘‘

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


🫢 SOURCE CODE 🫢

available at: r.transect source code (history)

accessed: Saturday Jan 17 05:41:03 2026

main index | raster index | topics index | keywords index | graphical index | full index

Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual


and that's the whole page bestie!! πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ this was GRASS 8.4.2, and the page was accessed on Saturday Jan 17 05:41:03 2026, straight out of the GRASS GIS 8.4.2 Reference Manual by the GRASS Development Team. slay, go profile something. πŸ’…

πŸ“¦ where this page comes from