Open Ivanderkelen opened 4 months ago
In addition, in ERA5 (and models) upward sensible and latent heat fluxes are defined negative, while in CORDEX defenition is positive. The bugfix should also account for this.
see also #129
Issue is most likely due to cclm units. The cclm units were changed in the attributes without actually being recalculated. A warning should be included if units are changed but no calculation was carried out.
Thanks for this Fien To turn on the warnings, best to check this is not on in the notebook: and if so, delete these lines.
# Turn off all warnings
warnings.filterwarnings('ignore')
tagging @kobebryant432 in case he would check this too
I have been able to solve the issue related to precipitaiton. It appears to be two-fold:
--> also issue with CCLM postprocessing of precipitation as only daily mean and not daily totals are returned
Great Fien! In have you been able to push these changes yet? If so in which branch? I have seen that there are some other input_conversion issue - so I am writing some tests to automatically catch these in the future - see #139
The changes have been added to the cclm_inputconvertor
@Ivanderkelen and @fserras299 I am correct that precipitation is no longer an issue here and that we are currently still investigating the other variables (energy fluxes, ...) in #146
If this is the case than I will close #129
Yes, I think this is correct.
Describe the bug For accumulated variables (hfls, pr) the ERA5 and ERA5 unit conversion is not working as it should. This could be due to (i) the postprocessing of hourly to daily variables done outside Valenspy or (ii) the way the accumulated variables are calculated in ERA5 itself (eg J/m2 fir hourly values are not corresponding to the energy in one hour, but to the energy over one day).
By loading the hourly values and dividing by 86400 (secs per day), values in the correct range are obtained. This needs to be double changed and fixed in the inputconvertor.
https://confluence.ecmwf.int/display/CKB/ERA5-Land%3A+data+documentation, search for Wm-2