wavespectra.core.utils.scaled#
- wavespectra.core.utils.scaled(spec, hs)[source]#
Scale spectra.
- The energy density in each spectrum is scaled by a single factor so that
significant wave height calculated from the scaled spectrum corresponds to hs.
- Parameters:
spec (-) – Wavespectra object to be scaled.
hs (-) – Hs values to use for scaling, if float it will scale each spectrum in the dataset, if a DataArray it must have all non-spectral coordinates as the spectra dataset.
- Returns:
Scaled wavespectra object.
- Return type:
spec (SpecArray, SpecDataset)