7
7
import numpy as np
8
8
import pandas as pd
9
9
from pygmt ._typing import PathLike , TableLike
10
+ from pygmt .alias import AliasSystem
10
11
from pygmt .clib import Session
11
12
from pygmt .helpers import (
12
13
build_arg_list ,
@@ -74,7 +75,6 @@ def _blockm(
74
75
I = "spacing" ,
75
76
R = "region" ,
76
77
S = "summary" ,
77
- V = "verbose" ,
78
78
a = "aspatial" ,
79
79
b = "binary" ,
80
80
d = "nodata" ,
@@ -94,6 +94,8 @@ def blockmean(
94
94
z = None ,
95
95
output_type : Literal ["pandas" , "numpy" , "file" ] = "pandas" ,
96
96
outfile : PathLike | None = None ,
97
+ verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
98
+ | bool = False ,
97
99
** kwargs ,
98
100
) -> pd .DataFrame | np .ndarray | None :
99
101
r"""
@@ -111,6 +113,7 @@ def blockmean(
111
113
Full GMT docs at :gmt-docs:`blockmean.html`.
112
114
113
115
{aliases}
116
+ - V = verbose
114
117
115
118
Parameters
116
119
----------
@@ -162,6 +165,11 @@ def blockmean(
162
165
>>> # Calculate block mean values within 5 by 5 arc-minute bins
163
166
>>> data_bmean = pygmt.blockmean(data=data, region=[245, 255, 20, 30], spacing="5m")
164
167
"""
168
+ aliasdict = AliasSystem ().add_common (
169
+ V = verbose ,
170
+ )
171
+ aliasdict .merge (kwargs )
172
+
165
173
return _blockm (
166
174
block_method = "blockmean" ,
167
175
data = data ,
@@ -170,15 +178,14 @@ def blockmean(
170
178
z = z ,
171
179
output_type = output_type ,
172
180
outfile = outfile ,
173
- ** kwargs ,
181
+ ** aliasdict ,
174
182
)
175
183
176
184
177
185
@fmt_docstring
178
186
@use_alias (
179
187
I = "spacing" ,
180
188
R = "region" ,
181
- V = "verbose" ,
182
189
a = "aspatial" ,
183
190
b = "binary" ,
184
191
d = "nodata" ,
@@ -198,6 +205,8 @@ def blockmedian(
198
205
z = None ,
199
206
output_type : Literal ["pandas" , "numpy" , "file" ] = "pandas" ,
200
207
outfile : PathLike | None = None ,
208
+ verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
209
+ | bool = False ,
201
210
** kwargs ,
202
211
) -> pd .DataFrame | np .ndarray | None :
203
212
r"""
@@ -215,6 +224,7 @@ def blockmedian(
215
224
Full GMT docs at :gmt-docs:`blockmedian.html`.
216
225
217
226
{aliases}
227
+ - V = verbose
218
228
219
229
Parameters
220
230
----------
@@ -260,6 +270,11 @@ def blockmedian(
260
270
... data=data, region=[245, 255, 20, 30], spacing="5m"
261
271
... )
262
272
"""
273
+ aliasdict = AliasSystem ().add_common (
274
+ V = verbose ,
275
+ )
276
+ aliasdict .merge (kwargs )
277
+
263
278
return _blockm (
264
279
block_method = "blockmedian" ,
265
280
data = data ,
@@ -268,15 +283,14 @@ def blockmedian(
268
283
z = z ,
269
284
output_type = output_type ,
270
285
outfile = outfile ,
271
- ** kwargs ,
286
+ ** aliasdict ,
272
287
)
273
288
274
289
275
290
@fmt_docstring
276
291
@use_alias (
277
292
I = "spacing" ,
278
293
R = "region" ,
279
- V = "verbose" ,
280
294
a = "aspatial" ,
281
295
b = "binary" ,
282
296
d = "nodata" ,
@@ -296,6 +310,8 @@ def blockmode(
296
310
z = None ,
297
311
output_type : Literal ["pandas" , "numpy" , "file" ] = "pandas" ,
298
312
outfile : PathLike | None = None ,
313
+ verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
314
+ | bool = False ,
299
315
** kwargs ,
300
316
) -> pd .DataFrame | np .ndarray | None :
301
317
r"""
@@ -313,6 +329,7 @@ def blockmode(
313
329
Full GMT docs at :gmt-docs:`blockmode.html`.
314
330
315
331
{aliases}
332
+ - V = verbose
316
333
317
334
Parameters
318
335
----------
@@ -356,6 +373,11 @@ def blockmode(
356
373
>>> # Calculate block mode values within 5 by 5 arc-minute bins
357
374
>>> data_bmode = pygmt.blockmode(data=data, region=[245, 255, 20, 30], spacing="5m")
358
375
"""
376
+ aliasdict = AliasSystem ().add_common (
377
+ V = verbose ,
378
+ )
379
+ aliasdict .merge (kwargs )
380
+
359
381
return _blockm (
360
382
block_method = "blockmode" ,
361
383
data = data ,
@@ -364,5 +386,5 @@ def blockmode(
364
386
z = z ,
365
387
output_type = output_type ,
366
388
outfile = outfile ,
367
- ** kwargs ,
389
+ ** aliasdict ,
368
390
)
0 commit comments