<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Kevin,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It is hard to debug this without being able to run your script and see what the data array sizes are. Also, the line numbers mentioned in your log file don&#39;t match with the line numbers that I see in contributed.ncl, so I&#39;m wondering if you added any code, like debug print statements?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">What are the sizes of all the arrays being passed to pot_vort_isobaric? You can add calls to &quot;printVarSummary&quot; to get this information:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default">printVarSummary(levels_Pa)</div><div class="gmail_default">printVarSummary(u)</div><div class="gmail_default">etc.</div><div><br></div></div><div class="gmail_default" style="font-size:small">The error is coming from a call to &quot;conform&quot;, which is a function that conforms one array to the size of another.  The smaller array has to be a subset in size of the larger array, otherwise it won&#39;t work.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Did you double-check the documentation to make sure you have the correct array sizes:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/pot_vort_isobaric.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/pot_vort_isobaric.shtml</a><br></div><div class="gmail_default" style><br></div><div class="gmail_default" style>Finally, which deprecated function are you referring to?</div><div class="gmail_default" style><br></div><div class="gmail_default" style>--Mary</div><div class="gmail_default" style><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 27, 2015 at 12:39 PM, Tyle, Kevin R <span dir="ltr">&lt;<a href="mailto:ktyle@albany.edu" target="_blank">ktyle@albany.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">One of our users  is using the function pot_vort_isobaric and is getting an error when using a 3D array.  The function works as it is supposed to for a 4D array.  When one uses the deprecated and unsupported version of this function and
 loads in &quot;shea_util.ncl&quot; it works correctly for both a 3D and 4D array.  <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Attached is the user’s script for the broken V6.3.0 function and the output.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Thanks for looking into this …<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Kevin<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,sans-serif;color:black">_____________________________________________<br>
Kevin Tyle, Systems Administrator <br>
Dept. of Atmospheric &amp; Environmental Sciences   <br>
University at Albany<br>
Earth Science 235, 1400 Washington Avenue                        <br>
Albany, NY 12222<br>
Email: <a href="mailto:ktyle@albany.edu" target="_blank"><span style="color:blue">ktyle@albany.edu</span></a><br>
Phone: <a href="tel:518-442-4578" value="+15184424578" target="_blank">518-442-4578</a>                             <br>
_____________________________________________<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>