Skip to content

Commit

Permalink
Update docstring for mean_pressure_weighted and remove bad wrap_like …
Browse files Browse the repository at this point in the history
…usage
  • Loading branch information
jthielen committed Sep 28, 2020
1 parent 915bda5 commit 98600d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/metpy/calc/indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def precipitable_water(pressure, dewpoint, *, bottom=None, top=None):


@exporter.export
@preprocess_and_wrap(wrap_like=('pressure', 'pressure'))
@preprocess_and_wrap()
@check_units('[pressure]')
def mean_pressure_weighted(pressure, *args, height=None, bottom=None, depth=None):
r"""Calculate pressure-weighted mean of an arbitrary variable through a layer.
Expand All @@ -104,14 +104,14 @@ def mean_pressure_weighted(pressure, *args, height=None, bottom=None, depth=None
Returns
-------
`pint.Quantity`
u_mean: u-component of layer mean wind.
`pint.Quantity`
v_mean: v-component of layer mean wind.
list of `pint.Quantity`
list of layer mean value for each profile in args
Notes
-----
Only functions on 1D profiles (not higher-dimension vertical cross sections or grids).
Since this function returns scalar values when given a profile, this will return Pint
Quantities even when given xarray DataArray profiles.
"""
ret = [] # Returned variable means in layer
Expand Down

0 comments on commit 98600d6

Please sign in to comment.