Skip to content

Commit

Permalink
Update shear function docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcvey3 committed May 31, 2024
1 parent d5c8914 commit edb722d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dolfyn/adp/turbulence.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ def _diff_func(self, vel, u, orientation):
sign = 1
if orientation == 'down':
sign *= -1

if self.diff_style == 'first':
out = _diffz_first(vel[u].values, vel['range'].values)
return sign*out, vel.range[1:]

elif self.diff_style == 'centered':
out = _diffz_centered(vel[u].values, vel['range'].values)
return sign*out, vel.range[1:-1]

elif self.diff_style == 'centered_extended':
out = _diffz_centered_extended(vel[u].values, vel['range'].values)
return sign*out, vel.range
Expand Down Expand Up @@ -116,6 +116,8 @@ def calc_dvdz(self, vel, orientation=None):
----------
vel : xarray.DataArray
ADCP raw velocity
orientation : str, default=ADPBinner.orientation
Direction ADCP is facing ('up' or 'down')
Notes
-----
Expand All @@ -139,6 +141,8 @@ def calc_dwdz(self, vel, orientation=None):
----------
vel : xarray.DataArray
ADCP raw velocity
orientation : str, default=ADPBinner.orientation
Direction ADCP is facing ('up' or 'down')
Notes
-----
Expand Down

0 comments on commit edb722d

Please sign in to comment.