[ncl-talk] Problem with pot_vort_isobaric function with 3D array

Tyle, Kevin R ktyle at albany.edu
Mon Apr 27 16:57:32 MDT 2015


Upon further investigation, I believe the user was running a pre-release version of 6.3.0.  The errors do not appear in the final release, and as you say, Mary, the “contributed.ncl” file is indeed different between what the user was referring to and the final release.  I will confirm normal behavior with the user once she confirms that she is running 6.3.0 final, but at this point I think we can say “case closed”.

Thanks,

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<mailto:ktyle at albany.edu>
Phone: 518-442-4578
_____________________________________________

From: Mary Haley [mailto:haley at ucar.edu]
Sent: Monday, April 27, 2015 5:56 PM
To: Tyle, Kevin R
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] Problem with pot_vort_isobaric function with 3D array

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<mailto: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<mailto:ktyle at albany.edu>
Phone: 518-442-4578<tel: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/183a13c9/attachment-0001.html 


More information about the ncl-talk mailing list