<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>.bct</title>
  <link rel="self" href="https://dlt-acc.firelay.cloud/c/message_boards/find_category?p_l_id=3231581&amp;mbCategoryId=3397066" />
  <subtitle>Problems on the creation of the .bct</subtitle>
  <id>https://dlt-acc.firelay.cloud/c/message_boards/find_category?p_l_id=3231581&amp;mbCategoryId=3397066</id>
  <updated>2026-05-15T14:22:49Z</updated>
  <dc:date>2026-05-15T14:22:49Z</dc:date>
  <entry>
    <title>RE: Not able to generate .bct file using Nesting2</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3398672" />
    <author>
      <name>Mohsin Siddique</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3398672</id>
    <updated>2018-08-22T14:33:55Z</updated>
    <published>2018-08-22T14:16:52Z</published>
    <summary type="html">&lt;p&gt;Dear all, &lt;/p&gt;
&lt;p&gt;I am facing the same problem with nesting (2). nesting (1) works fine.&lt;/p&gt;
&lt;p&gt;Thanks to Renan's code works I could generate the *.bct file.&lt;/p&gt;
&lt;p&gt;I slightly modified as suggested by Fernando because it does not
  generate *.bcc file (transport).&lt;/p&gt;
&lt;p&gt;folder=pwd;&lt;br /&gt; nesthd2('runid','Domain1',...&lt;br /&gt;    
  'inputdir',folder,...&lt;br /&gt;     'admfile',[folder
  '\nesthd1.adm'],...&lt;br /&gt;     'hisfile',[folder
  '\trih-Domain0.dat'],...&lt;br /&gt;     'opt','hydro');&lt;/p&gt;
