-
Notifications
You must be signed in to change notification settings - Fork 34
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
Update global_mean_timeseries.py #352
Update global_mean_timeseries.py #352
Conversation
Change order of checking zm dims Also update LENS2 file grab since the files in the directory are not named exactly the same so add wildcard for searching
I think this line: We can either fix zm_validate_dims (return (None, None), for example), or we might just change this to: valdims = pf.zm_validate_dims(ref_ts_da)
if valdims is not None:
has_lat_ref, has_lev_ref = valdims
else:
has_lat_ref, has_lev_ref = False, False # I *think* this is what we'd expect here ... double check |
I think your'e right, if there is a scenario where there is not a Either way, we should also probably put a check for when |
@justin-richling If other scripts that are calling Anyways, that's my two cents. Hope that helps! |
This checks first if test case is later then the year 1800 and if either the baseline case is as well or if it is a run against obs. If it is against obs, grab the LENS2 data as well
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.
All test cases work as intended
Currently the time series plot is crashing when trying to check dimensions of the zm data. This is because the data was averaged before checking dims with
pf.zm_validate_dims
, which will fail because the 'lat' dim will no longer be present after spatial average. This PR will change order of checking zm dims first then it will average the data if it passes the dim check.Also update LENS2 file grab since the files in the directory are not named exactly the same so add wildcard for searching.