<div dir="ltr"><div>So, <br><br>[1] are you saying there is a bug in 'pres2hybrid' ...."so decided to write it by myself."<br><br></div><div>or<br><br></div><div>[2] Your data are not on "constant pressure" levels so the function is not applicable. I speculate this is your issue.<br><br>===<br></div><div>My suggestion: <br><br></div><div>(a) use int2p_n_Wrap to interpolate the data you have to constant pressure (isobaric) levels<br></div><div> <a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/int2p_n_Wrap.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/int2p_n_Wrap.shtml</a><br><br></div><div>(b) then use [a] to interpolate to hybrid levels.<br><br>====<br></div><div><br></div>The pres2hybrid source code is f77.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 21, 2017 at 3:50 PM, Anahita Amiri Farahani <span dir="ltr"><<a href="mailto:aamir003@ucr.edu" target="_blank">aamir003@ucr.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello All,<div><br></div><div>I was wondering if I can access to the code for this function: </div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/pres2hybrid.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Functions/Built-in/<wbr>pres2hybrid.shtml</a></div><div><br></div><div><br></div><div>I want to interpolate pressure levels to hybrid levels in CESM, but have not found appropriate module/subroutine, so decided to write it by myself. </div><div><br></div><div><br></div><div><h1 style="padding:5px;font-size:20pt;line-height:22pt;font-family:"lucida sans",verdana,arial,sans-serif;color:rgb(2,83,143);clear:both"><br></h1></div></div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>