Skip to content

Commit 019d13e

Browse files
Remote datasets: Include images of the official documentation in API reference (#2728)
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
1 parent 5fbc88a commit 019d13e

File tree

7 files changed

+45
-0
lines changed

7 files changed

+45
-0
lines changed

pygmt/datasets/earth_age.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ def load_earth_age(resolution="01d", region=None, registration=None):
1515
r"""
1616
Load the Earth seafloor crustal age dataset in various resolutions.
1717
18+
.. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_age.png # noqa: W505
19+
:width: 80 %
20+
:align: center
21+
22+
Earth seafloor crustal age dataset.
23+
1824
The grids are downloaded to a user data directory
1925
(usually ``~/.gmt/server/earth/earth_age/``) the first time you invoke
2026
this function. Afterwards, it will load the grid from the data directory.

pygmt/datasets/earth_free_air_anomaly.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ def load_earth_free_air_anomaly(resolution="01d", region=None, registration=None
1616
Load the IGPP Global Earth Free-Air Anomaly datatset in various
1717
resolutions.
1818
19+
.. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_faa.jpg # noqa: W505
20+
:width: 80 %
21+
:align: center
22+
23+
IGPP Global Earth Free-Air Anomaly datatset.
24+
1925
The grids are downloaded to a user data directory
2026
(usually ``~/.gmt/server/earth/earth_faa/``) the first time you invoke
2127
this function. Afterwards, it will load the grid from the data directory.

pygmt/datasets/earth_geoid.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ def load_earth_geoid(resolution="01d", region=None, registration=None):
1515
r"""
1616
Load the EGM2008 Global Earth Geoid dataset in various resolutions.
1717
18+
.. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_geoid.jpg # noqa: W505
19+
:width: 80 %
20+
:align: center
21+
22+
EGM2008 Global Earth Geoid dataset.
23+
1824
The grids are downloaded to a user data directory
1925
(usually ``~/.gmt/server/earth/earth_geoid/``) the first time you invoke
2026
this function. Afterwards, it will load the grid from the data directory.

pygmt/datasets/earth_magnetic_anomaly.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ def load_earth_magnetic_anomaly(
1818
r"""
1919
Load the Earth magnetic anomaly datasets in various resolutions.
2020
21+
.. list-table::
22+
:widths: 50 50
23+
:header-rows: 1
24+
25+
* - Global Earth Magnetic Anomaly Model (EMAG2)
26+
- World Digital Magnetic Anomaly Map (WDMAM)
27+
* - .. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_mag.jpg # noqa: W505
28+
- .. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_wdmam.jpg # noqa: W505
29+
2130
The grids are downloaded to a user data directory
2231
(usually ``~/.gmt/server/earth/earth_mag/``,
2332
``~/.gmt/server/earth/earth_mag4km/``,

pygmt/datasets/earth_mask.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ def load_earth_mask(resolution="01d", region=None, registration=None):
1515
r"""
1616
Load the GSHHG Global Earth Mask dataset in various resolutions.
1717
18+
.. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_earthmask.png # noqa: W505
19+
:width: 80 %
20+
:align: center
21+
22+
GSHHG Global Earth Mask dataset.
23+
1824
The grids are downloaded to a user data directory
1925
(usually ``~/.gmt/server/earth/earth_mask/``) the first time you invoke
2026
this function. Afterwards, it will load the grid from the data directory.

pygmt/datasets/earth_relief.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ def load_earth_relief(
2323
Load the Earth relief datasets (topography and bathymetry) in various
2424
resolutions.
2525
26+
.. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_gebcosi.jpg # noqa: W505
27+
:width: 80 %
28+
:align: center
29+
30+
Earth relief datasets (topography and bathymetry).
31+
2632
The grids are downloaded to a user data directory
2733
(usually ``~/.gmt/server/earth/earth_relief``,
2834
``~/.gmt/server/earth/earth_gebco``, ``~/.gmt/server/earth/earth_gebcosi``,

pygmt/datasets/earth_vertical_gravity_gradient.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ def load_earth_vertical_gravity_gradient(
1818
Load the IGPP Global Earth Vertical Gravity Gradient dataset in various
1919
resolutions.
2020
21+
.. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_vgg.jpg # noqa: W505
22+
:width: 80 %
23+
:align: center
24+
25+
IGPP Global Earth Vertical Gravity Gradient dataset.
26+
2127
The grids are downloaded to a user data directory
2228
(usually ``~/.gmt/server/earth/earth_vgg/``) the first time you invoke
2329
this function. Afterwards, it will load the grid from the data directory.

0 commit comments

Comments
 (0)