Skip to content

Commit 5843664

Browse files
pygmt.select: Deprecate parameter gridmask to mask_grid (Will be removed in v0.20.0) (#4283)
1 parent 2366b88 commit 5843664

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pygmt/src/select.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from pygmt.clib import Session
1313
from pygmt.helpers import (
1414
build_arg_list,
15+
deprecate_parameter,
1516
fmt_docstring,
1617
kwargs_to_strings,
1718
use_alias,
@@ -22,11 +23,12 @@
2223

2324

2425
@fmt_docstring
26+
@deprecate_parameter("gridmask", "mask_grid", "v0.18.0", remove_version="v0.20.0")
2527
@use_alias(
2628
A="area_thresh",
2729
C="dist2pt",
2830
F="polygon",
29-
G="gridmask",
31+
G="mask_grid",
3032
I="reverse",
3133
L="dist2line",
3234
N="mask",
@@ -128,17 +130,17 @@ def select(
128130
<reference/file-formats.html#optional-segment-header-records>`
129131
*polygonfile*. For spherical polygons (lon, lat), make sure no
130132
consecutive points are separated by 180 degrees or more in longitude.
131-
gridmask : str
133+
mask_grid : str
132134
Pass all locations that are inside the valid data area of the grid
133-
*gridmask*. Nodes that are outside are either NaN or zero.
135+
*mask_grid*. Nodes that are outside are either NaN or zero.
134136
reverse : str
135137
[**cflrsz**].
136138
Reverse the sense of the test for each of the criteria specified:
137139
138140
- **c** select records NOT inside any point's circle of influence.
139141
- **f** select records NOT inside any of the polygons.
140142
- **g** will pass records inside the cells with z equal zero of the
141-
grid mask in ``gridmask``.
143+
*mask_grid* in ``mask_grid``.
142144
- **l** select records NOT within the specified distance of any line.
143145
- **r** select records NOT inside the specified rectangular region.
144146
- **s** select records NOT considered inside as specified by ``mask``

0 commit comments

Comments
 (0)