Skip to content

Landuse + CBP flow widget #10

@rburghol

Description

@rburghol

Overall Workflow for Openmi-OM component

  • Generate shell script to loop through all landsegment outflow WDMs for all land uses in a segment, see WDM Formatting below
  • take input from CBP runoff/iflow/gwflow WDM exports (see below WDM Data Formatting)
  • multiply by landuse grid (rows match csv columns)
    • Obtain from VAHydro (TBD - for now, play with
  • sum all runoff
  • produce text file with date and runoff total and gw iflow totals, and total Qout, and Runit
  • make sure file format is compatible with OM runtime timeseries file used in cache mode
  • save file name with OM runfile convention with elementid and runid

WDM Data Formatting
This will be a preliminary step in this evaluation, exporting the data to use in your widget. For the short term, we will just export the data for one land segment, for a river segment of interest

  • Options:
  • Locate CBP runoff/iflow/gwflow WDMs - these WDM files contain "unit area" runoff values
    • Example:
      • river segment: OR2_8130_7900
      • land segment: A51121
      • wdm: p532c-sova/wdm/land/for/p532cal_062211/forA51121.wdm
      • uci: p532c-sova/uci/land/for/p532cal_062211/forA51121.uci
      • DSN: 111 (SURO, ak surface runoff)
  • Export Data from WDM (will produce 3 fils fro each land use IFWO, SURO, AGWO)
    Use quick_wdm_2_txt_hour_2_hour to convert wdms to csvs. Steps are as follows:
    • ssh into deq2.bse.vt.edu
    • cd /opt/model/p53/p532c-sova/tmp/wdm/land/(3 LETTER LAND USE)/p532cal_062211
    • /opt/model/p53/p532c-sova/code/bin/quick_wdm_2_txt_hour_2_hour
    • input wdm name, start year, end year, dsn
      • ex: afoA51121.wdm, 1984, 2005, 111
    • navigate to location on http://deq2.bse.vt.edu/p532c-sova/ in web browser, download -- EDIT: this step is obsolete -- the script can pull the wdms straight from the URL, no need to download files.
  • Reformat WDM files into best format (we may need to experiment, the first option is easy and simple):
    • 1 File per Land Segment, 1 column for each land use with summed IFWO, SURO and AGWO
      • timestamp: the timestamp of the model output
      • afo
      • for
      • ...
    • Try 1 file per landuse and land segment, with 4 columns
      • timestamp: the timestamp of the model output
      • suro: suface runoff -- DSN 111
      • ifwo: interflow -- DSN 211
      • agwo: "active" groundwater -- DSN 411
  • Model Output file: a csv output
    • Name: runlog[runid].[vahydro om elementid].log -- example: runlog2.256687.log
    • Columns (at minimum, you may include more than this, and we may later REQUIRE more than this)
      • timestamp
      • Qout
      • area_sqmi

image

Example Land Use Table
This is a Phase 5.3 table example, so some names may have changed in 5.3.2.

luname 1984 1987 1992 1997 2002 2005
afo 0.91 0.86 0.86 0.79 0.66 0.66
alf 9.83 10.27 11.29 9.13 11.91 7.83
bar 0.80 0.80 0.81 0.84 0.87 0.87
css 0.00 0.00 0.00 0.00 0.00 0.00
ext 25.40 25.40 25.40 25.40 25.40 25.40
for 1187.98 1190.02 1184.11 1197.78 1203.24 1216.05
hom 1.26 1.17 1.72 1.56 2.06 1.90
hvf 12.00 12.02 11.96 12.10 12.15 12.28
hwm 8.79 6.85 5.94 2.28 3.84 3.86
hyo 8.61 11.09 7.19 9.54 7.62 6.91
hyw 31.24 33.18 33.08 36.18 38.81 39.90
imh 12.30 12.30 12.30 12.80 13.20 13.30
iml 28.80 28.80 28.80 28.80 28.80 28.80
lwm 18.29 16.39 17.83 14.26 11.32 11.39
nal 0.00 0.00 0.00 0.00 0.00 0.00
nhi 0.00 0.00 0.00 0.00 0.00 0.00
nho 0.00 0.00 0.00 0.00 0.00 0.00
nhy 0.00 0.00 0.00 0.00 0.00 0.00
nlo 0.00 0.00 0.00 0.00 0.00 0.00
npa 0.00 0.00 0.00 0.00 0.00 0.00
pas 130.87 128.08 135.54 125.50 117.21 108.50
puh 11.40 11.40 11.40 11.80 12.10 12.00
pul 144.00 144.00 144.00 144.00 144.00 144.00
trp 6.89 6.74 7.13 6.61 6.17 5.71
urs 0.00 0.00 0.00 0.01 0.00 0.00
wat 4.00 4.00 4.00 4.00 4.00 4.00

Table 2: Sam[ple export from http://deq2.bse.vt.edu/p532c-sova/wdm/land/p532cal_062211_A51121_eos_all.csv

 ix Year Month Day Hour afo_0111 afo_0211 afo_0411 alf_0111 alf_0211 alf_0411 ccn_0111 ccn_0211 ccn_0411 cex_0111 cex_0211 cex_0411 cfo_0111 cfo_0211
1 1984 1 1 1 0.000171 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 0.000171 0
2 1984 1 1 2 0.0001 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 0.0001 0
3 1984 1 1 3 6.61E-05 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 6.61E-05 0
4 1984 1 1 4 4.67E-05 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 4.67E-05 0
5 1984 1 1 5 3.47E-05 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 3.47E-05 0
6 1984 1 1 6 2.68E-05 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 2.68E-05 0
7 1984 1 1 7 0.000179 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 0.000179 0
8 1984 1 1 8 0 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 0 0
9 1984 1 1 9 0 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 0 0
10 1984 1 1 10 0 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 0 0
11 1984 1 1 11 0 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 0 0
12 1984 1 1 12 0 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 0 0
13 1984 1 1 13 0 0 0 0 0 1.98E-05 0 0 1.98E-05 0 0 1.98E-05 0 0

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions