DHI/mikeio

Bugs in Hm0 calculation for spectrum dfsu in some cases

jsmariegaard opened this issue · 1 comments

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.

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?