add Manning's n calibration and SRC comparison plot scripts#4
Open
ahaider006 wants to merge 3 commits into
Open
add Manning's n calibration and SRC comparison plot scripts#4ahaider006 wants to merge 3 commits into
ahaider006 wants to merge 3 commits into
Conversation
calibrate_n_recurrence.py: back-calculates piecewise n at 6 recurrence- interval zones (2/5/10/25/50/50+yr) using NWM recurrence flows and USGS rating curves. Calibrates only branches with a direct 1:1 USGS gauge mapping (non-trunk, RC data available); ungauged branches are left unchanged for future ML regionalization. plot_src_calibration.py: publication-ready comparison plots showing original SRC vs calibrated SRC vs USGS RC, with piecewise Manning's n as a step function on the secondary top axis. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Scripts renamed/added with s00-s08 prefix to reflect pipeline order: s00 study boundary definition s01 DEM download (3DEP) s02 Stage 1 - input data / hydrofabric (single HUC + all HUCs) s03 Stage 2 - HAND preprocessing (single HUC + all HUCs) s04 USGS gage crosswalk (custom) s05 Manning's n calibration + revert utility (custom) s06 Stage 3 - streamflow (single HUC + all HUCs) s07 Stage 4 - SRC calibration (single HUC + all HUCs) s08 Stage 5 - FIM generation (single HUC + all HUCs) Plot scripts added with plot_ prefix (plot_srcs, plot_src_calibration_inset, plot_workflow_chart). open_parquet.py excluded (debug snippet only). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Member
|
Thank you @ahaider006 for this. I will see how I can integrate it as a generic functionality! I will keep you posted. |
…semble plot scripts - Add root .gitignore (excludes cache, __pycache__, data files, egg-info) - Add s04 USGS gauge crosswalk, s05 Manning n calibration scripts - Add plot_calibration_analysis.py (11-plot calibration diagnostics suite) - Add plot_src_ensemble.py (clean SRC ensemble plots, no percentile bands) - Add plot_calibration_slides.py, open_parquet.py utility scripts - Update s01-s03, s06-s08 pipeline scripts with sequential numbering - Add docs/study_boundary geopackage Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
calibrate_n_recurrence.py: back-calculates piecewise n at 6 recurrence- interval zones (2/5/10/25/50/50+yr) using NWM recurrence flows and USGS rating curves. Calibrates only branches with a direct 1:1 USGS gauge mapping (non-trunk, RC data available); ungauged branches are left unchanged for future ML regionalization.
plot_src_calibration.py: publication-ready comparison plots showing original SRC vs calibrated SRC vs USGS RC, with piecewise Manning's n as a step function on the secondary top axis.