wavespectra.SpecArray.scale_by_hs#
- SpecArray.scale_by_hs(expr, hs_min=-inf, hs_max=inf, tp_min=-inf, tp_max=inf, dpm_min=-inf, dpm_max=inf)[source]#
Scale spectra using expression based on Significant Wave Height hs.
- Args:
expr (str): expression to apply, e.g. ‘0.13*hs + 0.02’.
- hs_min, hs_max, tp_min, tp_max, dpm_min, dpm_max (float): Ranges of hs,
tp and dpm over which the scaling defined by expr is applied.