-
Notifications
You must be signed in to change notification settings - Fork 33
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
CDAT Migration Phase 2: Refactor streamflow
set
#837
Conversation
@tomvothecoder I just saw that you are starting a PR for streamflow analysis. Great progress! I think the logic of the original code base can perhaps be simplified. Also there was an issue with this set, even when model vs model case, the set needs additional data from observation data. The issue is documented here. #588 I think it might be a good opportunity to re-write this set with the issue also resolved. But I think i will let you to decide how best to approach this... |
- Extract `_get_gauges()` function - Rename `setup_test()` to `_get_test_data_and_area_upstream()` - Renme `setup_ref()` to `_get_ref_data()` - Extract `_get_var_data()` function - Start refactoring `_generate_export()` function
- Add docstrings and type annotations - Reorder function arguments - Remove unnecessary exception raises
Dev plots: https://portal.nersc.gov/project/e3sm/cdat-migration-fy24/665-streamflow/viewer/streamflow/index.html Regression testing result -- all three plots are identical |
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.
Final self-review
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.
Final final self-review
Description
streamflow
set #665streamflow
driver #839TODO
08/22/24
run_diag()
setup_test()
-- deleted, conditional for this case is never Truedebugging_case_setup_test()
get_e3sm_flow()
get_area_upstream()
get_test_array()
setup_ref()
generate_export()
get_drainage_area()
get_seasonality()
streamflow_plot_seasonality.py
-- in progressplot_seasonality_map()
plot_panel_seasonality_map()
streamflow_plot_map.py
plot_annual_map()
setup_annual_map()
plot_gauges_annual_map()
streamflow_plot_scatter.py
plot_annual_scatter()
Checklist
If applicable: