Auto Calibration for 2d using python

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Auto Calibration for 2d using python

Tarek Hamouda
Greetings All, lately I have been digging alot to control hec ras with python, I was able to write a code to auto calibrate 1d models, and almost 2d models but the main problem with 2d models is that I cannot change manning in every run.
As I understand geometric data is updated by changing the g01, saving this file will change geometric hdf file which then will be used in pre processing then results will be written in the plan hdf file.
The problem is when you change the g01 file or even the geometric hdf file using a code it doesnt force the hecras to pre processing, you only have to change it in GUI to be able to do that.
My question is how to force the hec ras to do preprocessing after changing g01 file with the controller.
Reply | Threaded
Open this post in threaded view
|

Re: Auto Calibration for 2d using python

Chris G.
Administrator
Why not use the Compute_CurrentPlan procedure after you make changes to the g01 file in your code?  If you only want to preprocess geometry, not rerun the simulation, you can always programatically change the "programs to run" in the plan input file.  
Chris G.
@RASModel
www.therassolution.com
Reply | Threaded
Open this post in threaded view
|

Re: Auto Calibration for 2d using python

Chris
In reply to this post by Tarek Hamouda
Hi Tarek,

I would be interested in understanding your approach to autocalibration using python. This is something I have been thinking about for a while now, but have limited programming skills. I have recently started using python and been able to get output from RAS using PyFloods. Would you be willing to share (some of) your code to help me get started?

Thanks,
Chris