<div dir="ltr"><div>I would not use &#39;vinth2p&#39; with &#39;fake&#39; vertical vertical hybrid &#39;A&#39; coefficients.<br></div><div>&#39;vinth2p&#39; was developed for the CAM hybrid model. <br></div><div><br>   
<i>p(k) = a(k)*p0 + b(k)*ps</i><br>  <br></div><div>Since, &#39;ps&#39; (surface pressure) is variable the &#39;top&#39; calculated pressure would also be variable.<br><br></div><div>Attached is a script that, I think, does what you want.<br></div><div>===<br></div><div><pre>NOTE: Automatic loading of NCL library scripts:<br></pre><p>

>From 6.2.0 onward, you no longer need to include the following load commands at the top of your NCL script:
</p><p>

</p>  load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;
  <br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;
<br>  load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<br><br></div>From 6.4.0 onwards, the following scripts are automaticall loaded:<br><br><pre>    &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;
    &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;
    &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;
    &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl&quot;
    &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/bootstrap.ncl&quot;
    &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/extval.ncl&quot;
    &quot;$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl&quot;
&#39;</pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 25, 2017 at 7:04 PM, Raj K. Rai <span dir="ltr">&lt;<a href="mailto:rajkrai@gmail.com" target="_blank">rajkrai@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p>Hi, <br>I am using the function vinth2p(data,fake,sigma,pres,<wbr>psfc,1,1000,1,True) to convert the WRF data that are in sigma level to pressure level (from 1000 mbar to 100 mbar). I guess this function will take default value for the pressure at the top (if so what is its value?) and bottom pressure from psfc. How can I use 20 mbar for the top pressure that corresponds to the top sigma level? </p><p>Thanks for your help.<span class="HOEnZb"><font color="#888888"><br>Raj</font></span></p></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>