When there are multiple values with floating points issues, the array gets truncated. This causes issues in the calculation of the EAUL, which expects there to be flood data for 10 return periods.
Solution
Instead of decoding the flood data in the .osm file, load the data from the two JSON files directly.
The issue
The arrays with flood depths and lengths are not properly encoded in the OSM file.
This:
is encoded into something like this:
When there are multiple values with floating points issues, the array gets truncated. This causes issues in the calculation of the EAUL, which expects there to be flood data for 10 return periods.
Solution
Instead of decoding the flood data in the
.osm
file, load the data from the two JSON files directly.