This function: https://github.com/microhh/microhhpy/blob/main/microhhpy/real/sea_input.py#L34 generates NaNs when there is no or little water in the domain.