From e83e2c6d5092452aa56da3574751a60525b07e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dion=20H=C3=A4fner?= Date: Fri, 12 Mar 2021 23:03:13 +0100 Subject: [PATCH] spectral mean period is zero-crossing period --- fowd/operators.py | 2 +- fowd/output.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fowd/operators.py b/fowd/operators.py index 1c2a406..6cb181e 100644 --- a/fowd/operators.py +++ b/fowd/operators.py @@ -352,7 +352,7 @@ def compute_nth_moment(frequencies, wave_spectral_density, n): def compute_mean_wave_period_spectral(zeroth_moment, frequencies, wave_spectral_density): - """Compute mean wave period from wave spectral density.""" + """Compute mean zero-crossing period from wave spectral density.""" second_moment = compute_nth_moment(frequencies, wave_spectral_density, 2) return np.sqrt(zeroth_moment / second_moment) diff --git a/fowd/output.py b/fowd/output.py index 7cc4ff2..ec222ab 100644 --- a/fowd/output.py +++ b/fowd/output.py @@ -260,7 +260,7 @@ dims=('wave_id_local',), dtype='float32', attrs=dict( - long_name='Mean wave period estimated from spectral density spectrum', + long_name='Mean zero-crossing period estimated from spectral density spectrum', units='seconds', ) ),