You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New module: stereonet for plotting Schmidt/Wulff stereonets (structural geology) #9156
Structural geologists routinely plot fault/fracture planes and lineations on a stereonet — the projection of one hemisphere used to display the orientation of planes (as strike/dip or dip direction/dip) and lines (as trend/plunge). GMT can already produce the net itself with the existing azimuthal projections (-JA for the equal-area Schmidt net, -JS for the equal-angle Wulff net, see the Cookbook figure GMT_stereonets), but there is no built-in way to convert structural measurements into the coordinates those projections expect, or to draw the cyclographic trace of a plane.
I'm working on this — a new geology supplement with a stereonet module
(psstereonet in classic mode). Current scope:
-JA/-JS (Schmidt/Wulff net), centered on 0/0, reusing GMT's existing
azimuthal projections rather than inventing a new one
-T selects what the input angles mean: strike/dip (right-hand rule),
dip direction/dip, or trend/plunge of a line; +u for the upper hemisphere
Draws the cyclographic trace of each plane (-W) and/or the pole or line
(-S), colorable via -C
-A for the azimuth ring around the perimeter
-M to dump the converted lon/lat instead of plotting, for building custom
figures
Opening this issue mainly so the community is aware work is underway, and to
get early feedback on naming/scope/options before a PR — happy to hear
opinions, especially from other structural geologists.
Are you willing to help implement and maintain this feature? Yes
Thanks! This module is going to be really appreciated. Exciting to see a GMT stereonet module coming!
A few feature suggestions that could be useful:
D[k|e|s] for density plots, allowing the user to choose between Kamb (Kamb, 1959), Exponential Kamb (Vollmer, 1995), and Schmidt (no ref for that one) contouring. Perhaps modifiers such as +s for the sigma value (default = 2? 3?), +wstep for the contour interval and pen attributes, and maybe +c to fill the contours using a CPT file.
-F for Fisher statistics, to report the mean plane and/or mean pole from an input dataset.
This is not really an option, or maybe it could be handled through -T but it would be great if the module could recognize different orientation notations and convert them to RHR automatically. For example, 030/36W would be converted to 210/36 in RHR notation.
For pole plots, it would be nice if -S allowed the user to choose the plotting symbol, similar to gmt plot. For line plots, having access to vector attributes as well, again following the gmt plot syntax, could also be useful.
There is already a lot of work done in Python for stereonets, with packages such as mplstereonet or APSG, which could provide some inspiration for the options and features of the GMT stereonet module.
These are just a few ideas that come to mind as I work on different projects. I'll probably come back with more suggestions as I go!
We should very careful with inclusion of large chunks of code produced only by AI. And only top models (basically only Opus and above) should be used in its design. A module like this should be the most self contained as possible.
@joa-quim I'd like to submit multiple PRs for the new features I'm adding to this module, rather than one large one. I think PR #9178 · WIP. Add stereonet module for… is ready to merge once I pull the density-contouring (-D) part back out — that'll come back as its own follow-up PR once it's finished. What do you think?
This should be a supplement (don't know if it already is). Oops yes, it already is a supplement, but maybe put it directly under src like the others. windbarbs is not meteoology\windbarbs. And even if that is changed in future it won't breake nothing because the binary will continue to land in gmt_plugins\supplements.dll|...
but maybe put it directly under src like the others. windbarbs is not meteoology\windbarbs. And even if that is changed in future it won't breake nothing because the binary will continue to land in gmt_plugins\supplements.dll|...
Activity
rhum1-geo commentedon Sep 2, 2026
Thanks! This module is going to be really appreciated. Exciting to see a GMT stereonet module coming!
A few feature suggestions that could be useful:
D[k|e|s]for density plots, allowing the user to choose between Kamb (Kamb, 1959), Exponential Kamb (Vollmer, 1995), and Schmidt (no ref for that one) contouring. Perhaps modifiers such as +s for the sigma value (default = 2? 3?),+wstep for the contour interval and pen attributes, and maybe+cto fill the contours using a CPT file.-Ffor Fisher statistics, to report the mean plane and/or mean pole from an input dataset.-Tbut it would be great if the module could recognize different orientation notations and convert them to RHR automatically. For example, 030/36W would be converted to 210/36 in RHR notation.For pole plots, it would be nice if
-Sallowed the user to choose the plotting symbol, similar togmt plot. For line plots, having access to vector attributes as well, again following thegmt plotsyntax, could also be useful.There is already a lot of work done in Python for stereonets, with packages such as mplstereonet or APSG, which could provide some inspiration for the options and features of the GMT stereonet module.
These are just a few ideas that come to mind as I work on different projects. I'll probably come back with more suggestions as I go!
joa-quim commentedon Sep 2, 2026
We should very careful with inclusion of large chunks of code produced only by AI. And only top models (basically only Opus and above) should be used in its design. A module like this should be the most self contained as possible.
geology: Add -D density contouring (Kamb/exponential-Kamb/Schmidt) to…
Esteban82 commentedon Sep 25, 2026
@joa-quim I'd like to submit multiple PRs for the new features I'm adding to this module, rather than one large one. I think PR #9178 · WIP. Add stereonet module for… is ready to merge once I pull the density-contouring (-D) part back out — that'll come back as its own follow-up PR once it's finished. What do you think?
Esteban82 commentedon Sep 25, 2026
For I added this note to the docs (
stereonet.rst/psstereonet.rst), matching the style already used ingmt_update.rst.joa-quim commentedon Sep 25, 2026
This should be a supplement (don't know if it already is). Oops yes, it already is a supplement, but maybe put it directly under src like the others.
windbarbsis notmeteoology\windbarbs. And even if that is changed in future it won't breake nothing because the binary will continue to land ingmt_plugins\supplements.dll|...Esteban82 commentedon Sep 25, 2026
Ok, I will change that.
geology,stereonet: Rename supplement directory/library from geology t…