-
Notifications
You must be signed in to change notification settings - Fork 6
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
Handle prhmax in cmorization #37
Comments
seems It has been decided to delete this variable form the monthly frequency table, only left in the day table. |
What is the current behaviour for HCLIM2CMOR/src/CMORlight/tools.py Lines 1344 to 1346 in b41f316
(Debug info here) HCLIM2CMOR/src/CMORlight/tools.py Lines 1363 to 1366 in 72c7a3e
and write? HCLIM2CMOR/src/CMORlight/tools.py Line 1699 in 72c7a3e
And does the prhmax cmorization enter this if statement here? HCLIM2CMOR/src/CMORlight/tools.py Lines 1439 to 1441 in 72c7a3e
This will not work I guess. |
I have removed the monthly |
Here's an example log. I only added the last few lines of the stack trace, and the line number might be a little bit off since it was run a few commits ago:
So it seems it goes into the |
Thanks! I'll have a look at it tomorrow. |
Alternatively, we could make a copy of hourly |
and our final solution ? :-) |
I didn't have time to implement and test it. It's a nasty variable. I'd think the easiest and most flexible solution is to add another if statement here HCLIM2CMOR/src/CMORlight/tools.py Lines 1439 to 1441 in 72c7a3e
e.g. if res == 'day' and 'maximum over hours' in cm_type: cmd = "cdo -L -f %s -s daymax -seltimestep,%s %s %s %s" %(config.get_config_value('settings','cdo_nctype'),tsteps,cmd_mul,in_file,ftmp_name) else
This should work both if
@ljoakim can you implement and test this? If you don't have the time, I can give it a try. |
I'll look into it tomorrow and test it. |
prhmax
has a particular type ofcell_method
which is currently not handled by cmorization intools.py
(in code from here and downwards). This needs to be fixed, see discussion here: WCRP-CORDEX/discuss#7.The text was updated successfully, but these errors were encountered: