Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2D wave spectra tools - interpolation and integration #53

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

efvik
Copy link
Collaborator

@efvik efvik commented Nov 1, 2024

Introduces 3 new functions in stats/spec_funcs.py to analyze/process 2D numerical wave spectra.

  • interpolate_2D_spec() can interpolate a numpy array of 2D spectra to a new set of directions and frequencies
  • interpolate_dataarray_spec() extends the function above to work more easily with an xarray dataarray of spectra
  • integrated_parameters() calculates basic integrated spectra parameters

These can be used with the wave spectra products added in MET-OM/metocean-api#38 .

@KonstantinChri KonstantinChri merged commit 4f72617 into MET-OM:main Nov 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants