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

Bugs in Hm0 calculation for spectrum dfsu in some cases #525

Open
jsmariegaard opened this issue Jan 10, 2023 · 1 comment
Open

Bugs in Hm0 calculation for spectrum dfsu in some cases #525

jsmariegaard opened this issue Jan 10, 2023 · 1 comment

Comments

@jsmariegaard
Copy link
Member

Two problems have been identified for spectral dfsu files in the Hm0 calculation:

  • deletevalues in spectrum will give nan Hm0 - it should be safe to treat them as 0
  • if the file uses radians instead of degrees (unit: meter pow 2 sec per rad), the directional integration is wrong and Hm0 results will be sqrt(180/pi) too large.
@ecomodeller
Copy link
Member

No action have been taken on this issue, is this a hint that

def calc_Hm0_from_spectrum(
and related functionality is actually out of scope for MIKE IO?

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

No branches or pull requests

2 participants