-
Notifications
You must be signed in to change notification settings - Fork 30
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
[1pt] PR: Update benchmark flows in AHPS domain #1094
Conversation
Since the AHPS benchmark flows seem to be (always?) constant within a flow file and there are other sites that seem to be missing flows in the domain (e.g., chin7), what about applying this to all of the AHPS benchmark flows rather than just the ones in the BAD_SITES list? |
That makes sense to me. |
@mluck Can you add |
Updated so that all NWS and USGS benchmark flows are updated (not just those in BAD_SITES). An input to this is a FIM run (e.g., BED) since it uses the derived levelpaths. |
I have a new error --> |
Previously, it was checking to make sure the input file existed, and if it didn't then it threw the AssertionError. Now, if an input file doesn't exist for a location, updating the flows are skipped for that location. I was able to run this PR on the full set of AHPS benchmarks using fim_4_4_0_0. |
Would it make sense to add a feature to remove flows from feature_ids not on the mainstem levelpath (i.e., tributaries) as part of this PR? |
Yeah, I think we could include removing the tributaries as part of this PR. It'll be sort of a benchmark flows overhaul. |
Wow, that's a pretty major reduction in feature_ids. Did you confirm that these are accurate? |
I need more information about deployment. I think it needs a full scale run to get new data, although I think Ryan might have this already completed. If that was time, I need time to deploy to all enviros prior to merge. Do I have it right that we create a new set of benchmark data we need for Alpha testing? Same.. I will need time to get it deployed. Do you it to be deployed ahead of any particular build? I am worried about too much coming in one build. Can someone clarify deployment for me? |
This will generate an updated set of AHPS (NWS and USGS) benchmark flow files based on the current benchmark flow files. For testing, the outputs are all saved to a single folder, but on the actual (i.e., post-testing) run, do NOT set the output option Then the new benchmark flow files will need replace the old benchmark flow files (and possibly also copy over the original |
Great news! I wasn't expecting to see any increased overprediction as shown in the Action stages. I'm guessing that's coming from the previously-labeled |
Regarding the increased false alarm values (especially for the USGS sites) - it appears there are a couple of factors at play. I think @CarsonPruitt-NOAA is correct that including some of the previous "bad sites" is a key contributor. Here is NMSO1 as an example: Modified flow file is now providing flows for the appropriate reaches (green reaches) and there is a sizeable increase in the false positive scores: |
AHPS data for Alaska are also being processed in #1130. |
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.
Generated new flow files, successfully ran synthesize test case, and produced eval plots using existing 4.4.13.0 FIM outputs.
Locations that need to receive updated benchmark flow files (@RobHanna-NOAA):
- EFS
- Dev1
- ESIP S3
- ras2fim S3
Copy the |
@RobHanna-NOAA This will update both |
Forgot to update. The data has been pushed to all enviros including ras2fim and ras2fim-dev |
Extends flows (i.e., discharge) to stream segments missing from NWS or USGS validation flow files. The levelpath associated with existing flows in the AHPS domain is identified, and any stream segments of the levelpath in the domain missing from the flow file are added to the flow file by assigning the existing flow (this is a constant value regardless of other tributaries including other levelpaths in the domain).
Closes #1089 and closes #1092.
Additions
data/extend_benchmark_flows.py
: Adds missing flows to NWS or USGS benchmark flow files. The original flow file is saved with an appended.bak
.Changes
tools/tools_shared_variables.py
: Removed corrected flow files fromBAD_SITES
list.Testing
Verified that the new flow files contain the added
feature_id
/discharge
values from missing stream segments. Also ransynthesize_test_cases.py
to generate inundation agreement rasters.Example results from sweg1 (HUC8 03130001, major flow category)
Flow file (added segments in red)
Inundation agreement raster (before/after)
Issuer Checklist (For developer use)
You may update this checklist before and/or after creating the PR. If you're unsure about any of them, please ask, we're here to help! These items are what we are going to look for before merging your code.
[_pt] PR: <description>
dev
branch (the default branch), you have a descriptive Feature Branch name using the format:dev-<description-of-change>
(e.g.dev-revise-levee-masking
)dev
branchpre-commit
hooks were run locally/foss_fim/
, run:pytest unit_tests/
)4.x.x.x
Merge Checklist (For Technical Lead use only)