1313from pygmt .helpers import (
1414 build_arg_list ,
1515 fmt_docstring ,
16- kwargs_to_strings ,
1716 use_alias ,
1817 validate_output_table_type ,
1918)
@@ -80,10 +79,8 @@ def _blockm(
8079 e = "find" ,
8180 f = "coltypes" ,
8281 h = "header" ,
83- o = "outcols" ,
8482 w = "wrap" ,
8583)
86- @kwargs_to_strings (o = "sequence_comma" )
8784def blockmean ( # noqa: PLR0913
8885 data : PathLike | TableLike | None = None ,
8986 x = None ,
@@ -97,6 +94,7 @@ def blockmean( # noqa: PLR0913
9794 verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
9895 | bool = False ,
9996 incols : int | str | Sequence [int | str ] | None = None ,
97+ outcols : int | str | Sequence [int | str ] | None = None ,
10098 ** kwargs ,
10199) -> pd .DataFrame | np .ndarray | None :
102100 r"""
@@ -118,6 +116,7 @@ def blockmean( # noqa: PLR0913
118116 - R = region
119117 - V = verbose
120118 - i = incols
119+ - o = outcols
121120 - r = registration
122121
123122 Parameters
@@ -176,6 +175,7 @@ def blockmean( # noqa: PLR0913
176175 R = region ,
177176 V = verbose ,
178177 i = incols ,
178+ o = outcols ,
179179 r = registration ,
180180 )
181181 aliasdict .merge (kwargs )
@@ -194,16 +194,8 @@ def blockmean( # noqa: PLR0913
194194
195195@fmt_docstring
196196@use_alias (
197- a = "aspatial" ,
198- b = "binary" ,
199- d = "nodata" ,
200- e = "find" ,
201- f = "coltypes" ,
202- h = "header" ,
203- o = "outcols" ,
204- w = "wrap" ,
197+ a = "aspatial" , b = "binary" , d = "nodata" , e = "find" , f = "coltypes" , h = "header" , w = "wrap"
205198)
206- @kwargs_to_strings (o = "sequence_comma" )
207199def blockmedian ( # noqa: PLR0913
208200 data : PathLike | TableLike | None = None ,
209201 x = None ,
@@ -217,6 +209,7 @@ def blockmedian( # noqa: PLR0913
217209 verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
218210 | bool = False ,
219211 incols : int | str | Sequence [int | str ] | None = None ,
212+ outcols : int | str | Sequence [int | str ] | None = None ,
220213 ** kwargs ,
221214) -> pd .DataFrame | np .ndarray | None :
222215 r"""
@@ -238,6 +231,7 @@ def blockmedian( # noqa: PLR0913
238231 - R = region
239232 - V = verbose
240233 - i = incols
234+ - o = outcols
241235 - r = registration
242236
243237 Parameters
@@ -290,6 +284,7 @@ def blockmedian( # noqa: PLR0913
290284 R = region ,
291285 V = verbose ,
292286 i = incols ,
287+ o = outcols ,
293288 r = registration ,
294289 )
295290 aliasdict .merge (kwargs )
@@ -314,10 +309,8 @@ def blockmedian( # noqa: PLR0913
314309 e = "find" ,
315310 f = "coltypes" ,
316311 h = "header" ,
317- o = "outcols" ,
318312 w = "wrap" ,
319313)
320- @kwargs_to_strings (o = "sequence_comma" )
321314def blockmode ( # noqa: PLR0913
322315 data : PathLike | TableLike | None = None ,
323316 x = None ,
@@ -331,6 +324,7 @@ def blockmode( # noqa: PLR0913
331324 verbose : Literal ["quiet" , "error" , "warning" , "timing" , "info" , "compat" , "debug" ]
332325 | bool = False ,
333326 incols : int | str | Sequence [int | str ] | None = None ,
327+ outcols : int | str | Sequence [int | str ] | None = None ,
334328 ** kwargs ,
335329) -> pd .DataFrame | np .ndarray | None :
336330 r"""
@@ -352,6 +346,7 @@ def blockmode( # noqa: PLR0913
352346 - R = region
353347 - V = verbose
354348 - i = incols
349+ - o = outcols
355350 - r = registration
356351
357352 Parameters
@@ -402,6 +397,7 @@ def blockmode( # noqa: PLR0913
402397 R = region ,
403398 V = verbose ,
404399 i = incols ,
400+ o = outcols ,
405401 r = registration ,
406402 )
407403 aliasdict .merge (kwargs )
0 commit comments