Skip to content

Commit 2413b61

Browse files
seismanmichaelgrundyvonnefroehlich
authored
Document the default CPT for GMT remote datasets (#2573)
Co-authored-by: Michael Grund <[email protected]> Co-authored-by: Yvonne Fröhlich <[email protected]>
1 parent 91e29f1 commit 2413b61

5 files changed

+38
-0
lines changed

pygmt/datasets/earth_age.py

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ def load_earth_age(resolution="01d", region=None, registration=None):
2626
registration type (**p** for pixel registration or **g** for gridline
2727
registration).
2828
29+
The default color palette table (CPT) for this dataset is *@earth_age.cpt*.
30+
It's implicitly used when passing in the file name of the dataset to any
31+
grid plotting method if no CPT is explicitly specified. When the dataset
32+
is loaded and plotted as an :class:`xarray.DataArray` object, the default
33+
CPT is ignored and GMT's default CPT (*turbo*) is used. To use the
34+
dataset-specific CPT, you need to explicitly set ``cmap="@earth_age.cpt"``.
35+
2936
Refer to :gmt-datasets:`earth-age.html` for more details.
3037
3138
Parameters

pygmt/datasets/earth_free_air_anomaly.py

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ def load_earth_free_air_anomaly(resolution="01d", region=None, registration=None
2626
registration type (**p** for pixel registration or **g** for gridline
2727
registration).
2828
29+
The default color palette table (CPT) for this dataset is *@earth_faa.cpt*.
30+
It's implicitly used when passing in the file name of the dataset to any
31+
grid plotting method if no CPT is explicitly specified. When the dataset
32+
is loaded and plotted as an :class:`xarray.DataArray` object, the default
33+
CPT is ignored and GMT's default CPT (*turbo*) is used. To use the
34+
dataset-specific CPT, you need to explicitly set ``cmap="@earth_faa.cpt"``.
35+
2936
Refer to :gmt-datasets:`earth-faa.html` for more details.
3037
3138
Parameters

pygmt/datasets/earth_magnetic_anomaly.py

+10
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ def load_earth_magnetic_anomaly(
3333
(see below), and *reg* is grid registration type (**p** for pixel
3434
registration or **g** for gridline registration).
3535
36+
The default color palette tables (CPTs) for this dataset are
37+
*@earth_mag.cpt* for ``data_source="emag2"`` and
38+
``data_source="emag2_4km"``, and *@earth_wdmam.cpt* for
39+
``data_source="wdmam"``. The dataset-specific CPT is implicitly used when
40+
passing in the file name of the dataset to any grid plotting method if no
41+
CPT is explicitly specified. When the dataset is loaded and plotted as an
42+
:class:`xarray.DataArray` object, the default CPT is ignored and GMT's
43+
default CPT (*turbo*) is used. To use the dataset-specific CPT, you need to
44+
explicitly set ``cmap="@earth_mag.cpt"`` or ``cmap="@earth_wdmam.cpt"``.
45+
3646
Refer to :gmt-datasets:`earth-mag.html`
3747
and :gmt-datasets:`earth-wdmam.html` for more details.
3848

pygmt/datasets/earth_relief.py

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ def load_earth_relief(
3737
grid resolution (see below), and *reg* is grid registration type
3838
(**p** for pixel registration or **g** for gridline registration).
3939
40+
The default color palette table (CPT) for this dataset is *geo*.
41+
It's implicitly used when passing in the file name of the dataset to any
42+
grid plotting method if no CPT is explicitly specified. When the dataset
43+
is loaded and plotted as an :class:`xarray.DataArray` object, the default
44+
CPT is ignored and GMT's default CPT (*turbo*) is used. To use the
45+
dataset-specific CPT, you need to explicitly set ``cmap="geo"``.
46+
4047
Refer to :gmt-datasets:`earth-relief.html` for more details about available
4148
datasets, including version information and references.
4249

pygmt/datasets/earth_vertical_gravity_gradient.py

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ def load_earth_vertical_gravity_gradient(
2929
registration type (**p** for pixel registration or **g** for gridline
3030
registration).
3131
32+
The default color palette table (CPT) for this dataset is *@earth_vgg.cpt*.
33+
It's implicitly used when passing in the file name of the dataset to any
34+
grid plotting method if no CPT is explicitly specified. When the dataset
35+
is loaded and plotted as an :class:`xarray.DataArray` object, the default
36+
CPT is ignored and GMT's default CPT (*turbo*) is used. To use the
37+
dataset-specific CPT, you need to explicitly set ``cmap="@earth_vgg.cpt"``.
38+
3239
Refer to :gmt-datasets:`earth-vgg.html` for more details.
3340
3441
Parameters

0 commit comments

Comments
 (0)