<div dir="ltr"><div>Sir,</div><div>I am using the following script to plot U wind from WRF output file. I am able to plot the figure, but the X-axis tick marks are not appearing. The script is follow<br></div><div><br></div><div>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/wrf/WRF_contributed.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/time_axis_labels.ncl"<br><br>begin<br><br> fName = "/home/emsuser/Build_WRF/wrfprd/results/do3/t/<a href="http://do3.nc">do3.nc</a>"<br> f = addfile(fName, "r")<br><br> U1 = f->U<br> U = wrf_user_unstagger(U1,U1@stagger)<br> lat = f->XLAT(0,:,0) <br> lon = f->XLONG(0,0,:) <br> znu = f->ZNU(0,:) ; eta levels<br> lev = znu*1000 ; [996.9073..5.045747]<br> Time = chartostring( f->Times(:,:) )<br><br> U!1 = "lev"<br> lev@units= "hPa"<br> U!0 = "Time"<br> U!2 = "lat"<br> lat@units = "degree_north"<br> U!3 = "lon"<br> lon@units = "degree_east"<br><br> U&lev = lev<br> U&Time = Time<br> U&lat = lat<br> U&lon = lon<br><br> wgt = (/ 1., 3., 4., 3., 1./) ; wgts for temporal smooth<br> wgt = wgt/sum(wgt) ; normalize<br><br> lat2d = f->XLAT(0,:,:) <br> lon2d = f->XLONG(0,:,:) <br><br> slice = U(lev|:,Time|:,lat|:,lon|:) ; trick to copy meta data<br> slice1 = U(lev|:,Time|1,lat|84:234,lon|175)<br> printVarSummary(slice1)<br><br> <br> wks = gsn_open_wks("png" ,"WRF_U_Wind_New_1") ; open workstation<br> <br>;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>; Create resources for cross section(s)<br>;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br> resx = True<br> resx@gsnMaximize = True <br> resx@cnFillOn = True ; turn on color fill<br> resx@cnLinesOn = False ; turn lines on/off ; True is default<br> resx@cnLineLabelsOn = False ; turn line labels on/off ; True is default<br> resx@cnFillPalette = "ncl_default"<br><br> nLabels = 8 ; arbitrary <br> resx@tmXBMode = "Explicit"<br> resx@tmXBLabels = new(nLabels,"string")<br> resx@tmXBValues := toint(fspan(84,234,nLabels))<br> do i=0,nLabels-1<br> x = lon2d(resx@tmXBValues(i),176)<br> y = lat2d(resx@tmXBValues(i),176)<br> resx@tmXBLabels(i) = sprintf("%5.1f", y)+"~C~"+sprintf("%5.1f", x)<br> print(resx@tmXBLabels(i))<br> end do <br><br> plot = gsn_csm_pres_hgt(wks, slice1, resx) <br><br>end</div><div><br></div><div>I have attached the plot for ready reference. Any help is highly appreciated.<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="font-size:10pt;font-family:"Mangal","serif"" lang="HI">Regards<br>प्रसाद कुंजीर</span><span style="font-size:9pt;font-family:"Arial","sans-serif"">/ </span><span style="font-size:10.5pt;font-family:"Arial","sans-serif"">Prasad Kunjeer<br>
</span><span><span style="font-size:10.5pt;font-family:"Mangal","serif"" lang="HI">वैज्ञानिक -</span></span><span lang="hi"> सी</span><span><span style="font-size:10.5pt;font-family:"Mangal","serif"" lang="HI"> / </span><span style="font-size:10.5pt;font-family:"Arial","sans-serif"">Scientist - C<br>
</span><span style="font-size:10.5pt;font-family:"Mangal","serif"" lang="HI">केन्द्रीय जल और विद्युत अनुसंधान</span><span style="font-size:10.5pt;font-family:"Arial","sans-serif"" lang="HI"> </span><span style="font-size:10.5pt;font-family:"Mangal","serif"" lang="HI">शाला / </span><span style="font-size:10.5pt;font-family:"Arial","sans-serif"">Central Water and Power Research Station<br>
</span><span style="font-size:10.5pt;font-family:"Mangal","serif"" lang="HI">पुणे </span><span style="font-size:10.5pt;font-family:"Arial","sans-serif"">411 024/ Pune 411 024</span></span></div></div></div></div></div></div></div>