-
Notifications
You must be signed in to change notification settings - Fork 24
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
Some clean-up for key_metrics #122
Conversation
1. Standardize the way dates are passed (glacier notebook pulls year out of full date string to match atmosphere) 2. Add option for baseline comparison to atmosphere NMSE 3. Update config.yml to use run 104 (keeping 092 as baseline) 4. Clean up time series generation (allow empty list to specify "don't convert any files to time series for this component")
There's not much change in the NMSE of surface pressure between 92 and 104: The surface mass balance is very different, likely due to (a) only averaging over 20 years instead of 40, and (b) only using 25 years for the spin-up instead of 60: The x-axis of this plot could be extended -- there's 40 years of data from 092 but only the last 20 years are shown |
I'm also tempted to update the notebooks to hide input cells (as noted in #60 (comment)) |
1. Only set base_last_year if a baseline case has been provided 2. Update time series plots to account for differences between climo_nyears and base_climo_nyears
Also fixed a bug in the NMSE plotting
For key_metrics examples, the hide-input tucks the python code away behind a drop-down menu. There is one cell in the glacier notebook that uses hide-cell instead of hide-input because the output isn't important (printing a message about the number of years used to compute climatology)
Still to-do:
|
Updated the timeseries block of config.yml to include both case_name and base_case_name; this uncovered a few issues in constructing the arguments for the call to create_time_series()
fixed in c0ab02a |
@mnlevy1981 is this ready for review? |
Yup, I think this is ready to go. Latest output is in #122 (comment) (except for the time series plot, which is updated in #122 (comment)) |
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.
Thanks for doing all of this clean up! The method for passing dates is looking much clearer, and the capability of adding an empty list is helpful. The plot is looking a lot better, too! I'm going to test this out locally 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.
Looks good to me! Local testing worked smoothly. All tasks are completed despite the tasklist checker failing... I think this is because the last checkbox was checked off after the last commit was made.
All Submissions:
pre-commit
check)?New Feature Submissions:
Changes to Core Features: