Skip to content

Commit 6bd5e72

Browse files
DOC: Fix highlighting, typos, etc. - Part I (#3574)
1 parent 8b6f61d commit 6bd5e72

25 files changed

+63
-62
lines changed

pygmt/src/binstats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def binstats(data, outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
7272
Set the value assigned to empty nodes [Default is NaN].
7373
normalize : bool
7474
Normalize the resulting grid values by the area represented by the
75-
search *radius* [no normalization].
75+
search *radius* [Default is no normalization].
7676
search_radius : float or str
7777
Set the *search_radius* that determines which data points are
7878
considered close to a node. Append the distance unit.
@@ -98,7 +98,7 @@ def binstats(data, outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
9898
Return type depends on whether the ``outgrid`` parameter is set:
9999
100100
- :class:`xarray.DataArray` if ``outgrid`` is not set
101-
- None if ``outgrid`` is set (grid output will be stored in file set by
101+
- ``None`` if ``outgrid`` is set (grid output will be stored in the file set by
102102
``outgrid``)
103103
"""
104104
with Session() as lib:

pygmt/src/blockm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def blockmedian(
244244
ret
245245
Return type depends on ``outfile`` and ``output_type``:
246246
247-
- ``None`` if ``outfile`` is set (output will be stored in file set by
247+
- ``None`` if ``outfile`` is set (output will be stored in the file set by
248248
``outfile``)
249249
- :class:`pandas.DataFrame` or :class:`numpy.ndarray` if ``outfile`` is not set
250250
(depends on ``output_type``)
@@ -342,7 +342,7 @@ def blockmode(
342342
ret
343343
Return type depends on ``outfile`` and ``output_type``:
344344
345-
- ``None`` if ``outfile`` is set (output will be stored in file set by
345+
- ``None`` if ``outfile`` is set (output will be stored in the file set by
346346
``outfile``)
347347
- :class:`pandas.DataFrame` or :class:`numpy.ndarray` if ``outfile`` is not set
348348
(depends on ``output_type``)

pygmt/src/dimfilter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ def dimfilter(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None
9898
spacing : str or list
9999
*x_inc* [and optionally *y_inc*] is the output increment. Append
100100
**m** to indicate minutes, or **c** to indicate seconds. If the new
101-
*x_inc*, *y_inc* are NOT integer multiples of the old ones (in the
101+
*x_inc*, *y_inc* are **not** integer multiples of the old ones (in the
102102
input data), filtering will be considerably slower. [Default is same
103-
as input.]
103+
as the input.]
104104
region : str or list
105105
[*xmin*, *xmax*, *ymin*, *ymax*].
106-
Define the region of the output points [Default is same as input].
106+
Define the region of the output points [Default is the same as the input].
107107
{verbose}
108108
109109
Returns
@@ -112,7 +112,7 @@ def dimfilter(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None
112112
Return type depends on whether the ``outgrid`` parameter is set:
113113
114114
- :class:`xarray.DataArray` if ``outgrid`` is not set
115-
- None if ``outgrid`` is set (grid output will be stored in file set by
115+
- ``None`` if ``outgrid`` is set (grid output will be stored in the file set by
116116
``outgrid``)
117117
118118
Example

pygmt/src/filter1d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def filter1d(
105105
ret
106106
Return type depends on ``outfile`` and ``output_type``:
107107
108-
- None if ``outfile`` is set (output will be stored in file set by ``outfile``)
108+
- ``None`` if ``outfile`` is set (output will be stored in the file set by
109+
``outfile``)
109110
- :class:`pandas.DataFrame` or :class:`numpy.ndarray` if ``outfile`` is not set
110111
(depends on ``output_type``)
111112
"""

pygmt/src/grd2xyz.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ def grd2xyz(
121121
ret
122122
Return type depends on ``outfile`` and ``output_type``:
123123
124-
- None if ``outfile`` is set (output will be stored in file set by ``outfile``)
124+
- ``None`` if ``outfile`` is set (output will be stored in the file set by
125+
``outfile``)
125126
- :class:`pandas.DataFrame` or :class:`numpy.ndarray` if ``outfile`` is not set
126127
(depends on ``output_type``)
127128
@@ -133,7 +134,7 @@ def grd2xyz(
133134
>>> grid = pygmt.datasets.load_earth_relief(
134135
... resolution="30m", region=[10, 30, 15, 25]
135136
... )
136-
>>> # Create a pandas DataFrame with the xyz data from an input grid
137+
>>> # Create a pandas.DataFrame with the xyz data from an input grid
137138
>>> xyz_dataframe = pygmt.grd2xyz(grid=grid, output_type="pandas")
138139
>>> xyz_dataframe.head(n=2)
139140
lon lat z

pygmt/src/grdclip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def grdclip(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
6767
Return type depends on whether the ``outgrid`` parameter is set:
6868
6969
- :class:`xarray.DataArray` if ``outgrid`` is not set
70-
- None if ``outgrid`` is set (grid output will be stored in file set by
70+
- ``None`` if ``outgrid`` is set (grid output will be stored in the file set by
7171
``outgrid``)
7272
7373
Example

pygmt/src/grdcontour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def grdcontour(self, grid, **kwargs):
4040
r"""
4141
Convert grids or images to contours and plot them on maps.
4242
43-
Takes a grid file name or an xarray.DataArray object as input.
43+
Takes a grid file name or an :class:`xarray.DataArray` object as input.
4444
4545
Full option list at :gmt-docs:`grdcontour.html`
4646

pygmt/src/grdcut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def grdcut(grid, **kwargs) -> xr.DataArray | None:
8585
Return type depends on whether the ``outgrid`` parameter is set:
8686
8787
- :class:`xarray.DataArray` if ``outgrid`` is not set
88-
- None if ``outgrid`` is set (grid output will be stored in file set by
88+
- ``None`` if ``outgrid`` is set (grid output will be stored in the file set by
8989
``outgrid``)
9090
9191
Example

pygmt/src/grdfill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def grdfill(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None:
5656
Return type depends on whether the ``outgrid`` parameter is set:
5757
5858
- :class:`xarray.DataArray` if ``outgrid`` is not set
59-
- None if ``outgrid`` is set (grid output will be stored in file set by
59+
- ``None`` if ``outgrid`` is set (grid output will be stored in the file set by
6060
``outgrid``)
6161
6262
Example

pygmt/src/grdfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def grdfilter(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None
102102
Return type depends on whether the ``outgrid`` parameter is set:
103103
104104
- :class:`xarray.DataArray` if ``outgrid`` is not set
105-
- None if ``outgrid`` is set (grid output will be stored in file set by
105+
- ``None`` if ``outgrid`` is set (grid output will be stored in the file set by
106106
``outgrid``)
107107
108108
Examples

0 commit comments

Comments
 (0)