HARPgroup / cbp_wsm

1 stars 0 forks source link

Add switch to use hsp2 executable #64

Open rburghol opened 2 years ago

rburghol commented 2 years ago

Tasks/Status

Code

Converting UCI

This is a quick and dirty implementation using sed, since initial testing has only shown a single line being incompatible.

cat ~/working/modeling/hsp2/test_cbp_river/OR1_7700_7980.uci |sed "s/RESUME     0 RUN     1                   UNIT SYSTEM     1/RESUME     0 RUN     1                   UNIT SYSTEM     1/"`

Code: hsp_uci_version

Convert to hsp2 and back to hspf.

hsp_uci_version ~/working/modeling/hsp2/test_cbp/forA51800.uci hsp2
converting /home/rob/working/modeling/hsp2/test_cbp/forA51800.uci to hsp2
head /home/rob/working/modeling/hsp2/test_cbp/forA51800.uci

RUN

GLOBAL
  A51800     for | P5 | p532sova_2 | VA,SUFFOLK
  START       1984/ 1/ 1        END    2019/12/31
  RUN INTERP OUTPUT LEVEL    0    0
  RESUME     0 RUN     1                   UNIT SYSTEM     1
END GLOBAL

FILES

hsp_uci_version ~/working/modeling/hsp2/test_cbp/forA51800.uci hspf
converting /home/rob/working/modeling/hsp2/test_cbp/forA51800.uci to hspf

head /home/rob/working/modeling/hsp2/test_cbp/forA51800.uci
RUN

GLOBAL
  A51800     for | P5 | p532sova_2 | VA,SUFFOLK
  START       1984/ 1/ 1        END    2019/12/31
  RUN INTERP OUTPUT LEVEL    0    0
  RESUME     0 RUN     1 TSSFL    15 WDMSFL   16
END GLOBAL

FILES
rburghol commented 1 year ago

Find the code that sets the GLOBAL lines: fgrep RESUME ./code/src/* -R| grep RUN|grep line

rburghol commented 1 year ago

Problem: Cannot run in old mode (run_river.csh) in p6.