UMEP-dev / SUEWS

Surface Urban Energy and Water Balance Scheme
https://suews.readthedocs.io/
Mozilla Public License 2.0
12 stars 8 forks source link

Severe issue in snow calculations in developed SUEWS version #231

Closed ljarvi closed 3 months ago

ljarvi commented 11 months ago

There is a severe issue in the model code when SnowUse is set to 1. Before major changes in the code structure after V2020a, snow was calculated in such a way that it was using snow specific equations to calculate evapotranspiration and soil storage when snow calculations are made, and the no-snow equations outside snow (controlled by snowCalcSwitch(is)). In current code version, these two parts have been separated to their own subroutines (SUEWS_cal_QE_DTS and SUEWS_cal_snow_DTS) which means that soil storages are now updated outside snow season when SnowUse = 1. This causes smd to remain small around the year causing unrealistic evapotranspiration throughout the summer.

I guess the easiest solution is to get rid of the SUEWS_cal_snow_DTS subroutine, and add MeltHeat and SnowCalc to SUEWS_cal_QE_DTS and take back the use of snowCalcSwitch. This would avoid duplication of the calculations and allow summer time evapotranspiration and storage changes to be calculated in a same way when SnowUse = 0 or SnowUse = 1. But you know the code best and what is the most suitable approach.

Also minor issues in snow calculations:


The above is based on eade2e1 (edited by @sunt05 )


subtasks

sunt05 commented 11 months ago

Hi @ljarvi , thanks for documenting the issue - your efforts in looking into this are much appreciated!

Just to leave some more background here about the structural changes:

So my suggestions for now would be:

sunt05 commented 10 months ago

The recent fix by @ljarvi has been added via commit d733780ade613eebabda2c2488057ee703792603 (not tested yet, though).

sunt05 commented 9 months ago

related #234

sunt05 commented 3 months ago

merged into #234 related branch