d.polar(1grass)

πŸ’– d.polar β€” the manual, but make it cute πŸ’–

okay bestie, welcome to d.polar, from the GRASS User's Manual (aka the GRASS 8.5.0 corner of the universe). it draws a polar diagram of an angle map β€” like aspect or flow directions β€” and honestly? it's giving data visualization main character energy πŸ‘‘


✨ NAME ✨

d.polar β€” draws polar diagram of angle map such as aspect or flow directions. literally that's the whole job and she does it flawlessly πŸ’…


🌸 KEYWORDS 🌸

display, diagram


πŸ¦‹ SYNOPSIS πŸ¦‹

d.polar
d.polar --help
d.polar [-x] map=name  [undef=float]   [output=name]   [--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]

πŸŽ€ Flags πŸŽ€

  • -x β€” Plot using Xgraph ✨
  • --overwrite β€” Allow output files to overwrite existing files (she will simply replace them, no cap)
  • --help β€” Print usage summary
  • --verbose β€” Verbose module output (she tells you everything πŸ—£οΈ)
  • --quiet β€” Quiet module output (she says nothing, iconic silence πŸ’€)
  • --ui β€” Force launching GUI dialog

πŸ’œ Parameters πŸ’œ

  • map=name [required] β€” Name of raster angle map. like, you GOTTA give her this one, it's mandatory bestie 🫢
  • undef=float β€” Pixel value to be interpreted as undefined (different from NULL)
  • output=name β€” Name for optional EPS output file

🌈 DESCRIPTION 🌈

so. d.polar calculates and displays a polar diagram of an angle raster map β€” think aspect, wind direction, or flow. the vibe is immaculate. BUT here's the tea β˜•: the input angle map orientation must be counter-clockwise (CCW) from east, and the angle map units must be degrees. this refers to the standard orientation of GRASS (e.g., see r.slope.aspect). don't come at her with radians, she will not be okay 😭

The radius of the outer circle is defined by the total number of pixels in the map. so if the polar diagram does not reach the outer circle? no data (NULL) pixels were found in the map. that's the whole mystery solved, periodt πŸ”

The vector in the diagram indicates a prevailing direction, and its length is the strength of such direction. in case all angle vectors are oriented along the same direction, the length for the vector is maximal β€” in fact it is equal to length of the most populated bin of the underlying histogram. she ate that fr fr πŸ“βœ¨

As a side effect, the quality of the angle map can be derived from the diagram. strong spikes may indicate an over-representation of the related angle(s), which happens in particular if integer maps are used. so like, spikes = sus. keep an eye on them πŸ‘€


πŸ’… NOTES πŸ’…

If the output parameter is used, the diagram is generated as EPS file. If the -x flag is used, xgraph is launched. Otherwise d.polar will use d.graph to draw the plot in the current display frame. three paths, one queen πŸ‘‘

If d.polar is used on an aspect map generated by r.slope.aspect, the undef parameter should be set to 0 to distinguish NO DATA (NULL) areas from areas where aspect is undefined (i.e. flat areas). this is the tip that saves lives, iykyk 🧚

Polar diagram of aspect map 🌸 (that's the figure caption bestie, she's just standing there, being pretty)

⭐ EXAMPLE ⭐

In this example, the polar diagram of the 'aspect' angle map in the North Carolina sample dataset is generated:

g.region raster=aspect -p
d.polar aspect

πŸ”₯ XGRAPH REQUIREMENT πŸ”₯

Xgraph must be installed for the -x flag to function. no xgraph, no x-flag. that's the rules πŸ’€


🌈 SEE ALSO 🌈

d.graph, d.histogram, d.rast.arrow, r.slope.aspect


πŸ“ REFERENCES πŸ“

J. Hofierka, H. Mitasova, and M. Neteler (2009): Terrain parameterization in GRASS. In T. Hengl and H.I. Reuter, editors, Geomorphometry: concepts, software, applications. Elsevier (DOI)


πŸ‘‘ AUTHORS πŸ‘‘

  • Markus Neteler, ITC-irst, Italy
  • Bruno Caprile, ITC-irst, Italy
  • Hamish Bowman, Otago University, New Zealand

the founding mothers and fathers of the polar diagram, we stan 🫢


🧚 SOURCE CODE 🧚

Available at: d.polar source code (history)

Latest change: Thursday Nov 06 22:27:54 2025 in commit: 298b38614712934179355ea767403d6bfea8f5f9

Main index | Display index | Topics index | Keywords index | Graphical index | Full index


okay that's the whole page bestie!! πŸ’– this was d.polar from the GRASS 8.5.0 Reference Manual, Β© 2003-2026 GRASS Development Team, and the manual itself is rocking GRASS 8.5.0. go draw some polar diagrams and slay βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from