<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1499831043994_5311"></div><div id="yui_3_16_0_ym19_1_1499831043994_5468"><span id="yui_3_16_0_ym19_1_1499831043994_5469">Dear all</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499831043994_5470"><span id="yui_3_16_0_ym19_1_1499831043994_5471">I want to draw SKEWT gfs data. I write below script. but I have below error:</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499831043994_5472"><span id="yui_3_16_0_ym19_1_1499831043994_5473">fatal:Number of dimensions in parameter (2) of (skewT_PlotData) is (3), (1) dimensions were expected<br id="yui_3_16_0_ym19_1_1499831043994_5474">fatal:["Execute.c":8640]:Execute: Error occurred at or near line 113 in file grb-SKEWT-1.ncl<br id="yui_3_16_0_ym19_1_1499831043994_5475"></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499831043994_5476"><span id="yui_3_16_0_ym19_1_1499831043994_5477"><br id="yui_3_16_0_ym19_1_1499831043994_5478"></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499831043994_5479"><span id="yui_3_16_0_ym19_1_1499831043994_5480">Please guide me.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499831043994_5481"><span id="yui_3_16_0_ym19_1_1499831043994_5482">thanks<br id="yui_3_16_0_ym19_1_1499831043994_5483"></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499831043994_5484"><span id="yui_3_16_0_ym19_1_1499831043994_5485">************************<br id="yui_3_16_0_ym19_1_1499831043994_5486"></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1499831043994_5487"><span id="yui_3_16_0_ym19_1_1499831043994_5488"><br id="yui_3_16_0_ym19_1_1499831043994_5489"></span></div><span id="yui_3_16_0_ym19_1_1499831043994_5490">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br id="yui_3_16_0_ym19_1_1499831043994_5491">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/skewt_func.ncl"<br id="yui_3_16_0_ym19_1_1499831043994_5492">begin<br id="yui_3_16_0_ym19_1_1499831043994_5493">&nbsp;a = addfile("./gfs.t12z.pgrb2.0p50.f012.nc","r")<br id="yui_3_16_0_ym19_1_1499831043994_5494">type = "x11"<br id="yui_3_16_0_ym19_1_1499831043994_5495">&nbsp; wks = gsn_open_wks(type,"gfs-skewt")<br id="yui_3_16_0_ym19_1_1499831043994_5496"><br id="yui_3_16_0_ym19_1_1499831043994_5497">&nbsp; gsn_define_colormap(wks,"WhViBlGrYeOrReWh")<br id="yui_3_16_0_ym19_1_1499831043994_5498"><br id="yui_3_16_0_ym19_1_1499831043994_5499">;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br id="yui_3_16_0_ym19_1_1499831043994_5500">; First get the variables we will need at time 2<br id="yui_3_16_0_ym19_1_1499831043994_5501"><br id="yui_3_16_0_ym19_1_1499831043994_5502">&nbsp;&nbsp;&nbsp; tk&nbsp; =&nbsp; a-&gt;TMP_P0_L100_GLL0(lv_ISBL0|:, lat_0|:, lon_0|:)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; T in C<br id="yui_3_16_0_ym19_1_1499831043994_5503">&nbsp;&nbsp;&nbsp; tk1 = tk<br id="yui_3_16_0_ym19_1_1499831043994_5504">&nbsp;&nbsp;&nbsp; tc = tk1 - 273.15<br id="yui_3_16_0_ym19_1_1499831043994_5505">&nbsp;&nbsp;&nbsp; tc@units= "degC"<br id="yui_3_16_0_ym19_1_1499831043994_5506"><br id="yui_3_16_0_ym19_1_1499831043994_5507">&nbsp;&nbsp; rh&nbsp;&nbsp; = a-&gt;RH_P0_L100_GLL0(lv_ISBL0|:, lat_0|:, lon_0|:)<br id="yui_3_16_0_ym19_1_1499831043994_5508">&nbsp;&nbsp; rh1 = rh<br id="yui_3_16_0_ym19_1_1499831043994_5509">&nbsp;&nbsp; td&nbsp; = dewtemp_trh(tk1,rh1) - 273.15<br id="yui_3_16_0_ym19_1_1499831043994_5510">&nbsp;&nbsp; td@units = "degC"<br id="yui_3_16_0_ym19_1_1499831043994_5511"><br id="yui_3_16_0_ym19_1_1499831043994_5512">;&nbsp;&nbsp; p&nbsp;&nbsp;&nbsp;&nbsp; = a-&gt;lv_ISBL0(lv_ISBL0|:)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;&nbsp; ( lv_ISBL0 )<br id="yui_3_16_0_ym19_1_1499831043994_5513"><br id="yui_3_16_0_ym19_1_1499831043994_5514">;p&nbsp;&nbsp;&nbsp;&nbsp; = a-&gt;PRES_P0_L103_GLL0(lat_0|:, lon_0|:)<br id="yui_3_16_0_ym19_1_1499831043994_5515">&nbsp; p = a-&gt;PRES_P0_L109_GLL0(lv_PVL3|:, lat_0|:, lon_0|:)<br id="yui_3_16_0_ym19_1_1499831043994_5516">&nbsp; p&nbsp;&nbsp;&nbsp;&nbsp; = p*0.01&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; change units<br id="yui_3_16_0_ym19_1_1499831043994_5517">&nbsp;&nbsp; p@units = "hPa"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; skewT, mixhum_ptrh use mb (hPa)<br id="yui_3_16_0_ym19_1_1499831043994_5518"><br id="yui_3_16_0_ym19_1_1499831043994_5519"><br id="yui_3_16_0_ym19_1_1499831043994_5520">&nbsp;&nbsp;&nbsp; u&nbsp;&nbsp;&nbsp; = a-&gt;UGRD_P0_L100_GLL0(lv_ISBL0|:, lat_0|:, lon_0|:)<br id="yui_3_16_0_ym19_1_1499831043994_5521">&nbsp;&nbsp;&nbsp; v&nbsp;&nbsp;&nbsp; = a-&gt;VGRD_P0_L100_GLL0(lv_ISBL0|:, lat_0|:, lon_0|:)<br id="yui_3_16_0_ym19_1_1499831043994_5522"><br id="yui_3_16_0_ym19_1_1499831043994_5523">&nbsp;&nbsp; ; q&nbsp;&nbsp; = mixhum_ptrh (p, tk1, rh1, 2)<br id="yui_3_16_0_ym19_1_1499831043994_5524">&nbsp;&nbsp; ; q@units = "kg/kg"<br id="yui_3_16_0_ym19_1_1499831043994_5525">&nbsp;z&nbsp;&nbsp;&nbsp; = a-&gt;HGT_P0_L100_GLL0<br id="yui_3_16_0_ym19_1_1499831043994_5526"><br id="yui_3_16_0_ym19_1_1499831043994_5527">&nbsp;&nbsp;&nbsp; wspd = sqrt(u^2 + v^2)<br id="yui_3_16_0_ym19_1_1499831043994_5528">&nbsp;&nbsp;&nbsp; wdir = wind_direction(u,v,0)<br id="yui_3_16_0_ym19_1_1499831043994_5529"><br id="yui_3_16_0_ym19_1_1499831043994_5530"><br id="yui_3_16_0_ym19_1_1499831043994_5531">;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;<br id="yui_3_16_0_ym19_1_1499831043994_5532">; Get ij point in model domain for our location of interest<br id="yui_3_16_0_ym19_1_1499831043994_5533">; loc(1) is south-north (y) and loc(0) is west-east (x)<br id="yui_3_16_0_ym19_1_1499831043994_5534">; Ensure this point is in the domain, as we are not checking<br id="yui_3_16_0_ym19_1_1499831043994_5535">; We are interested in NCL array pointers, so subtract 1<br id="yui_3_16_0_ym19_1_1499831043994_5536"><br id="yui_3_16_0_ym19_1_1499831043994_5537">;&nbsp; loc = wrf_user_ll_to_ij(a, 59.6, 36.3, True)<br id="yui_3_16_0_ym19_1_1499831043994_5538">&nbsp;; locX = loc(0) - 1<br id="yui_3_16_0_ym19_1_1499831043994_5539">&nbsp;; locY = loc(1) - 1<br id="yui_3_16_0_ym19_1_1499831043994_5540"><br id="yui_3_16_0_ym19_1_1499831043994_5541"><br id="yui_3_16_0_ym19_1_1499831043994_5542">; Define a few skew-T plotting options<br id="yui_3_16_0_ym19_1_1499831043994_5543">&nbsp; skewtOpts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br id="yui_3_16_0_ym19_1_1499831043994_5544">&nbsp; skewtOpts@DrawHeightScale&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp; ; plot height scale on side<br id="yui_3_16_0_ym19_1_1499831043994_5545">&nbsp; skewtOpts@DrawHeightScaleFt = False&nbsp;&nbsp; ; plot height scale in km<br id="yui_3_16_0_ym19_1_1499831043994_5546">&nbsp; skewtOpts@DrawStandardAtm&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp; ; draw standard atm on plot<br id="yui_3_16_0_ym19_1_1499831043994_5547">&nbsp; skewtOpts@vpXF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.12&nbsp;&nbsp;&nbsp; ; controls off-set from left<br id="yui_3_16_0_ym19_1_1499831043994_5548">&nbsp; skewtOpts@vpYF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.87&nbsp;&nbsp;&nbsp; ; controls off-set from top<br id="yui_3_16_0_ym19_1_1499831043994_5549">&nbsp; skewtOpts@vpWidthF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.75&nbsp;&nbsp;&nbsp; ; controls size of plot<br id="yui_3_16_0_ym19_1_1499831043994_5550">&nbsp; skewtOpts@vpHeightF&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0.75&nbsp;&nbsp;&nbsp; ; controls size of plot<br id="yui_3_16_0_ym19_1_1499831043994_5551">&nbsp; skewtOpts@DrawFahrenheit&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp; ; use deg C scale<br id="yui_3_16_0_ym19_1_1499831043994_5552">&nbsp; skewtOpts@tiMainFontHeightF = 0.015&nbsp;&nbsp; ; change height of main title<br id="yui_3_16_0_ym19_1_1499831043994_5553">&nbsp;;skewtOpts@DrawColLine&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp; ; draw lines in black<br id="yui_3_16_0_ym19_1_1499831043994_5554">&nbsp; skewtOpts@DrawColAreaFill&nbsp;&nbsp; = True&nbsp;&nbsp;&nbsp; ; color on background plot<br id="yui_3_16_0_ym19_1_1499831043994_5555">&nbsp;;skewtOpts@DrawColAreaColor&nbsp; = "Green" ; final color may depend on the color table used<br id="yui_3_16_0_ym19_1_1499831043994_5556">&nbsp; skewtOpts@DrawColAreaColor&nbsp; = 53&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Light Green for WhViBlGrYeOrReWh color table<br id="yui_3_16_0_ym19_1_1499831043994_5557">&nbsp; skewtOpts@PrintOpts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = False&nbsp;&nbsp; ; do not print options out<br id="yui_3_16_0_ym19_1_1499831043994_5558"><br id="yui_3_16_0_ym19_1_1499831043994_5559"><br id="yui_3_16_0_ym19_1_1499831043994_5560">; Get the skew-T background<br id="yui_3_16_0_ym19_1_1499831043994_5561">&nbsp; skewtOpts@tiMainString = "Initial Condition: 12UTC 20161127, Valid for: 00UTC 20161128, D1(22.5KM)"<br id="yui_3_16_0_ym19_1_1499831043994_5562">&nbsp; skewt_bkgd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = skewT_BackGround (wks, skewtOpts)<br id="yui_3_16_0_ym19_1_1499831043994_5563">&nbsp; draw (skewt_bkgd)<br id="yui_3_16_0_ym19_1_1499831043994_5564"><br id="yui_3_16_0_ym19_1_1499831043994_5565"><br id="yui_3_16_0_ym19_1_1499831043994_5566">; Draw the skew-T plot<br id="yui_3_16_0_ym19_1_1499831043994_5567">&nbsp; dataOpts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = True<br id="yui_3_16_0_ym19_1_1499831043994_5568">&nbsp; dataOpts@colTemperature = "Red"&nbsp;&nbsp; ; default -&gt; "Foreground"<br id="yui_3_16_0_ym19_1_1499831043994_5569">&nbsp; dataOpts@Parcel&nbsp;&nbsp;&nbsp; = 1<br id="yui_3_16_0_ym19_1_1499831043994_5570">&nbsp; dataOpts@WspdWdir&nbsp; = False&nbsp; ; wind speed and dir [else: u,v]<br id="yui_3_16_0_ym19_1_1499831043994_5571">&nbsp; dataOpts@HspdHdir&nbsp; = True&nbsp;&nbsp; ; wind speed and dir [else: u,v]<br id="yui_3_16_0_ym19_1_1499831043994_5572">&nbsp;skewtOpts@tiMainString&nbsp;&nbsp; = "Raob; Thicker Wind Barbs"<br id="yui_3_16_0_ym19_1_1499831043994_5573">&nbsp; dataOpts@DrawWindBarbThk = 1.5&nbsp; ; default value is 1.0 (may be fractional)<br id="yui_3_16_0_ym19_1_1499831043994_5574"><br id="yui_3_16_0_ym19_1_1499831043994_5575">skewt_bkgd = skewT_BackGround (wks, skewtOpts)<br id="yui_3_16_0_ym19_1_1499831043994_5576">skewt_data = skewT_PlotData (wks, skewt_bkgd, p,tc,td,z,wspd,wdir,dataOpts)<br id="yui_3_16_0_ym19_1_1499831043994_5577"><br id="yui_3_16_0_ym19_1_1499831043994_5578"><br id="yui_3_16_0_ym19_1_1499831043994_5579">draw (skewt_bkgd)<br id="yui_3_16_0_ym19_1_1499831043994_5580">draw (skewt_data)<br id="yui_3_16_0_ym19_1_1499831043994_5581">&nbsp; frame(wks)<br id="yui_3_16_0_ym19_1_1499831043994_5582"><br id="yui_3_16_0_ym19_1_1499831043994_5583">end</span><div id="yui_3_16_0_ym19_1_1499831043994_5320">&nbsp;</div><div class="signature" id="yui_3_16_0_ym19_1_1499831043994_5314"><br><div id="yui_3_16_0_ym19_1_1499831043994_5588"><br></div></div></div></body></html>