|
23 | 23 |
|
24 | 24 |
|
25 | 25 | @fmt_docstring |
| 26 | +@deprecate_parameter("mask", "mask_values", "v0.18.0", remove_version="v0.20.0") |
26 | 27 | @deprecate_parameter("gridmask", "mask_grid", "v0.18.0", remove_version="v0.20.0") |
27 | 28 | @use_alias( |
28 | 29 | A="area_thresh", |
|
31 | 32 | G="mask_grid", |
32 | 33 | I="reverse", |
33 | 34 | L="dist2line", |
34 | | - N="mask", |
| 35 | + N="mask_values", |
35 | 36 | Z="z_subregion", |
36 | 37 | b="binary", |
37 | 38 | d="nodata", |
@@ -143,29 +144,27 @@ def select( |
143 | 144 | *mask_grid* in ``mask_grid``. |
144 | 145 | - **l** select records NOT within the specified distance of any line. |
145 | 146 | - **r** select records NOT inside the specified rectangular region. |
146 | | - - **s** select records NOT considered inside as specified by ``mask`` |
| 147 | + - **s** select records NOT considered inside as specified by ``mask_values`` |
147 | 148 | (and ``area_thresh``, ``resolution``). |
148 | 149 | - **z** select records NOT within the range specified by |
149 | 150 | ``z_subregion``. |
150 | 151 | $projection |
151 | | - mask : str or list |
152 | | - Pass all records whose location is inside specified geographical |
153 | | - features. Specify if records should be skipped (s) or kept (k) using |
154 | | - 1 of 2 formats: |
| 152 | + mask_values : str or list |
| 153 | + Pass all records whose location is inside specified geographical features. |
| 154 | + Specify if records should be skipped (s) or kept (k) using 1 of 2 formats: |
155 | 155 |
|
156 | 156 | - *wet/dry*. |
157 | 157 | - *ocean/land/lake/island/pond*. |
158 | 158 |
|
159 | | - [Default is s/k/s/k/s (i.e., s/k), which passes all points on dry |
160 | | - land]. |
| 159 | + [Default is s/k/s/k/s (i.e., s/k), which passes all points on dry land]. |
161 | 160 | resolution |
162 | | - Ignored unless ``mask`` is set. Select the resolution of the coastline dataset |
163 | | - to use. The available resolutions from highest to lowest are: ``"full"``, |
164 | | - ``"high"``, ``"intermediate"``, ``"low"``, and ``"crude"``, which drops by 80% |
165 | | - between levels. Alternatively, choose ``"auto"`` to automatically select the |
166 | | - most suitable resolution given the chosen region. Note that because the |
167 | | - coastlines differ in details, a node in a mask file using one resolution is not |
168 | | - guaranteed to remain inside [or outside] when a different resolution is |
| 161 | + Ignored unless ``mask_values`` is set. Select the resolution of the coastline |
| 162 | + dataset to use. The available resolutions from highest to lowest are: |
| 163 | + ``"full"``, ``"high"``, ``"intermediate"``, ``"low"``, and ``"crude"``, which |
| 164 | + drops by 80% between levels. Alternatively, choose ``"auto"`` to automatically |
| 165 | + select the most suitable resolution given the chosen region. Note that because |
| 166 | + the coastlines differ in details, a node in a mask file using one resolution is |
| 167 | + not guaranteed to remain inside [or outside] when a different resolution is |
169 | 168 | selected. If ``None``, the low resolution is used by default. |
170 | 169 | $region |
171 | 170 | $verbose |
|
0 commit comments