You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be great to add a brief example in the documentation on creating a SpecArray object from scratch (i.e., using the __init__ method). I think it would be as simple as this:
@ryancoe that is a good idea. We are currently working on a major version upgrade #106 that will add several features including spectra reconstruction and a new partitioning api and the documentation will be also upgraded as a result. Will try to put an example perhaps in the "Quick start" section.
One comment though is that the last line in your snippet ws = wavespectra.SpecArray(da) isn't really needed - the spec accessor will already by available to da as long as wavespectra has been imported and da conforms to wavespectra conventions (freq cood in Hz, dir coord in degrees, efth values in m2/Hz/deg)
It'd be great to add a brief example in the documentation on creating a
SpecArray
object from scratch (i.e., using the__init__
method). I think it would be as simple as this:The text was updated successfully, but these errors were encountered: