<div dir="ltr">Hi Michael,<div><br></div><div>There is nothing in the WRF routines that will do this out of the box, but you can manually construct this yourself using wrf_interp_1d. See <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_interp_1d.shtml">http://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_interp_1d.shtml</a>. Assuming I'm completely understanding what you are trying to do, you would have to iterate over the nx x ny horizontal grid, then supply the vertical column values for each grid point and run the wrf_interp_1d routine to get the interpolated value. So, at each horizontal grid point, v_in would be the vertical column for your variable of interest, z_in would be the vertical coordinates for the v_in column, and z_out would be the desired surface pressure value (as an array with one element).</div><div><br></div><div>This will probably take a while to run, so plan accordingly.</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Bill</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 4, 2016 at 11:59 PM, Michael Weston <span dir="ltr"><<a href="mailto:mjweston@masdar.ac.ae" target="_blank">mjweston@masdar.ac.ae</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Folks,<br>
<br>
I am looking for an ncl function that can do vertical interpolation
in 3d, but instead of using a constant level to interpolate to, I
want to use an array variable to interpolate to.<br>
<br>
e.g. from existing function wrf_interp_3d_z<br>
<br>
<pre>function wrf_interp_3d_z (
                v3d : numeric,
                vert : numeric,
                loc [1] : numeric
        )</pre>
loc is a constant pressure or constant height.<br>
I want to use "surface pressure -x" to get variables at the top of
the surface layer, so loc would be a 2d array with ny x nx.<br>
<br>
Does such a function exist?<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
<br>
<div>-- <br>
<br>
<div>
<div><b>Michael</b><font face="Arial,sans-serif" color="#1F497D"><b> </b></font><font face="Arial,sans-serif" color="black"><b>Weston</b></font><font face="Arial,sans-serif" color="black"><b><br>
</b></font><font face="Arial,sans-serif" color="black" size="2"><span style="font-size:10pt"></span></font></div>
</div>
</div>
</font></span></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>