<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>hi,</div><div>&nbsp; &nbsp;when i use&nbsp;<span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">gsn_csm_lat_time, i got the following warning info:</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">&nbsp; &nbsp; &nbsp;&nbsp;</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">warning:_NhlCreateSplineCoordApprox:&nbsp;Attempt&nbsp;to&nbsp;create&nbsp;spline&nbsp;approximation&nbsp;for&nbsp;X&nbsp;axis&nbsp;failed:&nbsp;consider&nbsp;adjusting&nbsp;trXTensionF&nbsp;value</span></div><div>&nbsp; &nbsp; &nbsp;warning:IrTransInitialize:&nbsp;error&nbsp;creating&nbsp;spline&nbsp;approximation&nbsp;for&nbsp;trXCoordPoints;&nbsp;defaulting&nbsp;to&nbsp;linear&nbsp;</div>
<div>&nbsp;and the x-axis didn't appear.</div><div><br></div><div>the below is my script:</div><div>&nbsp;&nbsp;</div><div><div>&nbsp;load&nbsp;"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load&nbsp;"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>load&nbsp;"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br>load&nbsp;"$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"<br><br>begin<br><br>&nbsp;&nbsp;&nbsp;&nbsp;minlat&nbsp;=&nbsp;9<br>&nbsp;&nbsp;&nbsp;&nbsp;maxlat&nbsp;=&nbsp;56<br>&nbsp;&nbsp;&nbsp;&nbsp;minlon&nbsp;=&nbsp;70<br>&nbsp;&nbsp;&nbsp;&nbsp;maxlon&nbsp;=&nbsp;150<br><br><br>files10=systemfunc("cat&nbsp;&nbsp;nccolumn.log")<br>print(files10)<br><br>setfileoption("nc","Format","LargeFile")<br>mons01ff=addfiles(files10,"r")<br>ListSetType(mons01ff,"join")<br><br><br>slat10=mons01ff[:]-&gt;lat<br>slon10=mons01ff[:]-&gt;lon<br>colm10=mons01ff[:]-&gt;column_ozone<br>colm10dms=dimsizes(colm10)<br>colm10@_FillValue=999.0<br>colm10=colm10*0.1<br><br>pcolm10=colm10(:,{minlon:maxlon},{minlat:maxlat})<br><br><br>tlat10=slat10(0,{minlat:maxlat})<br>tlon10=slon10(0,{minlon:maxlon})<br><br><br>tlat10@units="degrees-north"<br>tlon10@units="degrees-east"<br><br><br><br>acolm10=dim_avg_n(pcolm10,1)<br>;print("----"+dimsizes(acolm10))<br><br>times10=yyyymm_time(2010,2012,"integer")<br>;times10=yyyymm_to_yyyyfrac(itimes10,&nbsp;0.0)<br>times10!0&nbsp;=&nbsp;"time"<br>times10@units="Months&nbsp;since&nbsp;January&nbsp;2010"<br>times10@long_name="Months"<br><br>acolm10!0="time"<br>acolm10!1="lat"<br>acolm10@units=colm10@units<br>acolm10@long_name=colm10@long_name<br>acolm10&amp;time=times10<br>acolm10&amp;lat=tlat10<br>;&nbsp;print(times10)<br><br>printVarSummary(acolm10)<br><br>;printMinMax(acolm10&amp;lat,&nbsp;0)<br>;&nbsp;printMinMax(tlon10,&nbsp;0)<br><br>print(acolm10&amp;time)<br><br>delfile=systemfunc("rm&nbsp;"+"zonal_column"+".png")<br>wks=gsn_open_wks("png","zonal_column")<br>gsn_define_colormap(wks,"GMT_no_green")<br>&nbsp;&nbsp;&nbsp;res&nbsp;&nbsp;=&nbsp;True<br>&nbsp;&nbsp;&nbsp;res@cnFillOn&nbsp;&nbsp;=&nbsp;&nbsp;True<br>&nbsp;&nbsp;&nbsp;res@cnLinesOn&nbsp;=&nbsp;&nbsp;False<br>&nbsp;&nbsp;&nbsp;res@gsnAddCyclic&nbsp;&nbsp;=&nbsp;False<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;;res@pmTickMarkDisplayMode&nbsp;=&nbsp;"Always"<br>&nbsp;&nbsp;&nbsp;res@tmYLMode&nbsp;=&nbsp;"Explicit"<br>&nbsp;&nbsp;&nbsp;res@tmYLValues&nbsp;=(/10,15,20,25,30,35,40,45,50,55/)<br>&nbsp;&nbsp;&nbsp;res@tmYLLabels&nbsp;=(/"10~S~o~N~N","15~S~o~N~N","20~S~o~N~N","25~S~o~N~N",\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"30~S~o~N~N","35~S~o~N~N","40~S~o~N~N",&nbsp;\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"45~S~o~N~N","50~S~o~N~N","55~S~o~N~N"/)<br>&nbsp;&nbsp;&nbsp;;res@tmXBMinorOn&nbsp;=&nbsp;&nbsp;False&nbsp;<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;res@tmXBMode&nbsp;=&nbsp;"Explicit"<br>&nbsp;&nbsp;&nbsp;;res@tmXBFormat&nbsp;=&nbsp;"f"<br>&nbsp;<font color="#ff0000">&nbsp;&nbsp;;res@tmXBValues&nbsp;=(/201001,201002,201003,201004,201005,201006,\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201007,201008,201009,201010,201011,201012,\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201101,201102,201103,201104,201105,201106,\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201107,201108,201109,201110,201111,201112,\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201201,201202,201203,201204,201205,201206,\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201207,201208,201209,201210,201211,201212/)</font><br><br>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff">res@tmXBValues&nbsp;=(/201001,201003,201006,201009,201012,\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201101,201103,201006,201109,201112,\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201201,201203,201206,201209,201212/)</font><br><br>&nbsp;&nbsp;<font color="#ff0000">&nbsp;;res@tmXBLabels&nbsp;=(/"JAN","FEB","MAR","APR","MAY","JUN",\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"JUL","AUG","SEP","OCT","NOV","DEC",\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"JAN","FEB","MAR","APR","MAY","JUN",\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"JUL","AUG","SEP","OCT","NOV","DEC",\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"JAN","FEB","MAR","APR","MAY","JUN",\<br>&nbsp;&nbsp;&nbsp;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"JUL","AUG","SEP","OCT","NOV","DEC"/)</font><br>&nbsp;&nbsp;<font color="#0000ff">&nbsp;res@tmXBLabels&nbsp;=(/"JAN~C~2010","MAR~C~2010","JUN~C~2010","SEP~C~2010","DEC~C~2010",\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"JAN~C~2011","MAR~C~2011","JUN~C~2011","SEP~C~2011","DEC~C~2011",\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"JAN~C~2012","MAR~C~2012","JUN~C~2012","SEP~C~2012","DEC~C~2012"/)</font><br>&nbsp;&nbsp;&nbsp;res@tmXBLabelFontHeightF&nbsp;=&nbsp;0.015<br>&nbsp;&nbsp;&nbsp;;res@tmYLMinorOn&nbsp;=&nbsp;False<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;res@tiMainString&nbsp;=&nbsp;""<br><br>&nbsp;&nbsp;&nbsp;&nbsp;plot=gsn_csm_lat_time(wks,acolm10(lat|:,time|:),res)<br><br>end&nbsp;</div></div><div><br></div><div><br></div><div>the red letters is my origin destination, the blue letters is my test, but they didn't give the right plot.</div><div><br></div><div><img src="cid:_Foxmail.1@2918dbd6-6678-fe5f-1fc0-ed02a859d86a" border="0"></div><div>the following is my running information:</div><div>&nbsp;<span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Variable:&nbsp;acolm10</span></div><div>Type:&nbsp;float<br>Total&nbsp;Size:&nbsp;6768&nbsp;bytes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1692&nbsp;values<br>Number&nbsp;of&nbsp;Dimensions:&nbsp;2<br>Dimensions&nbsp;and&nbsp;sizes:&nbsp;&nbsp;&nbsp;[time&nbsp;|&nbsp;36]&nbsp;x&nbsp;[lat&nbsp;|&nbsp;47]<br>Coordinates:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;time:&nbsp;[201001..201212]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lat:&nbsp;[9.5..55.5]<br>Number&nbsp;Of&nbsp;Attributes:&nbsp;3<br>&nbsp;&nbsp;long_name&nbsp;:&nbsp;&nbsp;&nbsp;ozone&nbsp;column<br>&nbsp;&nbsp;units&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DU<br>&nbsp;&nbsp;_FillValue&nbsp;:&nbsp;&nbsp;999<br><br><br>Variable:&nbsp;time&nbsp;(coordinate)<br>Type:&nbsp;integer<br>Total&nbsp;Size:&nbsp;144&nbsp;bytes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;36&nbsp;values<br>Number&nbsp;of&nbsp;Dimensions:&nbsp;1<br>Dimensions&nbsp;and&nbsp;sizes:&nbsp;&nbsp;&nbsp;[time&nbsp;|&nbsp;36]<br>Coordinates:<br>Number&nbsp;Of&nbsp;Attributes:&nbsp;2<br>&nbsp;&nbsp;units&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Months&nbsp;since&nbsp;January&nbsp;2010<br>&nbsp;&nbsp;long_name&nbsp;:&nbsp;&nbsp;&nbsp;Months<br>(0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201001<br>(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201002<br>(2)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201003<br>(3)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201004<br>(4)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201005<br>(5)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201006<br>(6)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201007<br>(7)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201008<br>(8)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201009<br>(9)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;201010<br>(10)&nbsp;&nbsp;&nbsp;&nbsp;201011<br>(11)&nbsp;&nbsp;&nbsp;&nbsp;201012<br>(12)&nbsp;&nbsp;&nbsp;&nbsp;201101<br>(13)&nbsp;&nbsp;&nbsp;&nbsp;201102<br>(14)&nbsp;&nbsp;&nbsp;&nbsp;201103<br>(15)&nbsp;&nbsp;&nbsp;&nbsp;201104<br>(16)&nbsp;&nbsp;&nbsp;&nbsp;201105<br>(17)&nbsp;&nbsp;&nbsp;&nbsp;201106<br>(18)&nbsp;&nbsp;&nbsp;&nbsp;201107<br>(19)&nbsp;&nbsp;&nbsp;&nbsp;201108<br>(20)&nbsp;&nbsp;&nbsp;&nbsp;201109<br>(21)&nbsp;&nbsp;&nbsp;&nbsp;201110<br>(22)&nbsp;&nbsp;&nbsp;&nbsp;201111<br>(23)&nbsp;&nbsp;&nbsp;&nbsp;201112<br>(24)&nbsp;&nbsp;&nbsp;&nbsp;201201<br>(25)&nbsp;&nbsp;&nbsp;&nbsp;201202<br>(26)&nbsp;&nbsp;&nbsp;&nbsp;201203<br>(27)&nbsp;&nbsp;&nbsp;&nbsp;201204<br>(28)&nbsp;&nbsp;&nbsp;&nbsp;201205<br>(29)&nbsp;&nbsp;&nbsp;&nbsp;201206<br>(30)&nbsp;&nbsp;&nbsp;&nbsp;201207<br>(31)&nbsp;&nbsp;&nbsp;&nbsp;201208<br>(32)&nbsp;&nbsp;&nbsp;&nbsp;201209<br>(33)&nbsp;&nbsp;&nbsp;&nbsp;201210<br>(34)&nbsp;&nbsp;&nbsp;&nbsp;201211<br>(35)&nbsp;&nbsp;&nbsp;&nbsp;201212<br>warning:_NhlCreateSplineCoordApprox:&nbsp;Attempt&nbsp;to&nbsp;create&nbsp;spline&nbsp;approximation&nbsp;for&nbsp;X&nbsp;axis&nbsp;failed:&nbsp;consider&nbsp;adjusting&nbsp;trXTensionF&nbsp;value<br>warning:IrTransInitialize:&nbsp;error&nbsp;creating&nbsp;spline&nbsp;approximation&nbsp;for&nbsp;trXCoordPoints;&nbsp;defaulting&nbsp;to&nbsp;linear&nbsp;</div><div><br></div><div><br></div><div>can you give me some advice for tuning this irregular x-axis time labels?</div><div><br></div><div>thanks</div><div><br></div><div><br></div><div><br></div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>dyjbean@gmail.com</div></div></span></div>
</body></html>