<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div style="font-family: Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><font face="Arial,Helvetica,sans-serif">Dear NCL help team,</font><font face="Arial,Helvetica,sans-serif"><br></font></span></font></div><div style="font-family: Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><font face="Arial,Helvetica,sans-serif">I am having issues plotting a vertical cross section of a streamline of wind. I am trying to plot a cross section of Vertical velocity and horizontal (U) winds. This plot is 90 degrees so I am ignoring V winds. Obviously U winds are much stronger than W so I have manually adjusted these by multiplying it by 100. I have included the script below in addition to the screen output. Please can you advise me on how to do this.</font><font face="Arial,Helvetica,sans-serif"><br></font></span></font></div><div style="font-family: Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><font face="Arial,Helvetica,sans-serif">Many Thanks</font><font face="Arial,Helvetica,sans-serif"><br></font></span></font></div><div style="font-family: Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><font face="Arial,Helvetica,sans-serif">Thomas Orton</font><font face="Arial,Helvetica,sans-serif"><br></font></span></font></div><div style="font-family: Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><font face="Arial,Helvetica,sans-serif"> </font><font face="Arial,Helvetica,sans-serif"><br></font><div><font face="Arial,Helvetica,sans-serif">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</font></div><div><font face="Arial,Helvetica,sans-serif">load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"</font></div><div><font face="Arial,Helvetica,sans-serif">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif">begin</font></div><div><font face="Arial,Helvetica,sans-serif">;</font></div><div><font face="Arial,Helvetica,sans-serif">; The WRF ARW input file.</font></div><div><font face="Arial,Helvetica,sans-serif">; This needs to have a ".nc" appended, so just do it.</font></div><div><font face="Arial,Helvetica,sans-serif"> a = addfile("wrf.nc","r")</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif">; We generate plots, but what kind do we prefer?</font></div><div><font face="Arial,Helvetica,sans-serif"> type = "x11"</font></div><div><font face="Arial,Helvetica,sans-serif">; type = "pdf"</font></div><div><font face="Arial,Helvetica,sans-serif">; type = "ps"</font></div><div><font face="Arial,Helvetica,sans-serif">; type = "ncgm"</font></div><div><font face="Arial,Helvetica,sans-serif"> wks = gsn_open_wks(type,"plt_CrossSection2")</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif">; Set some basic resources</font></div><div><font face="Arial,Helvetica,sans-serif"> res = True</font></div><div><font face="Arial,Helvetica,sans-serif"> res@MainTitle = "REAL-TIME WRF"</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif"> pltres = True</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif">;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif"> FirstTime = True</font></div><div><font face="Arial,Helvetica,sans-serif"> times = wrf_user_list_times(a) ; get times in the file</font></div><div><font face="Arial,Helvetica,sans-serif"> ntimes = dimsizes(times) ; number of times in the file</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif"> mdims = getfilevardimsizes(a,"P") ; get some dimension sizes for the file</font></div><div><font face="Arial,Helvetica,sans-serif"> nd = dimsizes(mdims)</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif">;---------------------------------------------------------------</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif"> do it = 0,ntimes-1,2 ; TIME LOOP</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif"> ua_in = wrf_user_getvar(a,"ua",it) ; Horizontal Winds</font></div><div><font face="Arial,Helvetica,sans-serif"> va_in = wrf_user_getvar(a,"va",it) ; Other Horizontal Wind</font></div><div><font face="Arial,Helvetica,sans-serif"> wa_in = wrf_user_getvar(a,"wa",it) ; Vertical Winds</font></div><div><font face="Arial,Helvetica,sans-serif"> z_in = wrf_user_getvar(a,"z",it) ; grid point Height<br></font></div><div><font face="Arial,Helvetica,sans-serif"> ter_in = wrf_user_getvar(a,"HGT",it) ; Terrain Height</font></div><div><font face="Arial,Helvetica,sans-serif"> T_in = wrf_user_getvar(a,"T",it) ; Potential Temperature</font></div><div><font face="Arial,Helvetica,sans-serif">; pa_in = wrf_user_getvar(a,"p",it) ; Pressure</font></div><div><font face="Arial,Helvetica,sans-serif"><br></font></div><div><font face="Arial,Helvetica,sans-serif"> ua = ua_in(0:45,:,:)</font></div><div><font face="Arial,Helvetica,sans-serif"> va = va_in(0:45,:,:)</font></div><div><font face="Arial,Helvetica,sans-serif"> wa = wa_in(0:45,:,:)</font></div><div><font face="Arial,Helvetica,sans-serif"> z = z_in(0:45,:,:)</font></div><div><font face="Arial,Helvetica,sans-serif"><div> T = T_in(0:45,:,:)</div><div>; pa = pa_in(0:45,:,:)</div><div><br></div><div> ua = ua*1.94386</div><div> va = va*1.94386</div><div> wa = wa*1.94386</div><div>;------------------------------------------------------------</div><div>;===========================================================</div><div>; Altered Values of wa (multiplied by 100) for visual purposes</div><div><br></div><div> wa = wa*100</div><div>;===========================================================</div><div>;----------------------------------------------------------</div><div> opts = True ; setting start and end points</div><div> plane = new(4,float)</div><div> pii = 3.14159</div><div> plane = (/100,105, 0,0/) ; start x;y & end x;y point</div><div> angle = 90.0</div><div><br></div><div> ua_plane = wrf_user_intrp3d(ua,z,"v",plane,angle,opts)</div><div> va_plane = wrf_user_intrp3d(va,z,"v",plane,angle,opts)</div><div> wa_plane = wrf_user_intrp3d(wa,z,"v",plane,angle,opts)</div><div> T_plane = wrf_user_intrp3d(T,z,"v",plane,angle,opts)</div><div><br></div><div> res = True</div><div>T_plane!0 = "lev"</div><div>ua_plane!0 = "lev"</div><div>va_plane!0 = "lev"</div><div><br></div><div>printVarSummary(T_plane)</div><div>printVarSummary(ua_plane)</div><div>printVarSummary(va_plane)</div><div><br></div><div>;------- MAKE PLOTS -----------------------------------------</div><div>plot = gsn_csm_pres_hgt_streamline(wks,T_plane,ua_plane,wa_plane,res)</div><div>;-------------------------------------------------------------</div><div><br></div><div>end do ;ends the time loop</div><div><br></div><div>end</div><div><br><br></div><br><br></font></div><font face="Arial,Helvetica,sans-serif"><br></font></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><font face="Arial,Helvetica,sans-serif"> </font><font face="Arial,Helvetica,sans-serif"><br></font></span></font></div><div style="font-family: Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><font face="Arial,Helvetica,sans-serif">Screen output:</font><font face="Arial,Helvetica,sans-serif"><br></font></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><font face="Arial,Helvetica,sans-serif">Variable: times</font><font face="Arial,Helvetica,sans-serif"><br></font></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Type: string</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Total Size: 8 bytes</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> 1 values</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Number of Dimensions: 1</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Dimensions and sizes: [1]</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Coordinates:</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Number Of Attributes: 2</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> description : times in file</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> _FillValue : missing</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">(0) 2013-07-31_15:00:00</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Variable: T_plane</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Type: float</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Total Size: 2000 bytes</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> 500 values</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Number of Dimensions: 2</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Dimensions and sizes: [lev | 100] x [Horizontal | 5]</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Coordinates:</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Number Of Attributes: 4</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> _FillValue : 9.96921e+36</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> units : K</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> description : perturbation potential temperature (theta-t0)</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> Orientation : Cross-Section: (100,0) to (104,0)</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Variable: ua_plane</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Type: float</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Total Size: 2000 bytes</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> 500 values</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Number of Dimensions: 2</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Dimensions and sizes: [lev | 100] x [Horizontal | 5]</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Coordinates:</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Number Of Attributes: 4</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> _FillValue : 9.96921e+36</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> units : m s-1</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> description : x-wind component</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> Orientation : Cross-Section: (100,0) to (104,0)</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Variable: va_plane</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Type: float</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Total Size: 2000 bytes</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> 500 values</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Number of Dimensions: 2</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Dimensions and sizes: [lev | 100] x [Horizontal | 5]</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Coordinates:</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Number Of Attributes: 4</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> _FillValue : 9.96921e+36</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> units : m s-1</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> description : y-wind component</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"> Orientation : Cross-Section: (100,0) to (104,0)</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">(0) gsn_csm_pres_hgt: Fatal: The first dimension of the input data must</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">(0) have a coordinate variable called 'lev.'</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">(0) Cannot create plot.</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">fatal:Illegal right-hand side type for assignment</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">fatal:["Execute.c":8128]:Execute: Error occurred at or near line 12763 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl</span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><br></span></font></div><div style="font-family: Arial, Helvetica, sans-serif;"><font face="Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">fatal:["Execute.c":8128]:Execute: Error occurred at or near line 92 in file stream5.txt</span></font></div><div style="font-family: Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;"><br></div><div style="font-family: Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;"><br></div><div id="Signature" style="font-family: Arial, Helvetica, sans-serif;"><div style="margin: 0px;"><font face="Calibri,Arial,Helvetica,sans-serif"><div style="margin: 0px;"><font face="Arial,Helvetica,sans-serif">Undergraduate Meteorology Student</font></div><div><div style="margin: 0px;"><font face="Arial,Helvetica,sans-serif">School of Earth and Environment</font></div></div><div><div style="margin: 0px;"><font face="Arial,Helvetica,sans-serif">University of Leeds</font></div></div><div><div style="margin: 0px;"><font face="Arial,Helvetica,sans-serif">West Yorkshire</font></div></div><div><div style="margin: 0px;"><font face="Arial,Helvetica,sans-serif">United Kingdom</font></div></div></font></div></div>                                            </div></body>
</html>