-
Notifications
You must be signed in to change notification settings - Fork 37
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
636 pjg climmetricsbymonth #751
Conversation
Merge branch '636_pjg_climmetricsbymonth' of https://github.com/PCMDI/pcmdi_metrics into 636_pjg_climmetricsbymonth
@lee1043 @acordonez still getting errors after fixing flake8 issues. This is a simple change to the mean climate metrics to enable us to include climatological annual cycle precip (and other) results. Wondering if this represents another breakdown with cdms. Any thoughts??? |
@gleckler1 I found following error log from circle ci which are about flake8. I don't think there is cdms breakdown here. Click to show log messages
|
@gleckler1 I made fix for aforementioned flake8 issues. |
@lee1043 more flake8? I thought I got them all. Fingers crossed JL fixes do the trick. Thanks! |
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.
I gave this a test with the demo data and looked at the result in the unified dashboard. Since the calendar month stats are in a sub-list, they can't be viewed with the other seasonal metrics.
Would something like this work instead? Or do these stats need to be in their own list?
"bias_xy": {
"ann": 1.163,
"djf": 1.727,
"mam": 1.408,
"jja": 0.848,
"son": 0.727,
"Jan": 1.768,
"Feb": 1.278,
"Mar": 1.297,
...
]
Edited to add: Since they are in a sub-list, the CMEC JSON conversion currently isn't able to catch these stats to convert them from strings to float in the CMEC compliant JSON.
@acordonez @lee1043 AO that suggestion makes sense except these results are typically used as a 12-month time series (e.g., https://pcmdi.llnl.gov/pmp-preliminary-results/interactive_plot/precip/seasonal_cycle/pr_annual.cycle_all.loc.mod_interactive.html), so its convenient to read them in as a python list. Otherwise additional coding would be needed for reading in or visualizing. Also, I don't expect we would be using these monthly values on the dashboard. For that we'd likely stick with seasonal or annual means. But certainly open to compromises that work for both purposes if we can think of a solution. |
@gleckler1 @lee1043 That makes sense for needing the list. I added a couple lines to the base write_cmec class to also convert the list contents to floats in the CMEC formatted version - shall I push that to this branch? |
@acordonez @lee1043 AO I would hold off on making changes to the write_cmec class on this branch right now because this branch continues to fail CI for reasons we don't understand. Hopefully it is a silly PG mistake, not a problem with cdat on conda. PG is about to attempt a simple test (pull request with no real changes to master) to see if it passes or fails... finger crossed! |
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.
Approving now that we've isolated the test failures.
@acordonez @lee1043 Just checking for the last time, we've concluded its ok to merge this to master, right? |
@gleckler1 yes we did. I am merging it. |
No description provided.