-
Notifications
You must be signed in to change notification settings - Fork 133
In recipe_wflow, use daily ERA5 data from the new cmorizer. #1599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a bug in the old cmorizer. Some cmorized variables were daily accumulations, and averaging them correctly now changes the valid time to 11:30. This breaks the diagnostic, because there we do some calculations between accumulated variables and non-accumulated variables. Therefore, the regrid time preprocessor has been added.
@jeromaerts could you have a look? The valid time of our ERA5 data is either 12:00 (tas) or 11:30 (radiation) UTC. They're combined in the DeBruin computation, so we need them to be at the same time points. Currently, the regrid_time preprocessor changes the time points to midnight (without changing the data). Then you get a 12-hour offset. I see two ways to deal with this:
@SarahAlidoost @sverhoeven @bouweandela @JaroCamphuijsen @nielsdrost |
@Peter9192 Although the difference is negligible, I propose to interpolate all data to the same time points. |
@Peter9192 In that case I think it would be more transparent to just shift the times in the diagnostic for those variables that need it at the point where this is needed, the 12 hour shift seems to add needless complication.
@jeromaerts Note that the daily data is derived from hourly data, it might make more sense to interpolate the hourly data before computing the mean or even change the temporal statistics function so it does a weighted mean instead of only looking at the time points that are contained within a day: time points from 0-23 hours lead to an average time point of 11:30 for instantaneous variables, while it would probably make more sense to include 0 hours of the next day too in this computation, and then give the two time points at 0 hours half the weight of the other time points. However, this could be a considerable amount of work, so we need to decide whether or not this important. |
@Peter9192 @bouweandela @jeromaerts Half-hour time shift is implemented for |
Instead of using the regrid_time preprocessor, now we shift the ERA5 data for instantaneous variables 30 minutes forward. Regrid_time would shift them to midnight, which is a much larger offset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Peter9192 thanks, looks good. Also, could you please update the documentation of wflow here
Co-Authored-By: SarahAlidoost <55081872+SarahAlidoost@users.noreply.github.com>
…ESMValTool into update_wflow_recipe
Good one! Done :-) |
Thanks, and also please address the merge conflict. |
Conflicts: doc/sphinx/source/recipes/recipe_hydrology.rst
@SarahAlidoost Can you please approve the pull request once you're happy with it? |
Done |
@bouweandela Done. |
This PR changes the PCRglob recipe to take advantage of the new era5 cmorizer (#1432)
There was a bug in the old cmorizer. Some cmorized variables were
daily accumulations, and averaging them correctly now changes the valid
time to 11:30. This breaks the diagnostic, because there we do
some calculations between accumulated variables and non-accumulated variables.
Therefore, the regrid time preprocessor has been added.