d.polar(1)
π d.polar β the GRASS GIS manual, but make it cute π
okay bestie, welcome to d.polar(1), straight out of the GRASS GIS User's Manual. this one draws polar diagrams of angle maps β like aspect or flow direction β and it's lowkey iconic. let's get into it π
β¨ NAME β¨
d.polar β draws a polar diagram of an angle map, like aspect or flow directions. it's giving compass rose but make it science π§β¨
πΈ 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 (yes, it will absolutely clobber them, be so fr)--helpβ print usage summary--verboseβ verbose module output--quietβ quiet module output--uiβ force launching GUI dialog
π Parameters:
map=name[required] β name of the raster angle map. this one's mandatory bestie, no skippingundef=floatβ pixel value to be interpreted as undefined (different from NULL)output=nameβ name for the 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. main character energy for directional data.
the input angle map orientation must be counter-clockwise (CCW) from east, and the angle map units must be degrees. this is the standard GRASS orientation, iykyk (peep r.slope.aspect if you need a reference).
the radius of the outer circle is defined by the total number of pixels in the map. so if the polar diagram doesn't reach the outer circle, that means no data (NULL) pixels were found in the map. no cap, that's just how it reads.
the vector in the diagram indicates a prevailing direction, and its length is the strength of that direction. if all the angle vectors are oriented along the same direction, the length of the vector is maximal β and fr fr, it's literally equal to the length of the most populated bin of the underlying histogram. π₯
as a side effect, you can derive the quality of the angle map from the diagram. strong spikes may indicate an over-representation of the related angle(s), which happens in particular if integer maps are used. spike = sus, check your map. π
π NOTES π
- if you use the
outputparameter, the diagram is generated as an EPS file. - if you use the
-xflag,xgraphis launched. - otherwise,
d.polarwill used.graphto draw the plot in the current display frame.
if you run d.polar on an aspect map generated by r.slope.aspect, you should set the undef parameter to 0 so you can distinguish NO DATA (NULL) areas from areas where aspect is undefined (i.e. flat areas). flat areas are NOT null areas, bestie, don't let them blur together π
polar diagram of aspect map πΊοΈβ¨
π 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
ate. no crumbs. π
β XGRAPH REQUIREMENT β
Xgraph must be installed for the -x flag to function. no xgraph, no x flag, periodt. π
π«Ά 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
legends, all three of them. πΈ
π» SOURCE CODE π»
available at: d.polar source code (history)
accessed: Saturday Jan 17 05:41:51 2026
Main index | Display 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 vibe bestie β this manual page is d.polar(1) from <strong>GRASS 8.4.2</strong>, dated Saturday Jan 17 05:41:51 2026, brought to you by the GRASS Development Team Β© 2003-2025. go make some gorgeous polar diagrams, ily πβ¨π¦π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· 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