Skip to content

Commit

Permalink
adding command line for dsm2 analyze
Browse files Browse the repository at this point in the history
  • Loading branch information
dwr-psandhu committed Feb 7, 2025
1 parent 0711e2f commit 3c51824
Show file tree
Hide file tree
Showing 22 changed files with 1,099 additions and 1,482 deletions.
29 changes: 29 additions & 0 deletions examples/calsim_dsm2_analysis/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
output_locations: "info/DSM2_bnd_loc.csv"
scenarios:
- name: "1ex_2020c"
fpath: "scenarios/1ex_2020c.dss"
- name: "9b_v2_2020"
fpath: "scenarios/9b_v2_2020.dss"
variable: "FLOW"
interval: "1MON"
calsim_file: "scenarios/calsim.dss"
period:
- "1921-01-01"
- "2020-09-30"
plots:
- type: "plot_step_w_variable_station_filters"
options:
yaxis_name: "Monthly Mean Flow (cfs)"
title: "Flow Monthly Mean Timelines"
- type: "plot_bar_monthly_w_controls"
options:
yaxis_name: "Monthly Mean Flow (cfs)"
title: "Flow Monthly Barcharts of Monthly Mean"
- type: "plot_exceedance_w_variable_station_filters"
options:
yaxis_name: "Monthly Mean Flow (cfs)"
title: "Flow Monthly Mean Exceedances"
- type: "plot_box_w_variable_station_filters"
options:
xaxis_name: "Monthly Mean Flow (cfs)"
title: "Flow Monthly Mean Box-Whiskers"
13 changes: 13 additions & 0 deletions examples/calsim_dsm2_analysis/info/D1641_AG_export.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
location,wyt,month,date,val
# Tracy Export (DMC-1)(monthly avg of daily EC)
CHDMC006,W,10,1,1
CHDMC006,AN,10,1,1
CHDMC006,BN,10,1,1
CHDMC006,D,10,1,1
CHDMC006,C,10,1,1
# Banks Export (C-9)(monthly avg of daily EC)
CHSWP003,W,10,1,1
CHSWP003,AN,10,1,1
CHSWP003,BN,10,1,1
CHSWP003,D,10,1,1
CHSWP003,C,10,1,1
67 changes: 67 additions & 0 deletions examples/calsim_dsm2_analysis/info/D1641_AG_sDelta.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
location,wyt,month,date,val
# transition month Apr: start checking on Apr.30
# transition month Sep: start checking on Oct.1
# San Joaquin River at Vernalis (C-10)(30-day running avg of daily EC)
RSAN112,W,10,1,1
RSAN112,W,4,30,0.7
RSAN112,W,9,1,1
RSAN112,AN,10,1,1
RSAN112,AN,4,30,0.7
RSAN112,AN,9,1,1
RSAN112,BN,10,1,1
RSAN112,BN,4,30,0.7
RSAN112,BN,9,1,1
RSAN112,D,10,1,1
RSAN112,D,4,30,0.7
RSAN112,D,9,1,1
RSAN112,C,10,1,1
RSAN112,C,4,30,0.7
RSAN112,C,9,1,1
# San Joaquin River at Brandt Bridge (C-6)(30-day running avg of daily EC)
RSAN072,W,10,1,1
RSAN072,W,4,30,0.7
RSAN072,W,9,1,1
RSAN072,AN,10,1,1
RSAN072,AN,4,30,0.7
RSAN072,AN,9,1,1
RSAN072,BN,10,1,1
RSAN072,BN,4,30,0.7
RSAN072,BN,9,1,1
RSAN072,D,10,1,1
RSAN072,D,4,30,0.7
RSAN072,D,9,1,1
RSAN072,C,10,1,1
RSAN072,C,4,30,0.7
RSAN072,C,9,1,1
# Old River near Middle River (C-8)(30-day running avg of daily EC)
OLD_MID,W,10,1,1
OLD_MID,W,4,30,0.7
OLD_MID,W,9,1,1
OLD_MID,AN,10,1,1
OLD_MID,AN,4,30,0.7
OLD_MID,AN,9,1,1
OLD_MID,BN,10,1,1
OLD_MID,BN,4,30,0.7
OLD_MID,BN,9,1,1
OLD_MID,D,10,1,1
OLD_MID,D,4,30,0.7
OLD_MID,D,9,1,1
OLD_MID,C,10,1,1
OLD_MID,C,4,30,0.7
OLD_MID,C,9,1,1
# Old River at Tracy (P-12)(30-day running avg of daily EC)
ROLD059,W,10,1,1
ROLD059,W,4,30,0.7
ROLD059,W,9,1,1
ROLD059,AN,10,1,1
ROLD059,AN,4,30,0.7
ROLD059,AN,9,1,1
ROLD059,BN,10,1,1
ROLD059,BN,4,30,0.7
ROLD059,BN,9,1,1
ROLD059,D,10,1,1
ROLD059,D,4,30,0.7
ROLD059,D,9,1,1
ROLD059,C,10,1,1
ROLD059,C,4,30,0.7
ROLD059,C,9,1,1
71 changes: 71 additions & 0 deletions examples/calsim_dsm2_analysis/info/D1641_AG_wiDelta.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
location,wyt,month,date,val
# Sacramento River at Emmaton (D-22)(14-day running avg of daily EC)
RSAC092,W,10,1,0
RSAC092,W,4,1,0.45
RSAC092,W,8,16,0
RSAC092,AN,10,1,0
RSAC092,AN,4,1,0.45
RSAC092,AN,7,2,0.63
RSAC092,AN,8,16,0
RSAC092,BN,10,1,0
RSAC092,BN,4,1,0.45
RSAC092,BN,6,21,1.14
RSAC092,BN,8,16,0
RSAC092,D,10,1,0
RSAC092,D,4,1,0.45
RSAC092,D,6,16,1.67
RSAC092,D,8,16,0
RSAC092,C,10,1,0
RSAC092,C,4,1,2.78
RSAC092,C,8,16,0
# San Joaquin River at Jersey Point (D-15)(14-day running avg of daily EC)
RSAN018,W,10,1,0
RSAN018,W,4,1,0.45
RSAN018,W,8,16,0
RSAN018,AN,10,1,0
RSAN018,AN,4,1,0.45
RSAN018,AN,8,16,0
RSAN018,BN,10,1,0
RSAN018,BN,4,1,0.45
RSAN018,BN,6,21,0.74
RSAN018,BN,8,16,0
RSAN018,D,10,1,0
RSAN018,D,4,1,0.45
RSAN018,D,6,16,1.35
RSAN018,D,8,16,0
RSAN018,C,10,1,0
RSAN018,C,4,1,2.2
RSAN018,C,8,16,0
# South Fork Mokelumne River at Terminous (C-13)(14-day running avg of daily EC)
RSMKL008,W,10,1,0
RSMKL008,W,4,1,0.45
RSMKL008,W,8,16,0
RSMKL008,AN,10,1,0
RSMKL008,AN,4,1,0.45
RSMKL008,AN,8,16,0
RSMKL008,BN,10,1,0
RSMKL008,BN,4,1,0.45
RSMKL008,BN,8,16,0
RSMKL008,D,10,1,0
RSMKL008,D,4,1,0.45
RSMKL008,D,8,16,0
RSMKL008,C,10,1,0
RSMKL008,C,4,1,0.54
RSMKL008,C,8,16,0
# San Joaquin River at San Andreas Landing (C-4)(14-day running avg of daily EC)
RSAN032,W,10,1,0
RSAN032,W,4,1,0.45
RSAN032,W,8,16,0
RSAN032,AN,10,1,0
RSAN032,AN,4,1,0.45
RSAN032,AN,8,16,0
RSAN032,BN,10,1,0
RSAN032,BN,4,1,0.45
RSAN032,BN,8,16,0
RSAN032,D,10,1,0
RSAN032,D,4,1,0.45
RSAN032,D,6,26,0.58
RSAN032,D,8,16,0
RSAN032,C,10,1,0
RSAN032,C,4,1,0.87
RSAN032,C,8,16,0
29 changes: 29 additions & 0 deletions examples/calsim_dsm2_analysis/info/D1641_FWS_SJR.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
location,wyt,month,date,val
# San Joaquin River at Jersey Point (D-15)(14-day running avg of daily EC)
RSAN018,W,10,1,0
RSAN018,W,4,1,0.44
RSAN018,W,6,1,0
RSAN018,AN,10,1,0
RSAN018,AN,4,1,0.44
RSAN018,AN,6,1,0
RSAN018,BN,10,1,0
RSAN018,BN,4,1,0.44
RSAN018,BN,6,1,0
RSAN018,D,10,1,0
RSAN018,D,4,1,0.44
RSAN018,D,6,1,0
RSAN018,C,10,1,0
# San Joaquin River at Prisoners Point (D-29)(14-day running avg of daily EC)
RSAN037,W,10,1,0
RSAN037,W,4,1,0.44
RSAN037,W,6,1,0
RSAN037,AN,10,1,0
RSAN037,AN,4,1,0.44
RSAN037,AN,6,1,0
RSAN037,BN,10,1,0
RSAN037,BN,4,1,0.44
RSAN037,BN,6,1,0
RSAN037,D,10,1,0
RSAN037,D,4,1,0.44
RSAN037,D,6,1,0
RSAN037,C,10,1,0
167 changes: 167 additions & 0 deletions examples/calsim_dsm2_analysis/info/D1641_FWS_Suisun.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
location,wyt,month,date,val
# monthly average of daily-max EC (or average of 2 high-tides)
# Sacramento at Collinsville (C-2)
RSAC081,W,10,1,19
RSAC081,W,11,1,15.5
RSAC081,W,1,1,12.5
RSAC081,W,2,1,8
RSAC081,W,4,1,11
RSAC081,W,6,1,0
RSAC081,AN,10,1,19
RSAC081,AN,11,1,15.5
RSAC081,AN,1,1,12.5
RSAC081,AN,2,1,8
RSAC081,AN,4,1,11
RSAC081,AN,6,1,0
RSAC081,BN,10,1,19
RSAC081,BN,11,1,15.5
RSAC081,BN,1,1,12.5
RSAC081,BN,2,1,8
RSAC081,BN,4,1,11
RSAC081,BN,6,1,0
RSAC081,D,10,1,19
RSAC081,D,11,1,15.5
RSAC081,D,1,1,12.5
RSAC081,D,2,1,8
RSAC081,D,4,1,11
RSAC081,D,6,1,0
RSAC081,C,10,1,19
RSAC081,C,11,1,15.5
RSAC081,C,1,1,12.5
RSAC081,C,2,1,8
RSAC081,C,4,1,11
RSAC081,C,6,1,0
# Montezuma Slough at National Steel (S-64)
SLMZU025,W,10,1,19
SLMZU025,W,11,1,15.5
SLMZU025,W,1,1,12.5
SLMZU025,W,2,1,8
SLMZU025,W,4,1,11
SLMZU025,W,6,1,0
SLMZU025,AN,10,1,19
SLMZU025,AN,11,1,15.5
SLMZU025,AN,1,1,12.5
SLMZU025,AN,2,1,8
SLMZU025,AN,4,1,11
SLMZU025,AN,6,1,0
SLMZU025,BN,10,1,19
SLMZU025,BN,11,1,15.5
SLMZU025,BN,1,1,12.5
SLMZU025,BN,2,1,8
SLMZU025,BN,4,1,11
SLMZU025,BN,6,1,0
SLMZU025,D,10,1,19
SLMZU025,D,11,1,15.5
SLMZU025,D,1,1,12.5
SLMZU025,D,2,1,8
SLMZU025,D,4,1,11
SLMZU025,D,6,1,0
SLMZU025,C,10,1,19
SLMZU025,C,11,1,15.5
SLMZU025,C,1,1,12.5
SLMZU025,C,2,1,8
SLMZU025,C,4,1,11
SLMZU025,C,6,1,0
# Montezuma Slough near Beldon Landing (S-49)
SLMZU011,W,10,1,19
SLMZU011,W,11,1,15.5
SLMZU011,W,1,1,12.5
SLMZU011,W,2,1,8
SLMZU011,W,4,1,11
SLMZU011,W,6,1,0
SLMZU011,AN,10,1,19
SLMZU011,AN,11,1,15.5
SLMZU011,AN,1,1,12.5
SLMZU011,AN,2,1,8
SLMZU011,AN,4,1,11
SLMZU011,AN,6,1,0
SLMZU011,BN,10,1,19
SLMZU011,BN,11,1,15.5
SLMZU011,BN,1,1,12.5
SLMZU011,BN,2,1,8
SLMZU011,BN,4,1,11
SLMZU011,BN,6,1,0
SLMZU011,D,10,1,19
SLMZU011,D,11,1,15.5
SLMZU011,D,1,1,12.5
SLMZU011,D,2,1,8
SLMZU011,D,4,1,11
SLMZU011,D,6,1,0
SLMZU011,C,10,1,19
SLMZU011,C,11,1,15.5
SLMZU011,C,1,1,12.5
SLMZU011,C,2,1,8
SLMZU011,C,4,1,11
SLMZU011,C,6,1,0
# Chadbourne Slough at Sunrise Duck Club (S21)
SLCBN002,W,10,1,19
SLCBN002,W,11,1,16.5
SLCBN002,W,12,1,15.5
SLCBN002,W,1,1,12.5
SLCBN002,W,2,1,8
SLCBN002,W,4,1,11
SLCBN002,W,6,1,0
SLCBN002,AN,10,1,19
SLCBN002,AN,11,1,16.5
SLCBN002,AN,12,1,15.5
SLCBN002,AN,1,1,12.5
SLCBN002,AN,2,1,8
SLCBN002,AN,4,1,11
SLCBN002,AN,6,1,0
SLCBN002,BN,10,1,19
SLCBN002,BN,11,1,16.5
SLCBN002,BN,12,1,15.5
SLCBN002,BN,1,1,12.5
SLCBN002,BN,2,1,8
SLCBN002,BN,4,1,11
SLCBN002,BN,6,1,0
SLCBN002,D,10,1,19
SLCBN002,D,11,1,16.5
SLCBN002,D,12,1,15.5
SLCBN002,D,1,1,12.5
SLCBN002,D,2,1,8
SLCBN002,D,4,1,11
SLCBN002,D,6,1,0
SLCBN002,C,10,1,19
SLCBN002,C,11,1,16.5
SLCBN002,C,12,1,15.5
SLCBN002,C,1,1,12.5
SLCBN002,C,2,1,8
SLCBN002,C,4,1,11
SLCBN002,C,6,1,0
# Volanti Slough (S-42)
SLSUS012,W,10,1,19
SLSUS012,W,11,1,16.5
SLSUS012,W,12,1,15.5
SLSUS012,W,1,1,12.5
SLSUS012,W,2,1,8
SLSUS012,W,4,1,11
SLSUS012,W,6,1,0
SLSUS012,AN,10,1,19
SLSUS012,AN,11,1,16.5
SLSUS012,AN,12,1,15.5
SLSUS012,AN,1,1,12.5
SLSUS012,AN,2,1,8
SLSUS012,AN,4,1,11
SLSUS012,AN,6,1,0
SLSUS012,BN,10,1,19
SLSUS012,BN,11,1,16.5
SLSUS012,BN,12,1,15.5
SLSUS012,BN,1,1,12.5
SLSUS012,BN,2,1,8
SLSUS012,BN,4,1,11
SLSUS012,BN,6,1,0
SLSUS012,D,10,1,19
SLSUS012,D,11,1,16.5
SLSUS012,D,12,1,15.5
SLSUS012,D,1,1,12.5
SLSUS012,D,2,1,8
SLSUS012,D,4,1,11
SLSUS012,D,6,1,0
SLSUS012,C,10,1,19
SLSUS012,C,11,1,16.5
SLSUS012,C,12,1,15.5
SLSUS012,C,1,1,12.5
SLSUS012,C,2,1,8
SLSUS012,C,4,1,11
SLSUS012,C,6,1,0
8 changes: 8 additions & 0 deletions examples/calsim_dsm2_analysis/info/D1641_MI_150.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
location,wyt,month,date,val
# Contra Costa Canal (C-5)(daily Chloride)
ROLD024,W,1,1,240
ROLD024,AN,1,1,190
ROLD024,BN,1,1,175
ROLD024,D,1,1,165
ROLD024,C,1,1,155

Loading

0 comments on commit 3c51824

Please sign in to comment.