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.
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.
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?