Ostrich and HBV-EC

211 views
Skip to first unread message

West Cotter

unread,
Jan 18, 2018, 9:59:26 AM1/18/18
to Ostrich User Group

Hi Shawn,

 

I still have the same problem as we discussed yesterday. It seems that Ostrich cannot move on to either run HBV-EC or run Ostrich algorithem (here is DDS). It is hard to figure it out myself. see an attached file for details.

Kangsheng
Ostrich with HBV-EC.doc

West Cotter

unread,
Jan 22, 2018, 3:09:02 PM1/22/18
to Ostrich User Group

Because I posted a question, so I need to provide an answer. Here is the solution from Shawn to my question. It works with my computer.

 

###############################################################

 

I took a look at the .rar files you sent. There are a couple problems.

 

First, HBVEC64.exe is prompting the user to enter the name of the parameter file. So that's why OSTRICH just sits there and does nothing.

 

You will have to create a batch file that echoes the name of this file and pipes (|) it to HBEC64.exe. However, using echo doesn't work if your inut files have spaces in them. So you'll have to replace all spaces in your input file name with underscores (_).

 

Step 1: Rename "Dec14new HBV-EC Parameter Set.hbt" to be "Dec14new_HBV-EC_Parameter_Set.hbt"

              Rename "Dec14new HBV-EC Parameter Set.hbv" to be "Dec14new_HBV-EC_Parameter_Set.hbv"

              Rename "Dec14new HBV-EC Parameter Set.tpl" to be "Dec14new_HBV-EC_Parameter_Set.tpl"

 

Step 2: Create a text file named HBVEC64.bat. In that file type:

 

       echo Dec14new_HBV-EC_Parameter_Set.hbv | HBVEC64.exe

 

Step 3: save the batch file.

 

Step 4: edit ostIn.txt

           a. replace "ModelExecutable   HBVEC64.exe" with "ModelExecutable   HBVEC64.bat"

           b. replace all occurrences of "Dec14new HBV-EC Parameter Set"

with "Dec14new_HBV-EC_Parameter_Set"

 

Step 5: edit Dec14new_HBV-EC_Parameter_Set.tpl

          a. replace all occurrences of "Dec14new HBV-EC Parameter Set"

with "Dec14new_HBV-EC_Parameter_Set"

 

Step 6: retry the OSTRICH run

 

One more thing: you'll have to add "HBVEC64.exe" to the list of ExtraFiles.

I noticed is that your choice of parameter name matches text in the parameter file. This will cause problems. Parameter names assigned in OSTRICH should be unique. Try using "_RunoffKS_" instead of "RunoffKS". You'll have to make a change to both ostIn.txt (parameters section) and the .tpl file. "RunoffKS     RunoffKS" should be "RunoffKS    _RunoffKS_"



L. Shawn Matott

unread,
Apr 19, 2018, 10:36:04 AM4/19/18
to Ostrich User Group
Hi West,

I'm glad to learn that you were able to resolve the problems.

--- Shawn Matott

Reply all
Reply to author
Forward
0 new messages