<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<pre>Dear WRF-help and NCL users,<br><br>Has anyone successfully plotted a cross section with wrf data <br>along a diagonal, say southeast to northwest or vice versa, using <br>wrf_user_intrp3d? North/south or east/west works fine, but from the <br>documentation, a diagonal seemed possible using the example below<b>, <br></b>although I can't get it working<b>? <br><br></b>Also, the plane is defined (/xstart,xend , ystart,yend/) for sure<br>rather than (/xstart,ystart , xend,yend/) instead?<b><br><br></b>thanks,<br>Matt<b><br><br></b><br><br><br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;
  load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl&quot;<b>

  a = <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml"><strong>addfile</strong></a></b>(&quot;wrfout_d01_2000-01-24_12:00:00.nc&quot;,&quot;r&quot;)

  time = 1
  tc = <a href="https://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_getvar.shtml"><strong>wrf_user_getvar</strong></a>(a,&quot;tc&quot;,time)   ; T [C]
  z  = <a href="https://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_getvar.shtml"><strong>wrf_user_getvar</strong></a>(a,&quot;z&quot;,time)    ; z on mass points

  plane = (/  40,81 , 259,81  /) ; approx. START x;y and END x;y point

  ; Extract cross section from point A to point B, as defined in &quot;plane&quot;
  ; And vertically interpolate to height coordinates (&quot;z&quot;)
  tc_plane = <strong>wrf_user_intrp3d</strong>(tc,z,&quot;v&quot;,plane,0.,True)</pre>
</div>
</body>
</html>