Welcome to the RAS Solution Forums HECRAS Controller Extracting River station and water levels in any/MATLAB environment

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #8206
    anandtkulkarni
    Participant

    Hi Chris,
    Posting first message of 2018!

    I have simple HEC-RAS model of river1 and reach1 with 4 station points viz: 3000m, 2000m, 1000m and 0m.

    I am able to compute the water levels and save the project using RAS Controller. However I am struggling to extract the resulting water levels out of it.

    How could one possibly possibly extract water levels to a .txt or .csv file

    Having tried couple of method I am inclined to think that calling following function should help
    Output_ComputationLevel_Export(ByRef filename As String, ByRef errmsg As String, Optional ByRef WriteFlow As Boolean = Nothing, Optional ByRef WriteStage As Boolean = Nothing, Optional ByRef WriteArea As Boolean = Nothing, Optional ByRef WriteTopWidth As Boolean = Nothing) As Object

    few clarifications – what would be the output file name? prj file or somting else?

    if not above function then is it
    OutputDSS_GetStageFlow(ByRef river As String, ByRef reach As String, ByRef rs As String, ByRef nvalue As Integer, ByRef ValueDateTime As System.Array, ByRef Stage As System.Array, ByRef Flow As System.Array, ByRef errmsg As String) As Boolean

    i know river is ‘river1’, reach is ‘reach1’ and rs can be say ‘3000’. Others I am not sure how to populate.

    Chris, thanks for writing the book, I have ordered it online and is under shipping. I am informed it may take one more week of so.

    Thanks,

    Regards,
    Anand K

    #13567
    Chris G.
    Keymaster

    Hi Anand-

    I suggest using OutputDSS_GetStageFlow to get water surface elevations. Appendix A of “Breaking the HEC-RAS Code” clearly explains the arguments that go with that Function. Good luck!

    Chris

    #13568
    Anonymous
    Guest

    Hi Anand,

    Could you find the answer to your question? I have the same problem.

    Thanks,
    Zara

    #13569
    anandtkulkarni
    Participant

    Oh yes getting water levels from MATLAB is not that hard

    h=actxserver(‘RAS501.HECRASCONTROLLER’);
    h.Output_NodeOutput(riverID,reachID,nodeIDs,updn,profile,nVar);

    With appropriate ‘nVar’ value one could get the desired output. The book “Breaking HEC-RAS Code” has good details about them . Say for example you can get Water Surface Elevation if you use nVar=2 and so on for others.

    Hope this helps!

    Regards,
    Anand K

    #13570
    sajna94
    Participant

    hi,
    what is this nvar in water surface extraction means?

    #13571
    anandtkulkarni
    Participant

    Return-Path:
    Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
    by sloti1d2t14 (Cyrus 3.1.6-666-gb2312fa-fmstable-20190614v4) with LMTPA;
    Wed, 19 Jun 2019 03:21:41 -0400
    X-Cyrus-Session-Id: sloti1d2t14-1560928901-2381355-2-179799043994482263
    X-Sieve: CMU Sieve 3.0
    X-Spam-known-sender: no
    X-Spam-score: 1.3
    X-Spam-hits: FREEMAIL_FROM 0.001, HTML_MESSAGE 0.001, ME_ZS_CLEAN -0.001,
    RCVD_IN_DNSWL_NONE -0.0001, SPF_HELO_NONE 0.001, SPF_PASS -0.001,
    URI_HEX 1.313, LANGUAGES en, BAYES_USED none, SA_VERSION 3.4.2
    X-Spam-source: IP=’209.85.208.175′, Host=’mail-lj1-f175.google.com’, Country=’US’,
    FromHeader=’com’, MailFrom=’com’
    X-Spam-charsets: plain=’UTF-8′, html=’UTF-8′
    X-Resolved-to: [email protected]
    X-Delivered-to: [email protected]
    X-Mail-from: [email protected]
    Received: from mx1 ([10.202.2.200])
    by compute1.internal (LMTPProxy); Wed, 19 Jun 2019 03:21:41 -0400
    Received: from mx1.messagingengine.com (localhost [127.0.0.1])
    by mailmx.nyi.internal (Postfix) with ESMTP id B11BDA8004E
    for ; Wed, 19 Jun 2019 03:21:40 -0400 (EDT)
    Received: from mx1.messagingengine.com (localhost [127.0.0.1])
    by mx1.messagingengine.com (Authentication Milter) with ESMTP
    id A3D9513FDA2;
    Wed, 19 Jun 2019 03:21:40 -0400
    ARC-Seal: i=1; a=rsa-sha256; cv=none; d=messagingengine.com; s=fm3; t=
    1560928900; b=dmOEWUnflE3Wdj485cWlQWsP19V8pC7g235yBXZU8iLq90hwrj
    i6/h2zbsmokzdgCgCCFoBlgQzV9WqUxM4HDEa+9SOP3/m7SB1rnFmmZCBBOxlJir
    i8ogJ0Nv/05K6bqctHXyrYf7cF1+5PHsIODY32Dg218yyvi2qwY75yNSTj1xtoOP
    F2glp8eKqroxhe/o/f/rCViK0rOXFq76IRtMqu7vChq/FwyCJ1vB3fETQOxKan9M
    UviTih6nLNUx7+aQwoLjJxb+uzb2VNtsNwgZLfoLiOVbyXHirGqUxEgJhwoKy+6p
    5O5ha0csdmNBEDSXTy5Ax1AHpJjZEZyrUHVg==
    ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=
    messagingengine.com; h=mime-version:references:in-reply-to:from
    :date:message-id:subject:to:content-type; s=fm3; t=1560928900;
    bh=6D113otCbbCNzLGqZavV0K65i1ogK/9QbSDtg3xpcHQ=; b=jL2IRnQdKyW9
    BCmW72bz9oLy3VpGHZrH6KKU1nphPLCCvSgJyJSnucgnQVF37ub/imtbxp3HY3Oz
    Bny22+wX0L2KzQ3qD2z0FBSuO5E7xx+JgJJ9HH8H/ArQdE/1TC4x3Yb4Ar1VSHkx
    eRKyEXFqnJw6l7gpBj5uBSOUtZASRdIox40QODQuWxPVvouI/i6FEJxXlBE7GKjb
    RCeKgPuLxhJZYlHPdaNLSkQoRizE83VjqzQYqlwuNn0V+e0Nq3FhPzCB7myJlMI2
    ah2Fa0UFbUVXCyjJAY8MQb/G37HBYjTCw7wqt+7vJPhwk9jKx1NPJlAzB82g1RJB
    e1dIhnDWFQ==
    ARC-Authentication-Results: i=1; mx1.messagingengine.com; arc=none (no signatures found);
    dkim=pass (2048-bit rsa key sha256) header.d=gmail.com
    [email protected] header.b=Mxl6VlV5 header.a=rsa-sha256
    header.s=20161025 x-bits=2048;
    dmarc=pass policy.published-domain-policy=none
    policy.published-subdomain-policy=quarantine
    policy.applied-disposition=none policy.evaluated-disposition=none
    (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p
    header.from=gmail.com;
    iprev=pass smtp.remote-ip=209.85.208.175 (mail-lj1-f175.google.com);
    spf=pass [email protected]
    smtp.helo=mail-lj1-f175.google.com;
    x-aligned-from=pass (Address match);
    x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net
    [email protected] header.b=XBUVKtlv;
    x-ptr=pass smtp.helo=mail-lj1-f175.google.com
    policy.ptr=mail-lj1-f175.google.com;
    x-return-mx=pass header.domain=gmail.com policy.is_org=yes
    (MX Records found: alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com);
    x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes
    (MX Records found: alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com);
    x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES128-GCM-SHA256
    smtp.bits=128/128;
    x-vs=clean score=0 state=0;
    x-zs=clean
    Authentication-Results: mx1.messagingengine.com;
    arc=none (no signatures found);
    dkim=pass (2048-bit rsa key sha256) header.d=gmail.com
    [email protected] header.b=Mxl6VlV5 header.a=rsa-sha256
    header.s=20161025 x-bits=2048;
    dmarc=pass policy.published-domain-policy=none
    policy.published-subdomain-policy=quarantine
    policy.applied-disposition=none policy.evaluated-disposition=none
    (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p
    header.from=gmail.com;
    iprev=pass smtp.remote-ip=209.85.208.175 (mail-lj1-f175.google.com);
    spf=pass [email protected]
    smtp.helo=mail-lj1-f175.google.com;
    x-aligned-from=pass (Address match);
    x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net
    [email protected] header.b=XBUVKtlv;
    x-ptr=pass smtp.helo=mail-lj1-f175.google.com
    policy.ptr=mail-lj1-f175.google.com;
    x-return-mx=pass header.domain=gmail.com policy.is_org=yes
    (MX Records found: alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com);
    x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes
    (MX Records found: alt3.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com);
    x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES128-GCM-SHA256
    smtp.bits=128/128;
    x-vs=clean score=0 state=0;
    x-zs=clean
    X-ME-VSSU: VW5zdWI9aHR0cDovL2hlYy1yYXMtaGVscC4xMDkxMTEyLm41Lm5hYmJsZS5jb20vdGVtcG
    xhdGUvTmFtbFNlcnZsZXQuanRwP21hY3JvPXVuc3Vic2NyaWJlX2J5X2NvZGUmbm9kZT01
    MTI0JmNvZGU9WVc1aGJtUjBhM1ZzYTJGeWJtbEFaMjFoYVd3dVkyOXRmRFV4TWpSOE56UX
    dOVGMxT0RJdw
    X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduvddrtddugdduudekucetufdoteggodetrfdotf
    fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
    rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeggfhgjhf
    ffkffuvfgtsegrtderredttdejnecuhfhrohhmpeetnhgrnhguucfmuhhlkhgrrhhnihcu
    oegrnhgrnhguthhkuhhlkhgrrhhnihesghhmrghilhdrtghomheqnecuffhomhgrihhnpe
    hnrggssghlvgdrtghomhenucfkphepvddtledrkeehrddvtdekrddujeehnecurfgrrhgr
    mhepihhnvghtpedvtdelrdekhedrvddtkedrudejhedphhgvlhhopehmrghilhdqlhhjud
    dqfhdujeehrdhgohhoghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeorghnrghnughtkhhu
    lhhkrghrnhhisehgmhgrihhlrdgtohhmqecuuffkkgfgpeeikedvjeenucevlhhushhtvg
    hrufhiiigvpedt
    X-ME-VSScore: 0
    X-ME-VSCategory: clean
    X-ME-ZSResult: clean
    Received-SPF: pass
    (gmail.com … _spf.google.com: Sender is authorized to use ‘[email protected]’ in ‘mfrom’ identity (mechanism ‘include:_netblocks.google.com’ matched))
    receiver=mx1.messagingengine.com;
    identity=mailfrom;
    envelope-from=”[email protected]”;
    helo=mail-lj1-f175.google.com;
    client-ip=209.85.208.175
    Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175])
    (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
    (No client certificate requested)
    by mx1.messagingengine.com (Postfix) with ESMTPS
    for ; Wed, 19 Jun 2019 03:21:39 -0400 (EDT)
    Received: by mail-lj1-f175.google.com with SMTP id i21so2195820ljj.3
    for ; Wed, 19 Jun 2019 00:21:39 -0700 (PDT)
    DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
    d=gmail.com; s=20161025;
    h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
    bh=6D113otCbbCNzLGqZavV0K65i1ogK/9QbSDtg3xpcHQ=;
    b=Mxl6VlV5kiUgr5Ml8p0WH2cmo1VShIk3eX/OmarGAtZSMj9xg1NOPGL/KocfmBugoQ
    zZ6YzimPPbTgpx8ccwZERXaeWqI1XDctlPoSOq3t++Gj14wFOzRFit2VZ+VhyDKWIYCT
    DZYWHez0qCe/sqQMz81IylxDfQN8YoY4+Iopp228Xe68OzIdeHj0cEdf4YUhQC+JaYwk
    4+RS7LrRnkUIxHk/dBtQGTxQVwZC1AcBFC7BjkrmCqNsio+b2JMZJM0+lzcmWb0PLTLZ
    +ofHOM4X+Q8pR69j/AYZcfakFjhwStlAT0Ko858txi3jwshFRkz4HT8dcl5C40lDN3rt
    IG6g==
    X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
    d=1e100.net; s=20161025;
    h=x-gm-message-state:mime-version:references:in-reply-to:from:date
    :message-id:subject:to;
    bh=6D113otCbbCNzLGqZavV0K65i1ogK/9QbSDtg3xpcHQ=;
    b=XBUVKtlvt/E8fjhE0qO9MUPso3gN5Yho5ag8puiiQC49fTgys+y80h+EmHg91V4Cct
    GX+KCNIzlaLqdYx4e9c6clBWbWDW33N6rHxCuwtC64bMDutGeGhc/PiFj5VPjA/H7pdg
    Fmj7SACZlVyLnAXI+awWswMjTs1InI/jDh96/70fpTNNYbQFulHzD8rU9fwz4rJTElQ8
    7QRAPKdDMfyutZRnT+VTFvKm2KV60RVmi8xgWudAnslD+TyMbQ0aJ2oIw5u1urfkXfi1
    67KcBCkFx6LfIaAD37J5pbuB6lXSLQixTNyk1gsjP1xDKvoJj0raZRjI3rZdfBa2OSQ2
    qMdQ==
    X-Gm-Message-State: APjAAAX+ilbVaUnTMJE/9QJvVOlzgibxB/WsLoyGUHikEnhQK8C0hGIm
    2/rd/L8UQ47AU3xLocpdlSKNghXo5LqKCZjqlJ0XHg==
    X-Google-Smtp-Source: APXvYqwxWobJvMaVVdRVOPXBm2zGZGNK6iUPB0DmHTcGePJKHpfmwFf29OECQAu4NN66uKlO0kESMFOj2/GtLt9pBRc=
    X-Received: by 2002:a2e:93c5:: with SMTP id p5mr30957382ljh.79.1560928896857;
    Wed, 19 Jun 2019 00:21:36 -0700 (PDT)
    MIME-Version: 1.0
    References: <[email protected]> <[email protected]>
    <[email protected]> <[email protected]>
    In-Reply-To: <[email protected]>
    From: Anand Kulkarni
    Date: Wed, 19 Jun 2019 12:51:24 +0530
    Message-ID:
    Subject: Re: Extracting River station and water levels in any/MATLAB environment
    To: “sajna [via HEC-RAS Help]”
    Content-Type: multipart/alternative; boundary=”0000000000006abc0d058ba81483″

    –0000000000006abc0d058ba81483
    Content-Type: text/plain; charset=”UTF-8″
    Content-Transfer-Encoding: quoted-printable

    Nvar is the specific variable that needs to be used to extract water
    levels. There are different nvar values to extract different variables say
    for water depth, discharge etc….
    The different nvar values have been specified in the appendix of breaking
    hecras code book if you have.

    Thanks
    Regards
    Anand Kulkarni

    Anandtkulkarni

    On Wed 19 Jun, 2019 11:17 am sajna [via HEC-RAS Help], < [email protected]> wrote:

    > hi,
    > what is this nvar in water surface extraction means?
    >
    >
    > ——————————
    > If you reply to this email, your message will be added to the discussion
    > below:
    >
    > http://hec-ras-help.1091112.n5.nabble.com/Extracting-River-station-and-wa=
    ter-levels-in-any-MATLAB-environment-tp5124p7674.html
    > To unsubscribe from Extracting River station and water levels in
    > any/MATLAB environment, click here
    > <http://hec-ras-help.1091112.n5.nabble.com/template/NamlServlet.jtp?macro=
    =3Dunsubscribe_by_code&node=3D5124&code=3DYW5hbmR0a3Vsa2FybmlAZ21haWwuY29tf=
    DUxMjR8NzQwNTc1ODIw>
    > .
    > NAML
    > <http://hec-ras-help.1091112.n5.nabble.com/template/NamlServlet.jtp?macro=
    =3Dmacro_viewer&id=3Dinstant_html%21nabble%3Aemail.naml&base=3Dnabble.naml.=
    namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.v=
    iew.web.template.NodeNamespace&breadcrumbs=3Dnotify_subscribers%21nabble%3A=
    email.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble=
    %3Aemail.naml>
    >

    –0000000000006abc0d058ba81483
    Content-Type: text/html; charset=”UTF-8″
    Content-Transfer-Encoding: quoted-printable

    Nvar is the specific variable that needs to be used to ex=
    tract water levels. There are different nvar values to extract different va=
    riables say for water depth, discharge etc….

    The differe=
    nt nvar values have been specified in the appendix of breaking hecras code =
    book if you have.
    Thanks=
    Regards
    Anand Kulkarni

    Anandtkulkarni

    =

    On Wed 19 Jun, =
    2019 11:17 am sajna [via HEC-RAS Help], <[email protected]> wrote:
    <= /div>

    ft:1px #ccc solid;padding-left:1ex">

    hi,

    what is this nvar in water surface extraction means?

    =09
    =09
    =09



    =09
    To unsubscribe from Extracting River station and water levels in any/MATL=
    AB environment, click here.
    NAML

    –0000000000006abc0d058ba81483–

    #13572
    sajna94
    Participant

    Thank you for your kind replay.

    but i am still not getting to extract the water surface level from Hec ras. Can you please help me.
    if you dont mind can you send the code for that.

    Thanking you,
    sajna

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.