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
- 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