<div dir="ltr"><div class="gmail_default" style="font-size:small">Francesco,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Your email contained one error message, but the subject contained a different error message.  I&#39;m assuming that you got both error messages?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;m not sure what causes this particular error, because I&#39;ve never seen it before. If I knew how to reproduce it, then I could probably tell you how to fix it.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">There&#39;s not enough information from the code you provided for us to be able to help.  You will need to examine some variables and provide us with the output.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please add the following printVarSummary calls to your code so we can see what your variables look like:</div><div class="gmail_default" style="">







<p class="" style="font-size:small"><font face="monospace, monospace">    printVarSummary(atmMeshmaskT_file-&gt;lon)</font></p>
<p class="" style="font-size:small"><font face="monospace, monospace">    printVarSummary(lon1dt_subatm)</font></p><p class="" style="font-size:small"><br></p><p class="" style="font-size:small"><font face="arial, helvetica, sans-serif">There may be another way around this problem. It looks like what you are ultimately trying to do is convert a 1D array to a 2D array. We have two functions for this very kind of thing, called &quot;conform&quot; and &quot;conform_dims&quot;:</font></p><p class="" style=""><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/conform.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/conform.shtml</a><br></p><p class=""><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/conform_dims.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/conform_dims.shtml</a><br></p><div>I think you could replace this code:</div><div><br></div><div><div><font face="monospace, monospace">    lon1dt_subatm(0:nx_subatm-1) = (/tofloat(atmMeshmaskT_file-&gt;lon(ix_range_atm(0):ix_range_atm(1))) /)</font></div><div><font face="monospace, monospace">    lon2dt_subatm  = new((/ny_subatm,nx_subatm/),float)</font></div><div><font face="monospace, monospace">    do iy=0,ny_subatm-1</font></div><div><font face="monospace, monospace">      lon2dt_subatm(iy,0:nx_subatm-1) = lon1dt_subatm(0:nx_subatm-1)</font></div><div><font face="monospace, monospace">    end do</font></div></div><div><br></div><div>with this single line of code:</div><div><br></div><div>







<p class=""><font face="monospace, monospace">lon2dt_subatm = tofloat(conform_dims((/ny_subatm,nx_subatm/),atmMeshmaskT_file-&gt;lon(ix_range_atm(0):ix_range_atm(1)),1))</font></p><p class=""><br></p></div><p class="" style="font-size:small">--Mary</p><p class="" style="font-size:small"><br></p></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace"><br></font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 20, 2016 at 9:27 AM, franz <span dir="ltr">&lt;<a href="mailto:f.trotta@sincem.unibo.it" target="_blank">f.trotta@sincem.unibo.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear ncl-team<br>
    Im using the nil 6.3.0<br>
    I got an error and I don&#39;t understand the source of this error:<br>
<br>
<br>
    fatal:[&quot;Execute.c&quot;:8575]:Execute: Error occurred at or near line<br>
16351 in file main.ncl<br>
<br>
    This error message appear when I lunch my scripts after few steps. It<br>
execute the code up to line 2777.<br>
<br>
    The line 16351 is where I close a do-loop:<br>
<br>
3143   do inest=0,nnest-11355<br>
3144<br>
|<br>
|<br>
|<br>
16350<br>
16351   end do ;inest<br>
<br>
<br>
    It gives me this error when a add this few line:<br>
<br>
    lon1dt_subatm(0:nx_subatm-1) = (/<br>
tofloat(atmMeshmaskT_file-&gt;lon(ix_range_atm(0):ix_range_atm(1))) /)<br>
    lon2dt_subatm  = new((/ny_subatm,nx_subatm/),float)<br>
    do iy=0,ny_subatm-1 lon2dt_subatm(iy,0:nx_subatm-1) =<br>
lon1dt_subatm(0:nx_subatm-1) end do<br>
<br>
    I&#39;m pretty shire that this 3 line are correct and I don&#39;t understand<br>
this fatal error<br>
<br>
    Is there some limitation in ncl with the number of the object we<br>
define?<br>
<br>
    thanks in advance<br>
Francesco T.<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>