Skip to content

Commit 7d6f615

Browse files
authored
docs: Use consistent description for the 'outgrid' parameter (#2874)
1 parent 314d3df commit 7d6f615

19 files changed

+35
-71
lines changed

pygmt/helpers/decorators.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@
253253
input and skip trailing text. **Note**: If ``incols`` is also
254254
used then the columns given to ``outcols`` correspond to the
255255
order after the ``incols`` selection has taken place.""",
256+
"outgrid": """
257+
outgrid : str or None
258+
Name of the output netCDF grid file. For writing a specific grid
259+
file format or applying basic data operations to the output grid,
260+
see :gmt-docs:`gmt.html#grd-inout-full` for the available modifiers.""",
256261
"panel": r"""
257262
panel : bool, int, or list
258263
[*row,col*\|\ *index*].

pygmt/src/binstats.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def binstats(data, **kwargs):
5151
data : str, {table-like}
5252
A file name of an ASCII data table or a 2-D
5353
{table-classes}.
54-
outgrid : str or None
55-
The name of the output netCDF file with extension .nc to store the grid
56-
in.
54+
{outgrid}
5755
statistic : str
5856
**a**\|\ **d**\|\ **g**\|\ **i**\|\ **l**\|\ **L**\|\ **m**\|\ **n**\
5957
\|\ **o**\|\ **p**\|\ **q**\ [*quant*]\|\ **r**\|\ **s**\|\ **u**\

pygmt/src/dimfilter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ def dimfilter(grid, **kwargs):
5454
Parameters
5555
----------
5656
{grid}
57-
outgrid : str or None
58-
The name of the output netCDF file with extension .nc to store the grid
59-
in.
57+
{outgrid}
6058
distance : int or str
6159
Distance flag tells how grid (x,y) relates to filter width, as follows:
6260

pygmt/src/grdclip.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def grdclip(grid, **kwargs):
5151
Parameters
5252
----------
5353
{grid}
54-
outgrid : str or None
55-
The name of the output netCDF file with extension .nc to store the grid
56-
in.
54+
{outgrid}
5755
{region}
5856
above : str or list
5957
[*high*, *above*].

pygmt/src/grdcut.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ def grdcut(grid, **kwargs):
4747
Parameters
4848
----------
4949
{grid}
50-
outgrid : str or None
51-
The name of the output netCDF file with extension .nc to store the grid
52-
in.
50+
{outgrid}
5351
{projection}
5452
{region}
5553
extend : bool or float

pygmt/src/grdfill.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ def grdfill(grid, **kwargs):
4141
Parameters
4242
----------
4343
{grid}
44-
outgrid : str or None
45-
The name of the output netCDF file with extension .nc to store the grid
46-
in.
44+
{outgrid}
4745
mode : str
4846
Specify the hole-filling algorithm to use. Choose from **c** for
4947
constant fill and append the constant value, **n** for nearest

pygmt/src/grdfilter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ def grdfilter(grid, **kwargs):
4949
Parameters
5050
----------
5151
{grid}
52-
outgrid : str or None
53-
The name of the output netCDF file with extension .nc to store the grid
54-
in.
52+
{outgrid}
5553
filter : str
5654
**b**\|\ **c**\|\ **g**\|\ **o**\|\ **m**\|\ **p**\|\ **h**\ *width*\
5755
[/*width2*\][*modifiers*].

pygmt/src/grdgradient.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ def grdgradient(grid, **kwargs):
4646
Parameters
4747
----------
4848
{grid}
49-
outgrid : str or None
50-
The name of the output netCDF file with extension .nc to store the grid
51-
in.
49+
{outgrid}
5250
azimuth : float, str, or list
5351
*azim*\ [/*azim2*].
5452
Azimuthal direction for a directional derivative; *azim* is the

pygmt/src/grdhisteq.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ def _grdhisteq(grid, output_type, **kwargs):
7676
Parameters
7777
----------
7878
{grid}
79-
outgrid : str or bool or None
80-
The name of the output netCDF file with extension .nc to store the
81-
grid in.
79+
{outgrid}
8280
outfile : str, bool, or None
8381
The name of the output ASCII file to store the results of the
8482
histogram equalization in.
@@ -162,9 +160,7 @@ def equalize_grid(
162160
Parameters
163161
----------
164162
{grid}
165-
outgrid : str or None
166-
The name of the output netCDF file with extension .nc to store the
167-
grid in.
163+
{outgrid}
168164
divisions : int
169165
Set the number of divisions of the data range.
170166
gaussian : bool or int or float

pygmt/src/grdlandmask.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ def grdlandmask(**kwargs):
4545
4646
Parameters
4747
----------
48-
outgrid : str or None
49-
The name of the output netCDF file with extension .nc to store the grid
50-
in.
48+
{outgrid}
5149
{spacing}
5250
{region}
5351
{area_thresh}

0 commit comments

Comments
 (0)