Skip to content

Commit 280595e

Browse files
seismanmichaelgrundyvonnefroehlich
authored
DOC: Move description of distcal to the Technical Reference section (#3868)
Co-authored-by: Michael Grund <[email protected]> Co-authored-by: Yvonne Fröhlich <[email protected]>
1 parent 723540c commit 280595e

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

Diff for: doc/techref/common_parameters.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# Common Parameters
22

33
```{glossary}
4+
``distcalc``
5+
Determine how spherical distances are calculated. Valid values are:
6+
7+
- ``"g"``: Perform great circle distance calculations, with parameters such as
8+
distance increments or radii compared against calculated great circle distances
9+
[Default].
10+
- ``"e"``: Select ellipsoidal (or geodesic) mode for the highest precision but
11+
slowest calculation time.
12+
- ``"f"``: Select Flat Earth mode, which gives a more approximate but faster result.
13+
14+
**Note:** (1) All spherical distance calculations depend on the current ellipsoid
15+
({gmt-term}`PROJ_ELLIPSOID`), the definition of the mean radius
16+
({gmt-term}`PROJ_MEAN_RADIUS`), and the specification of the latitude type
17+
({gmt-term}`PROJ_AUX_LATITUDE`). Geodesic distance calculations are also controlled
18+
by the algorithm to use for geodesic calculations ({gmt-term}`PROJ_GEODESIC`).
19+
(2) Coordinate transformations that can use ellipsoidal or spherical forms will
20+
first consult this parameter if given.
21+
422
``verbose``
523
Select verbosity level, which modulates the messages written to stderr.
624

Diff for: pygmt/helpers/decorators.py

+2-12
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,8 @@
8181
""",
8282
"distcalc": r"""
8383
distcalc : str
84-
**e**\|\ **f**\|\ **g**.
85-
Determine how spherical distances are calculated.
86-
87-
- **e**: Ellipsoidal (or geodesic) mode
88-
- **f**: Flat Earth mode
89-
- **g**: Great circle distance [Default]
90-
91-
All spherical distance calculations depend on the current ellipsoid
92-
(:gmt-term:`PROJ_ELLIPSOID`), the definition of the mean radius
93-
(:gmt-term:`PROJ_MEAN_RADIUS`), and the specification of latitude type
94-
(:gmt-term:`PROJ_AUX_LATITUDE`). Geodesic distance calculations is also
95-
controlled by method (:gmt-term:`PROJ_GEODESIC`).""",
84+
Determine how spherical distances are calculated
85+
[:term:`Full usage <distcalc>`].""",
9686
"fill": r"""
9787
fill : str
9888
Set color or pattern for filling symbols or polygons

0 commit comments

Comments
 (0)