<div dir="ltr"><div>I would not use 'vinth2p' with 'fake' vertical vertical hybrid 'A' coefficients.<br></div><div>'vinth2p' 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, 'ps' (surface pressure) is variable the 'top' 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 "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
<br> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br><br></div>From 6.4.0 onwards, the following scripts are automaticall loaded:<br><br><pre> "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/bootstrap.ncl"
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/extval.ncl"
"$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
'</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"><<a href="mailto:rajkrai@gmail.com" target="_blank">rajkrai@gmail.com</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"><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>