I made more commits then needed (first time updating code)...so you may want to just add the code that I've updated in the commit...Notice, the if/else statements are the same - crucial to allow for daily mean shortwave to be disaggregated correctly using passthrough, so those lines of code could be shortened.
This fix allows for daily mean shortwave computed from entire day (86400.0 seconds) to be used as input for passthrough and result in correct output...Current master of MetSim does not computes larger than realistic fluctuations in hourly shortwave for such a case.
I made more commits then needed (first time updating code)...so you may want to just add the code that I've updated in the commit...Notice, the if/else statements are the same - crucial to allow for daily mean shortwave to be disaggregated correctly using passthrough, so those lines of code could be shortened.
https://github.com/UW-Hydro/MetSim/commit/2560937baf1c2d9dec665c0827c799efe5dc4a1a
This fix allows for daily mean shortwave computed from entire day (86400.0 seconds) to be used as input for passthrough and result in correct output...Current master of MetSim does not computes larger than realistic fluctuations in hourly shortwave for such a case.