[ncl-talk] Problem with pot_vort_isobaric function with 3D array
Mary Haley
haley at ucar.edu
Mon Apr 27 15:56:09 MDT 2015
Hi Kevin,
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't match with the line numbers that I see in contributed.ncl, so I'm
wondering if you added any code, like debug print statements?
What are the sizes of all the arrays being passed to pot_vort_isobaric? You
can add calls to "printVarSummary" to get this information:
printVarSummary(levels_Pa)
printVarSummary(u)
etc.
The error is coming from a call to "conform", 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't work.
Did you double-check the documentation to make sure you have the correct
array sizes:
http://www.ncl.ucar.edu/Document/Functions/Contributed/pot_vort_isobaric.shtml
Finally, which deprecated function are you referring to?
--Mary
On Mon, Apr 27, 2015 at 12:39 PM, Tyle, Kevin R <ktyle at albany.edu> wrote:
> 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 "shea_util.ncl" it works correctly for both a 3D
> and 4D array.
>
>
>
> Attached is the user’s script for the broken V6.3.0 function and the
> output.
>
>
>
> Thanks for looking into this …
>
>
>
> Kevin
>
>
>
> _____________________________________________
> Kevin Tyle, Systems Administrator
> Dept. of Atmospheric & Environmental Sciences
> University at Albany
> Earth Science 235, 1400 Washington Avenue
> Albany, NY 12222
> Email: ktyle at albany.edu
> Phone: 518-442-4578
> _____________________________________________
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150427/18a967c9/attachment.html
More information about the ncl-talk
mailing list