Skip to content

Commit 7f88dce

Browse files
committed
Update the notes in all load_xxx functions
1 parent 9d73ce9 commit 7f88dce

17 files changed

+35
-107
lines changed

pygmt/datasets/earth_day.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,8 @@ def load_blue_marble(
7272
Note
7373
----
7474
The registration and coordinate system type of the returned
75-
:class:`xarray.DataArray` image can be accessed via the GMT accessors (i.e.,
76-
``image.gmt.registration`` and ``image.gmt.gtype`` respectively). However, these
77-
properties may be lost after specific image operations (such as slicing) and will
78-
need to be manually set before passing the image to any PyGMT data processing or
79-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
80-
explanations and workarounds.
75+
:class:`xarray.DataArray` image can be accessed via the *gmt* accessor. Refer to
76+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
8177
8278
Examples
8379
--------

pygmt/datasets/earth_deflection.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,8 @@ def load_earth_deflection(
9090
Note
9191
----
9292
The registration and coordinate system type of the returned
93-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
94-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
95-
properties may be lost after specific grid operations (such as slicing) and will
96-
need to be manually set before passing the grid to any PyGMT data processing or
97-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
98-
explanations and workarounds.
93+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
94+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
9995
10096
Examples
10197
--------

pygmt/datasets/earth_dist.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,8 @@ def load_earth_dist(
7777
Note
7878
----
7979
The registration and coordinate system type of the returned
80-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
81-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
82-
properties may be lost after specific grid operations (such as slicing) and will
83-
need to be manually set before passing the grid to any PyGMT data processing or
84-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
85-
explanations and workarounds.
80+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
81+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
8682
8783
Examples
8884
--------

pygmt/datasets/earth_free_air_anomaly.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,8 @@ def load_earth_free_air_anomaly(
9090
Note
9191
----
9292
The registration and coordinate system type of the returned
93-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
94-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
95-
properties may be lost after specific grid operations (such as slicing) and will
96-
need to be manually set before passing the grid to any PyGMT data processing or
97-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
98-
explanations and workarounds.
93+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
94+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
9995
10096
Examples
10197
--------

pygmt/datasets/earth_geoid.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,8 @@ def load_earth_geoid(
7070
Note
7171
----
7272
The registration and coordinate system type of the returned
73-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors
74-
(i.e., ``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively).
75-
However, these properties may be lost after specific grid operations (such
76-
as slicing) and will need to be manually set before passing the grid to any
77-
PyGMT data processing or plotting functions. Refer to
78-
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and
79-
workarounds.
73+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
74+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
8075
8176
Examples
8277
--------

pygmt/datasets/earth_magnetic_anomaly.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,8 @@ def load_earth_magnetic_anomaly(
102102
Note
103103
----
104104
The registration and coordinate system type of the returned
105-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors
106-
(i.e., ``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively).
107-
However, these properties may be lost after specific grid operations (such
108-
as slicing) and will need to be manually set before passing the grid to any
109-
PyGMT data processing or plotting functions. Refer to
110-
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and
111-
workarounds.
105+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
106+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
112107
113108
Examples
114109
--------

pygmt/datasets/earth_mask.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,8 @@ def load_earth_mask(
8989
Note
9090
----
9191
The registration and coordinate system type of the returned
92-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors
93-
(i.e., ``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively).
94-
However, these properties may be lost after specific grid operations (such
95-
as slicing) and will need to be manually set before passing the grid to any
96-
PyGMT data processing or plotting functions. Refer to
97-
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and
98-
workarounds.
92+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
93+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
9994
10095
Examples
10196
--------

pygmt/datasets/earth_mean_dynamic_topography.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,8 @@ def load_earth_mean_dynamic_topography(
7373
Note
7474
----
7575
The registration and coordinate system type of the returned
76-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
77-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
78-
properties may be lost after specific grid operations (such as slicing) and will
79-
need to be manually set before passing the grid to any PyGMT data processing or
80-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
81-
explanations and workarounds.
76+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
77+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
8278
8379
Examples
8480
--------

pygmt/datasets/earth_mean_sea_surface.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,8 @@ def load_earth_mean_sea_surface(
7676
Note
7777
----
7878
The registration and coordinate system type of the returned
79-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
80-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
81-
properties may be lost after specific grid operations (such as slicing) and will
82-
need to be manually set before passing the grid to any PyGMT data processing or
83-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
84-
explanations and workarounds.
79+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
80+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
8581
8682
Examples
8783
--------

pygmt/datasets/earth_night.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,8 @@ def load_black_marble(
7171
Note
7272
----
7373
The registration and coordinate system type of the returned
74-
:class:`xarray.DataArray` image can be accessed via the GMT accessors (i.e.,
75-
``image.gmt.registration`` and ``image.gmt.gtype`` respectively). However, these
76-
properties may be lost after specific image operations (such as slicing) and will
77-
need to be manually set before passing the image to any PyGMT data processing or
78-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
79-
explanations and workarounds.
74+
:class:`xarray.DataArray` image can be accessed via the *gmt* accessor. Refer to
75+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
8076
8177
Examples
8278
--------

pygmt/datasets/earth_relief.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,8 @@ def load_earth_relief(
118118
Note
119119
----
120120
The registration and coordinate system type of the returned
121-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors
122-
(i.e., ``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively).
123-
However, these properties may be lost after specific grid operations (such
124-
as slicing) and will need to be manually set before passing the grid to any
125-
PyGMT data processing or plotting functions. Refer to
126-
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and
127-
workarounds.
121+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
122+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
128123
129124
Examples
130125
--------

pygmt/datasets/earth_vertical_gravity_gradient.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,12 @@ def load_earth_vertical_gravity_gradient(
7575
The Earth vertical gravity gradient grid. Coordinates are latitude and
7676
longitude in degrees. Units are in Eotvos.
7777
78+
7879
Note
7980
----
8081
The registration and coordinate system type of the returned
81-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors
82-
(i.e., ``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively).
83-
However, these properties may be lost after specific grid operations (such
84-
as slicing) and will need to be manually set before passing the grid to any
85-
PyGMT data processing or plotting functions. Refer to
86-
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and
87-
workarounds.
82+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
83+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
8884
8985
Examples
9086
--------

pygmt/datasets/mars_relief.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,8 @@ def load_mars_relief(
9292
Note
9393
----
9494
The registration and coordinate system type of the returned
95-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
96-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
97-
properties may be lost after specific grid operations (such as slicing) and will
98-
need to be manually set before passing the grid to any PyGMT data processing or
99-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
100-
explanations and workarounds.
95+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
96+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
10197
10298
Examples
10399
--------

pygmt/datasets/mercury_relief.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,8 @@ def load_mercury_relief(
9191
Note
9292
----
9393
The registration and coordinate system type of the returned
94-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
95-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
96-
properties may be lost after specific grid operations (such as slicing) and will
97-
need to be manually set before passing the grid to any PyGMT data processing or
98-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
99-
explanations and workarounds.
94+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
95+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
10096
10197
Examples
10298
--------

pygmt/datasets/moon_relief.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,8 @@ def load_moon_relief(
9292
Note
9393
----
9494
The registration and coordinate system type of the returned
95-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
96-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
97-
properties may be lost after specific grid operations (such as slicing) and will
98-
need to be manually set before passing the grid to any PyGMT data processing or
99-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
100-
explanations and workarounds.
95+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
96+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
10197
10298
Examples
10399
--------

pygmt/datasets/pluto_relief.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,8 @@ def load_pluto_relief(
9191
Note
9292
----
9393
The registration and coordinate system type of the returned
94-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
95-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
96-
properties may be lost after specific grid operations (such as slicing) and will
97-
need to be manually set before passing the grid to any PyGMT data processing or
98-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
99-
explanations and workarounds.
94+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
95+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
10096
10197
Examples
10298
--------

pygmt/datasets/venus_relief.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,8 @@ def load_venus_relief(
7676
Note
7777
----
7878
The registration and coordinate system type of the returned
79-
:class:`xarray.DataArray` grid can be accessed via the GMT accessors (i.e.,
80-
``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively). However, these
81-
properties may be lost after specific grid operations (such as slicing) and will
82-
need to be manually set before passing the grid to any PyGMT data processing or
83-
plotting functions. Refer to :class:`pygmt.GMTDataArrayAccessor` for detailed
84-
explanations and workarounds.
79+
:class:`xarray.DataArray` grid can be accessed via the *gmt* accessor. Refer to
80+
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and limitations.
8581
8682
Examples
8783
--------

0 commit comments

Comments
 (0)