@@ -51,34 +51,32 @@ def dimfilter(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None
5151 distance : int or str
5252 Distance flag tells how grid (x,y) relates to filter width, as follows:
5353
54- - **0**\ : grid (x,y) in same units as *width*, Cartesian distances.
55- - **1**\ : grid (x,y) in degrees, *width* in kilometers, Cartesian
56- distances.
57- - **2**\ : grid (x,y) in degrees, *width* in km, dx scaled by
58- cos(middle y), Cartesian distances.
54+ - **0**: grid (x,y) in same units as *width*, Cartesian distances.
55+ - **1**: grid (x,y) in degrees, *width* in kilometers, Cartesian distances.
56+ - **2**: grid (x,y) in degrees, *width* in km, dx scaled by cos(middle y),
57+ Cartesian distances.
5958
6059 The above options are fastest because they allow weight matrix to be
6160 computed only once. The next two options are slower because they
6261 recompute weights for each latitude.
6362
64- - **3**\ : grid (x,y) in degrees, *width* in km, dx scaled by
65- cosine(y), Cartesian distance calculation.
66- - **4**\ : grid (x,y) in degrees, *width* in km, Spherical distance
67- calculation.
63+ - **3**: grid (x,y) in degrees, *width* in km, dx scaled by cosine(y),
64+ Cartesian distance calculation.
65+ - **4**: grid (x,y) in degrees, *width* in km, Spherical distance calculation.
6866 filter : str
6967 **x**\ *width*\ [**+l**\|\ **u**].
7068 Set the primary filter type. Choose among convolution and
7169 non-convolution filters. Use the filter code **x** followed by
7270 the full diameter *width*. Available convolution filters are:
7371
74- - ( **b**) Boxcar: All weights are equal.
75- - ( **c**) Cosine Arch: Weights follow a cosine arch curve.
76- - ( **g**) Gaussian: Weights are given by the Gaussian function.
72+ - **b**: boxcar. Aall weights are equal.
73+ - **c**: cosine arch. Weights follow a cosine arch curve.
74+ - **g**: Gaussian. Weights are given by the Gaussian function.
7775
7876 Non-convolution filters are:
7977
80- - ( **m**) Median: Returns median value.
81- - ( **p**) Maximum likelihood probability (a mode estimator): Return
78+ - **m**: median. Returns median value.
79+ - **p**: maximum likelihood probability (a mode estimator). Return
8280 modal value. If more than one mode is found we return their average
8381 value. Append **+l** or **+h** to the filter width if you want
8482 to return the smallest or largest of each sector's modal values.
@@ -89,11 +87,11 @@ def dimfilter(grid, outgrid: str | None = None, **kwargs) -> xr.DataArray | None
8987 set to 1, the secondary filter is not effective. Available secondary
9088 filters **x** are:
9189
92- - ( **l**) Lower: Return the minimum of all filtered values.
93- - ( **u**) Upper: Return the maximum of all filtered values.
94- - ( **a**) Average: Return the mean of all filtered values.
95- - ( **m**) Median: Return the median of all filtered values.
96- - ( **p**) Mode: Return the mode of all filtered values:
90+ - **l**: lower. Return the minimum of all filtered values.
91+ - **u**: upper. Return the maximum of all filtered values.
92+ - **a**: average. Return the mean of all filtered values.
93+ - **m**: median. Return the median of all filtered values.
94+ - **p**: mode. Return the mode of all filtered values.
9795 If more than one mode is found we return their average
9896 value. Append **+l** or **+h** to the sectors if you rather want to
9997 return the smallest or largest of the modal values.
0 commit comments