&lt;p&gt;**Domain 1 and Domain 0 refers to detailed and overall models repectively. &lt;/p&gt;
&lt;p&gt; I tried delftdashboard directly (it also uses openearthtool) but did
  not work and gave some errors. Also used some old nesthd2.exe but in vain.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;If anybody could successfully apply nesting (2) directly from the GUI
  of Delft3d, then kindly share the experience &amp;amp; know-how.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;P.S. I am a new user of Delft3D and my version is 4.03.01.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Mohsin &lt;/p&gt;</summary>
    <dc:creator>Mohsin Siddique</dc:creator>
    <dc:date>2018-08-22T14:16:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: Not able to generate .bct file using Nesting2</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3397562" />
    <author>
      <name>Yahia Kala</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3397562</id>
    <updated>2018-06-19T18:21:41Z</updated>
    <published>2018-06-19T18:21:41Z</published>
    <summary type="html">&lt;p&gt;Hi All, I wasn't able to get the OET nesting code to work, but I was
  able to implement Kimberley's workaround - thanks!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;It would be great if this was resolved in the Delft3D code.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Yahia&lt;/p&gt;</summary>
    <dc:creator>Yahia Kala</dc:creator>
    <dc:date>2018-06-19T18:21:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: Not able to generate .bct file using Nesting2</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3397416" />
    <author>
      <name>Gholamreza Shiravani</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3397416</id>
    <updated>2018-06-06T18:34:56Z</updated>
    <published>2018-06-06T18:34:56Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;could you tell me how can I rewrite the matlab structs into a NEFIS
  Format as .dat and .def files?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;</summary>
    <dc:creator>Gholamreza Shiravani</dc:creator>
    <dc:date>2018-06-06T18:34:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Not able to generate .bct file using Nesting2</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3404245" />
    <author>
      <name>Fernando Roversi</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3404245</id>
    <updated>2018-03-22T17:13:21Z</updated>
    <published>2018-03-22T16:46:40Z</published>
    <summary type="html">Hi Renan,&lt;br /&gt;&lt;br /&gt;I was facing same problem. In my case I only had to include (&amp;#39;opt&amp;#39;,&amp;#39;hydro&amp;#39;) in your code to work. &lt;br /&gt;.bct files were successfully generated!&lt;br /&gt;&lt;br /&gt;Thanks!</summary>
    <dc:creator>Fernando Roversi</dc:creator>
    <dc:date>2018-03-22T16:46:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Not able to generate .bct file using Nesting2</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3403535" />
    <author>
      <name>Renan Ribeiro</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3403535</id>
    <updated>2018-02-10T01:53:55Z</updated>
    <published>2018-02-10T01:51:19Z</published>
    <summary type="html">Hello everyone,&lt;br /&gt;&lt;br /&gt;Another option is to use a matlab function available at &lt;a href="https://publicwiki.deltares.nl/display/OET/OpenEarth"&gt;OpenEarth Tools&lt;/a&gt;, called nesthd2.m, below follow an input example&lt;br /&gt;&lt;br /&gt;&lt;div class="lfr-code"&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;1&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;folder=pwd;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;2&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;nesthd2(&amp;#39;runid&amp;#39;,&amp;#39;Level2&amp;#39;,...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;3&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp; &amp;#39;inputdir&amp;#39;,folder,...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;4&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp; &amp;#39;admfile&amp;#39;,[folder &amp;#39;\Level1_to_Level2.adm&amp;#39;],...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="line-numbers"&gt;5&lt;/td&gt;&lt;td class="lines"&gt;&lt;div class="line"&gt;&amp;nbsp; &amp;nbsp; &amp;#39;hisfile&amp;#39;,[folder &amp;#39;\trih-Level1.dat&amp;#39;]);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Renan Ribeiro</summary>
    <dc:creator>Renan Ribeiro</dc:creator>
    <dc:date>2018-02-10T01:51:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Not able to generate .bct file using Nesting2</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3397412" />
    <author>
      <name>Kimberley Koudstaal</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3397412</id>
    <updated>2018-01-25T15:13:42Z</updated>
    <published>2018-01-25T15:13:23Z</published>
    <summary type="html">Hello,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve run into a similar problem. Although I haven&amp;#39;t found why it occurs/how to solve it, I did find a workaround solution with Matlab:&lt;br /&gt;&lt;br /&gt;- Run the same model on an older version of D3D for a short period (just to get the hisfile of the older version), lets call this file his2 &lt;br /&gt;- the hisfile of the new d3d version is his1.&lt;br /&gt;- Load both your HISfiles into matlab with vs_use&lt;br /&gt;- then, with vs_put you can replace the data in his2 with the data of his1, thus generating an hisfile with the &amp;#34;older version&amp;#34; but with the new version data.&lt;br /&gt;&lt;br /&gt;For my specific case i found that i had to replace everything in the his-series and his-info series. Below is my partial matlab script that i&amp;#39;ve used to do so. &lt;br /&gt;&lt;br /&gt;I hope this can help you out as well!&lt;br /&gt;&lt;br /&gt;Kimberley&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;MATLAB SCRIPT&lt;br /&gt;&lt;br /&gt;% load his files&lt;br /&gt;trih01 = vs_use([dir1,&amp;#39;trih-&amp;#39;,runid,&amp;#39;.dat&amp;#39;],[dir1,&amp;#39;trih-&amp;#39;,runid,&amp;#39;.def&amp;#39;]); %model output&lt;br /&gt;trih02 = vs_use([dir2,&amp;#39;trih-&amp;#39;,runid,&amp;#39;.dat&amp;#39;],[dir2,&amp;#39;trih-&amp;#39;,runid,&amp;#39;.def&amp;#39;]); %model output older version&lt;br /&gt;&lt;br /&gt;% load all his parameters of his-series and his-info-series&lt;br /&gt;his1s = vs_let(trih01,&amp;#39;his-series&amp;#39;,{0},&amp;#39;*&amp;#39;,{0,0});&lt;br /&gt;his2s = vs_let(trih02,&amp;#39;his-series&amp;#39;,{0},&amp;#39;*&amp;#39;,{0,0});&lt;br /&gt;his1i = vs_let(trih01,&amp;#39;his-info-series&amp;#39;,{0},&amp;#39;*&amp;#39;,{0,0});&lt;br /&gt;his2i = vs_let(trih02,&amp;#39;his-info-series&amp;#39;,{0},&amp;#39;*&amp;#39;,{0,0});&lt;br /&gt;&lt;br /&gt;% replace in his-series&lt;br /&gt;% nr = length time array&lt;br /&gt;names = fieldnames(his1);&lt;br /&gt;&lt;br /&gt;for a = 1:length(names)&lt;br /&gt;    vs_put(trih02,&amp;#39;his-series&amp;#39;,{1:nr},names{a},his1.([names{a}]));&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;vs_put(trih02,&amp;#39;his-info-series&amp;#39;,{1:nr},&amp;#39;ITHISC&amp;#39;,his1i.ITHISC);</summary>
    <dc:creator>Kimberley Koudstaal</dc:creator>
    <dc:date>2018-01-25T15:13:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: Not able to generate .bct file using Nesting2</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3403154" />
    <author>
      <name>Lin Chien</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3403154</id>
    <updated>2018-01-23T13:09:10Z</updated>
    <published>2018-01-23T13:09:10Z</published>
    <summary type="html">I have the exact same problem. Any update?&lt;br /&gt;Thanks</summary>
    <dc:creator>Lin Chien</dc:creator>
    <dc:date>2018-01-23T13:09:10Z</dc:date>
  </entry>
  <entry>
    <title>Not able to generate .bct file using Nesting2</title>
    <link rel="alternate" href="https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3397401" />
    <author>
      <name>Akash Ashok</name>
    </author>
    <id>https://dlt-acc.firelay.cloud/c/message_boards/find_message?p_l_id=3231581&amp;messageId=3397401</id>
    <updated>2017-12-04T06:37:53Z</updated>
    <published>2017-12-04T06:37:53Z</published>
    <summary type="html">Hello, &lt;br /&gt;I would bring to your notice  something I have observed after the compilation of the latest version of Delft3D.&lt;br /&gt;&lt;br /&gt;While doing the &amp;#39;Nesting 2&amp;#39; operation (Delft3D GUI&amp;gt;Flow&amp;gt;Tools&amp;gt;Nesting2), with a history file generated using the latest version (64bit,), an error was coming up- &amp;#39;***ERROR: reading DELFT3D-FLOW his data file (DT)&amp;#39; .  (in the .dia file).&lt;br /&gt;When I did the same operation on a history file generated in a Delft3D version compiled before June 2015 (32bit version), it was working and generated the required &amp;#39;.bct&amp;#39; file.&lt;br /&gt;&lt;br /&gt;Here is what I did:&lt;br /&gt;-generated the observation file and administration file using &amp;#39;Nesting 1&amp;#39;, providing the required grid and boundary data as inputs.  &lt;br /&gt;-&amp;#39;.mdf&amp;#39; was run using the &amp;#39;.obs&amp;#39; file generated in the previous step. &lt;br /&gt;-Nesting2 was attempted but it stopped with the above mentioned error in the &amp;#39;.dia&amp;#39; file. &lt;br /&gt;History file was opened in QUICKPLOT and it showed all results for all the observation points. &lt;br /&gt;&lt;br /&gt;In the older version:&lt;br /&gt;-the same &amp;#39;.obs&amp;#39; and &amp;#39;.adm&amp;#39; files generated in the previous steps were used to run the same &amp;#39;.mdf&amp;#39; in an older version of Delft3D installed in another system. &lt;br /&gt;-the history file generated in older version was used for &amp;#39;Nesting2&amp;#39; in the old as well as latest version of Delft3D and it worked in both the versions, generating a &amp;#39;.bct file&amp;#39;. &lt;br /&gt;&lt;br /&gt;This gives me an impression that the format of the history file is different in the two versions and NESTING 2 in the latest GUI is not compatible with the latest version of Delft3D. (64bit).&lt;br /&gt;Am I right or is there something that I should know/did wrong.?&lt;br /&gt;I was planning to shift to the 64bit version and remove the 32 bit version from the other PC too.  Please advise me on this. &lt;br /&gt;&lt;br /&gt;Here are the steps I had followed during installation:&lt;br /&gt; &lt;br /&gt; Downloaded the source code from tags&amp;gt;7426.&lt;br /&gt; Used the 64 bit compiler in Visual Basic to compile the code.&lt;br /&gt; Obtained and installed the 4.03.00 GUI and license from Deltares. (64bit).&lt;br /&gt; Copied the compiled code into the Deltares folder(C:\program files\Deltares) as mentioned in the installation instructions.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;The software has been working fine for all the modules except for NESTING2.</summary>
    <dc:creator>Akash Ashok</dc:creator>
    <dc:date>2017-12-04T06:37:53Z</dc:date>
  </entry>
</feed>
