r.spreadpath(1)

✨ r.spreadpath ✨

okay bestie, welcome to r.spreadpath β€” a little icon of a manual page from the GRASS GIS User's Manual. it walks the least cost path backwards, recursively, to the cells that determined the cumulative cost. so basically a detective but for raster cells πŸ•΅οΈβ™€οΈπŸ’…


🌸 NAME 🌸

r.spreadpath β€” recursively traces the least cost path backwards to cells from which the cumulative cost was determined.

no cap, that's literally the whole job. πŸ”₯


πŸŽ€ KEYWORDS πŸŽ€

raster, fire, cumulative costs


πŸ¦‹ SYNOPSIS πŸ¦‹

r.spreadpath
r.spreadpath --help
r.spreadpath x_input=name y_input=name
[coordinates=east,north[,east,north,...]]  output=name  [--overwrite]
[--help]  [--verbose]  [--quiet]  [--ui]

🌟 Flags 🌟

  • --overwrite β€” let those output files overwrite existing files, live your truth πŸ’…
  • --help β€” print the usage summary, for when you're lost (we've all been there 🫢)
  • --verbose β€” verbose module output, the module will tell you everything, main character energy
  • --quiet β€” quiet module output, shhh 🀫
  • --ui β€” force launching the GUI dialog, for the visual girlies ✨

πŸ“ Parameters πŸ“

  • x_input=name [required] β€” name of the raster map containing back-path easting information
  • y_input=name [required] β€” name of the raster map containing back-path northing information
  • coordinates=east,north[,east,north,...] β€” the map E and N grid coordinates of starting points πŸ“
  • output=name [required] β€” name for the output raster map

πŸ’– DESCRIPTION πŸ’–

okay so r.spreadpath is part of the wildfire simulation toolset. before the fire sim even happens, there's prep work: you calculate the rate of spread (ROS) with r.ros, and then you create the spread map with r.spread. and then, eventually, the fire path(s) based on starting point(s) get calculated with r.spreadpath. it's giving pipeline. it's giving teamwork. 🌈

r.spreadpath recursively traces the least cost path backwards to the origin, given backlink information input map layers and target locations from where paths are to be traced. the backlink information map layers record each cell's backlink UTM northing (the y_input) and easting (the x_input) coordinates from which the cell's cumulative cost was determined. so every cell remembers where it came from. honestly? relatable. 😭

the backlink inputs can be generated from another GRASS raster program, r.spread. one of the major applications of r.spreadpath along with r.spread is to accurately find the least cost corridors and/or paths on a raster setting. more info on r.spread and r.spreadpath can be found in Xu (1994). iykyk πŸ“š

🧚 Parameters 🧚

  • x_input=name β€” name of input raster map layer containing backlink UTM easting coordinates.
  • y_input=name β€” name of input raster map layer containing backlink UTM northing coordinates.
  • coordinates =x,y[,x,y,x,y, ...] β€” each x,y coordinate pair gives the easting and northing (respectively) geographic coordinates of a target point from which to backwards trace the least cost path. as many points as desired can be entered by the user. go off, enter a hundred, i'm not your mom πŸ’…
  • output=name β€” name of raster map layer to contain output. also can be used as the map layer of the input target points. if so used, the input target point map will be overwritten by the output. ⚠️ yes bestie, that means what you think it means.
⚠️ heads up: if you point output at the same map as your input target points, that input target point map gets overwritten by the output. no undo button. be brave, but be aware. πŸ™ˆ

πŸ“š REFERENCES πŸ“š

  • Xu, Jianping, 1994, Simulating the spread of wildfires using a geographic information system and remote sensing, Ph. D. Dissertation, Rutgers University, New Brunswick, New Jersey (ref). ⭐

πŸ‘€ SEE ALSO πŸ‘€

r.spread, r.ros

Sample data download: firedemo.sh (run this script within the "Fire simulation data set" project). 🧨


πŸ‘‘ AUTHORS πŸ‘‘

Jianping Xu and Richard G. Lathrop, Jr., Center for Remote Sensing and Spatial Analysis, Rutgers University. iconic duo fr fr 🫢


πŸ’Ύ SOURCE CODE πŸ’Ύ

Available at: r.spreadpath source code (history)

Accessed: Saturday Jan 17 05:41:00 2026

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


and that's the whole page, bestie!! πŸŽ€βœ¨ this was r.spreadpath(1) from the GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 β€” accessed Saturday Jan 17 05:41:00 2026. go trace some least cost paths, you absolute legend. slay. periodt. πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from