[ncl-talk] vinth2p help

Barbara Wortham worthamb at bc.edu
Mon Jan 25 16:21:47 MST 2016


OK thanks everyone! that was very helpful!

On Mon, Jan 25, 2016 at 4:12 PM, Dennis Shea <shea at ucar.edu> wrote:

> You must download the 'PS' associated with the U and V. Any old 'PS' won't
> do!
>
>
>
> On Mon, Jan 25, 2016 at 2:01 PM, Adam Phillips <asphilli at ucar.edu> wrote:
>
>> Hi Barbara,
>> To answer your PS query: PS is not normally given within the individual
>> variable files (U, V, for instance). You will need to download the PS files
>> separately.
>> Adam
>>
>> On Mon, Jan 25, 2016 at 1:51 PM, Dennis Shea <shea at ucar.edu> wrote:
>>
>>> As noted by GusC ... the following is incorrect.
>>>
>>> TonP = vinth2p(U(:,1,:,:),hyam,hybm,pnew,PS,interp,P0mb,1,extrap)  ?
>>>
>>>
>>> You are passing in only one vertical (hybrid) level. Interpolation
>>> requires multiple levels.
>>>
>>> For 'fun', try
>>>
>>>    printVarSummary(U(:1,:,:))
>>>
>>> What do you see? NCL will eliminate the "degenerate dimension".
>>> Regardless, you must enter multiple levels.
>>>
>>> I will make one correction to GusC's suggestion. As a rule, if you are
>>> referring to a full array, use U rather than for assorted reasons
>>>
>>> UonP = vinth2p(U,hyam,hybm,pnew,PS,interp,P0mb,1,extrap) ; pass a
>>> reference (pointer to the variable)
>>>
>>> Note: there are numerous examples
>>>
>>> http://www.ncl.ucar.edu
>>>
>>> Click 'Examples'
>>>
>>> On right side, click "Vertical Interpolation"
>>>
>>> Good Luck
>>>
>>> On Mon, Jan 25, 2016 at 12:49 PM, Gus Correa <gus at ldeo.columbia.edu>
>>> wrote:
>>> > Maybe using all of U's four dimensions (level included):
>>> >
>>> > UonP = vinth2p(U(:,:,:,:),hyam,hybm,pnew,PS,interp,P0mb,1,extrap)
>>> >
>>> > instead of:
>>> >
>>> > TonP = vinth2p(U(:,1,:,:),hyam,hybm,pnew,PS,interp,P0mb,1,extrap)  ?
>>> >
>>> >
>>> > On 01/25/2016 02:15 PM, Barbara Wortham wrote:
>>> >> Hello,
>>> >>
>>> >> I am working to convert the elevations in U and V files from the CESM
>>> >> LME dataset to pressure levels. I think I should be using vinth2p and
>>> >> attached is the code I am using. However, it seems like the variable
>>> PS
>>> >> can't be called upon in these files.
>>> >
>>> > Why?
>>> > Maybe it is in another file?
>>> > Or is it called "ps" instead of "PS"?
>>> >
>>> >> I was wondering if you had a
>>> >> suggestion for a surface pressure that is anchored in space that I
>>> could
>>> >> use for the conversion?
>>> >>
>>> >> Thanks, barbara
>>> >>
>>> >> --
>>> >> Barbara E. Wortham
>>> >> Graduate Student
>>> >> Boston College
>>> >> Department of Earth and Environmental Science
>>> >> Devlin 311
>>> >>
>>> >>
>>> >> _______________________________________________
>>> >> ncl-talk mailing list
>>> >> ncl-talk at ucar.edu
>>> >> List instructions, subscriber options, unsubscribe:
>>> >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>> >>
>>> >
>>> > _______________________________________________
>>> > ncl-talk mailing list
>>> > ncl-talk at ucar.edu
>>> > List instructions, subscriber options, unsubscribe:
>>> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>
>>
>>
>> --
>> Adam Phillips
>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
>> www.cgd.ucar.edu/staff/asphilli/   303-497-1726
>>
>> <http://www.cgd.ucar.edu/staff/asphilli>
>>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Barbara E. Wortham
Graduate Student
Boston College
Department of Earth and Environmental Science
Devlin 311
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160125/dbf19ff8/attachment.html 


More information about the ncl-talk mailing list