Pages

Thursday, October 29, 2015

Breaking the HEC-RAS Code – 1 Year!

Well it’s been one year since I published “Breaking the HEC-RAS Code”.  It was a lot of work, but I am very pleased to see how many people are making use of the book controlling and automating HEC-RAS with their own codes.

 

For those of you who haven’t discovered it yet, this book introduces the HECRASController, an API that gives you the ability to control HEC-RAS from an external application.  If you have HEC-RAS installed on your computer, you already have the HECRASController!  The book is written around Visual Basic for Applications (VBA), since most HEC-RAS users have Excel and many are already at least somewhat familiar with the VBA programming language embedded within.  However, many readers of my book have expanded the concepts presented to other programming codes like Python, R, C#, Matlab, etc with great success. 

“Breaking the HEC-RAS Code” unlocks the secrets to using the HECRASController.  If you would like more information about this book, or the companion Excel workbook that contains code written for every HECRASController procedure plus example code for a variety of applications, follow the link below or shoot me an email. 

Breaking the HEC-RAS Code

For those of you already making use of the HECRASController, let me suggest visiting The RAS Solution forum and posting examples and/or questions about your experience to the HECRAS Controller sub-forum.  Good luck breaking the HEC-RAS code!

13 comments:

  1. Hi Chris,

    I am interested to use the HEC-RAS Controller with Matlab, but I didn't found the info in the forum as mentioned above.

    Thanks a lot,
    Thomas

    ReplyDelete
    Replies
    1. Hi Thomas-

      There's a sub forum called HECRAS Controller in the main forum. Look for the folder that says "HECRAS Controller". I'm not sure there is any information specific to Matlab though.

      Delete
    2. Hi Chris,

      I bought your book about two months ago and I am trying to control hec-ras from MATLAB with no success. You mentioned above that some people were successful in doing this using MATLAB. Can you share the email of the guys that were able to do this? My email is artuleon@gmail.com

      Many thanks for your help!
      Art

      Delete
    3. Hi Chris,

      I bought your book about two months ago. I am trying to control HEC-RAS using Matlab. You mentioned above that some guys tried to control HEC-RAS using MATLAB. Can you share the email of one or two of those guys?

      Many thanks for your help!
      arturo

      Delete
    4. Hi Art-

      I don't have the emails of the guys on the forum. However, there are a couple guys in my company that I think have been dabbling in it. Let me check with them and get back to you. Do you have an email that I could reach you at?

      Thanks-
      Chris

      Delete
    5. Oops, I see your email in your other message. Got it. I'll let you know what I find out.

      Chris

      Delete
    6. For those interested in controlling HEC-RAS with Matlab, I've found this information:
      http://www2.egr.uh.edu/~aleon3/papers_PDF/Journal/HEC_RAS_Controller.pdf

      Delete
  2. Hey Chris! So, I successfully ran your Monte Carlo code on n-values and am working to adapt it to my uses. Namely, 1) vary n-values based on the existing calibrated n-values at each cross-section (I think I can handle this using the parsing examples you've given), and 2) I want to output the WSE and Velocity from all the original cross-sections in the model and NOT the interpolated cross-sections. Could you please direct me to the proper solution?
    Thanks!!!

    ReplyDelete
    Replies
    1. Yes, I think you already have #1 figured out. For #2, While looping through all of your cross sections, check for cross sections that end in an asterisk (*). Those are interpolated cross sections. A simple If/then block will allow you to skip the cross sections with asterisks.

      Delete
  3. Hi Chris, thank you very much for this book and the HECRASController Code you have recommended at http://hecrasmodel.blogspot.com/p/book.html as well. However, there are some payment related issues and I'm stuck with a payment made and not receiving the file. I have sent a few messages through this form: https://sellfy.com/therassolution/contact/ but did not receive any response. Can you help?

    Thanks
    Satish Mantha

    ReplyDelete
  4. Currently stuck on getting the Compute_CurrentPlan to work with R and R Studio. Do you have any references to help out with this?

    Thank You!

    ReplyDelete
    Replies
    1. I don't, but if you haven't already, you might try posting this to the RAS Controller forum (see link at the top of this blog).

      Delete
  5. Hi,

    My name's Isabella, I'm Brazilian and be working Dambreak analyses with Hec-Ras.
    I would like to learn more about controller, I don't know well languages programation, I've some difficulties to understand. The book appear so good and I believe that will help me a lot.
    There are some way to dalk about? Because the cost is high for me in moment, I'm in master and need do defend in one year. Thanks since.
    Isabella

    ReplyDelete

Note: Only a member of this blog may post a comment.