Bugs in Hm0 calculation for spectrum dfsu in some cases
jsmariegaard opened this issue · 1 comments
jsmariegaard commented
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 commented
No action have been taken on this issue, is this a hint that
mikeio/mikeio/dfsu/_spectral.py
Line 324 in 4929b6f