Skip to content

Commit

Permalink
Additions for Tuzist'ol T'ah WCRP (#578)
Browse files Browse the repository at this point in the history
- Added geographic scope to wcrp_watsheds.csv
- Added wcrp to ranking script
  • Loading branch information
andrewp-CWF authored Oct 17, 2024
1 parent cbbd1f4 commit 5dea4cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion data/wcrp_watersheds.csv
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ LNIC,t,,t,,,t,,
NECL,t,,t,,t,,,
QUES,t,,t,,t,,,
SHUL,t,,t,,t,,,
USHU,t,,t,,t,,,
USHU,t,,t,,t,,,
TAKL,t,,,,t,,,
MIDR,t,,,,t,,,
UTRE,t,,,,t,,,
LTRE,t,,,,t,,,
STUL,t,,,,t,,,
STUR,t,,,,t,,,
7 changes: 6 additions & 1 deletion jobs/auto_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def makeParser():
"eagle",
"bessette",
"bela_atna_necl",
"bowr_ques_carr"
"bowr_ques_carr",
"tuzitol_tah"
],
nargs=1,
type=str,
Expand Down Expand Up @@ -155,6 +156,10 @@ def buildCondition(wcrp):
c."watershed_group_code" IN ('BOWR', 'QUES', 'CARR')
"""
wcrp_schema = "bowr_ques_carr"
elif wcrp == "tuzitol_tah":
condition = """
c."watershed_group_code" IN ('TAKL', 'MIDR', 'UTRE', 'LTRE', 'STUL', 'STUR')
"""
else:
# In all other cases, just the watershed group code
condition = f"""
Expand Down

0 comments on commit 5dea4cb

Please sign in to comment.