HARPgroup / HSPsquared

Hydrologic Simulation Program Python (HSPsquared)
GNU Affero General Public License v3.0
1 stars 0 forks source link

Scoping Code Tasks: #12

Closed rburghol closed 2 years ago

rburghol commented 2 years ago

Scoping code goal: create the functions to call and execute a single, test withdrawal

Notes From Scoping Session 8/26/22:

@rburghol


rburghol commented 2 years ago

Hey @gcambridge and @jdkleiner -- I just had a breakthrough. Got the hsp2 on deq1 functioning like the one on hsp2. And, here is the output that the model tells me (someone put a little message in):

I made it this far!
I made it this far!
I made it this far!
I made it this far!
I made it this far!
I made it this far!
2022-08-09 20:53:24.03         ADCALC
2022-08-09 20:53:25.90   Done; Run time is about 00:18.7 (mm:ss)
jdkleiner commented 2 years ago

Hey @gcambridge and @jdkleiner -- I just had a breakthrough. Got the hsp2 on deq1 functioning like the one on hsp2. And, here is the output that the model tells me (someone put a little message in):

I made it this far!
I made it this far!
I made it this far!
I made it this far!
I made it this far!
I made it this far!
2022-08-09 20:53:24.03         ADCALC
2022-08-09 20:53:25.90   Done; Run time is about 00:18.7 (mm:ss)

This is most excellent (glad the little message I put in there is functioning as expected!). What test did you run that resulted in that output? I want to be sure I can replicate your result, I've tried running the test10 but not getting the same output

jdkleiner commented 2 years ago

@rburghol disregard the above comment, the following does indeed work for me.

# convert the UCI fileto h5
hsp2 import_uci test10.uci test10.h5
# do the run
hsp2 run test10.h5

# result: 
...
I made it this far!
I made it this far!
I made it this far!
I made it this far!
I made it this far!
I made it this far!
I made it this far!
I made it this far!
I made it this far!
2022-08-10 19:11:33.55         ADCALC
2022-08-10 19:11:34.94         CONS
2022-08-10 19:11:36.44         HTRCH
2022-08-10 19:11:39.16         SEDTRN
2022-08-10 19:11:48.64         RQUAL
jdkleiner commented 2 years ago

@rburghol SPECL.py has been set up and initial proof of concept testing successful (preforms a simple calculation on an array and returns the modified array to HYDR.py)

https://github.com/HARPgroup/HSPsquared/blob/specl/HSP2/SPECL.py

rburghol commented 2 years ago

See here for example of how to view HDF5 data in R: https://github.com/HARPgroup/HSPsquared/issues/24#issuecomment-1258454652