-
Notifications
You must be signed in to change notification settings - Fork 53
Update start and end dates from climatology data set; issue a warning #157
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
|
@milenaveneziani, this is an implementation of your suggested fix to #149 for the MOC. |
TestingI tested this with the QU240 test case. As expected, the file names for the MOC cache files and plots now end at year 2 even when I have the end year set to 50 in the config file. |
|
great, @xylar, thanks. |
|
Yes, that's a very good idea. I implemented that and am testing it now. |
|
Seems to behave as expected: |
|
Note: the warning will only occur once, since the start and end years have been updated in |
|
very nice, thanks @xylar! |
After reading in a data set, set the real start and end years based on the data read in.
A new function is added to climatology to update the climatology start and end years to match those of a data set. If the start and/or end year are changed, a warning is issued and the config options are updated.
|
Thanks @milenaveneziani. I just rebased and fixed the conflict. |
|
@xylar: I have tested this on edison with a newer beta1 run for which I only had 25 years of data available. I requested climos for year 1-60, and everything worked out as expected. |
|
Thanks, @milenaveneziani. I hadn't noticed the weird end of the warning message. The fix might be just to have a very long line for that warning... |
|
Basically, I think this is the expected behavior. I'm a little surprised python doesn't print all lines from |
|
yeah, I noticed that too. I think if you don't have carriage returns in the line, then it will print the whole line. |
Add a function to update the
startYearandendYearconfig options based on the start and end of a climatology data set. A warning is issued if the start and end years are different from those requested by the user.All analysis tasks for computing climatologies now use this function to make sure plot titles and file names use the start and end years of the data set (as opposed to those requested in the config file). The MOC cache file name now uses the actual start and end years as well.