@@ -31,7 +31,7 @@ class GMTDataArrayAccessor:
31
31
>>> from pygmt.datasets import load_earth_relief
32
32
>>> # Use the global Earth relief grid with 1 degree spacing
33
33
>>> grid = load_earth_relief(resolution="01d", registration="pixel")
34
- >>> # See if grid is Gridline or Pixel registration
34
+ >>> # See if grid uses Gridline or Pixel registration
35
35
>>> grid.gmt.registration
36
36
<GridRegistration.PIXEL: 1>
37
37
>>> # See if grid is in Cartesian or Geographic coordinate system
@@ -54,7 +54,7 @@ class GMTDataArrayAccessor:
54
54
>>> longrid, latgrid = np.meshgrid(lon, lat)
55
55
>>> data = np.sin(np.deg2rad(longrid)) * np.cos(np.deg2rad(latgrid))
56
56
>>> grid = xr.DataArray(data, coords=[("latitude", lat), ("longitude", lon)])
57
- >>> # Default to a gridline-registrated Cartesian grid
57
+ >>> # Default to a gridline-registered Cartesian grid
58
58
>>> grid.gmt.registration
59
59
<GridRegistration.GRIDLINE: 0>
60
60
>>> grid.gmt.gtype
@@ -154,7 +154,7 @@ def registration(self, value):
154
154
if value not in GridRegistration .__members__ .values ():
155
155
msg = (
156
156
f"Invalid grid registration: '{ value } '. "
157
- "Should be either GridRegistration.GRIDLINE or GridRegistration.PIXEL."
157
+ "Should be either GridRegistration.GRIDLINE (0) or GridRegistration.PIXEL (1) ."
158
158
)
159
159
raise GMTInvalidInput (msg )
160
160
self ._registration = GridRegistration (value )
0 commit comments