<div>Hi all,</div><div>I'm working on a latitude v.s. month contour plot. But it's hard for me to change the xArray and says irregular coordinate array sfXArray non-monotonic: defaulting sfXArray&nbsp;. It's appreciate if you could help me check my script. Thanks a lot!</div><div><br></div><div><div>f1 &nbsp; &nbsp; = addfile("JanTmon.nc","r")</div><div>t1 &nbsp;= short2flt( f1-&gt;t )</div><div>year1=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt1=t1(:,:,0)</div><div>ttt1=dim_avg_n(t1,2)</div><div>copy_VarMeta(tt1,ttt1)</div><div>t1new=ttt1(latitude|:,time|:)</div><div>rc1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= regCoef(year1,t1new)</div><div><span style="line-height: 1.5;">f2 &nbsp; &nbsp; = addfile("FebTmon.nc","r")</span></div><div>t2 &nbsp;= short2flt( f2-&gt;t )</div><div>year2=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt2=t2(:,:,0)</div><div>ttt2=dim_avg_n(t2,2)</div><div>copy_VarMeta(tt2,ttt2)</div><div>t2new=ttt2(latitude|:,time|:)</div><div>rc2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= regCoef(year2,t2new)</div><div><span style="line-height: 1.5;">f3 &nbsp; &nbsp; = addfile("MarTmon.nc","r")</span></div><div>t3 &nbsp; = short2flt( f3-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt3=t3(:,:,0)</div><div>ttt3=dim_avg_n(t3,2)</div><div>copy_VarMeta(tt3,ttt3)</div><div>t3new=ttt3(latitude|:,time|:)</div><div>rc3 &nbsp; &nbsp; &nbsp; &nbsp; = regCoef(year,t3new)</div><div><span style="line-height: 1.5;">f4 &nbsp; &nbsp;= addfile("AprTmon.nc","r")</span></div><div>t4 &nbsp; = short2flt( f4-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt4=t4(:,:,0)</div><div>ttt4=dim_avg_n(t4,2)</div><div>copy_VarMeta(tt4,ttt4)</div><div>t4new=ttt4(latitude|:,time|:)</div><div>rc4 &nbsp; &nbsp; &nbsp; &nbsp; = regCoef(year,t4new)</div><div><span style="line-height: 1.5;">f5 &nbsp; &nbsp;= addfile("MayTmon.nc","r")</span></div><div>t5 &nbsp; = short2flt( f5-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt5=t5(:,:,0)</div><div>ttt5=dim_avg_n(t5,2)</div><div>copy_VarMeta(tt5,ttt5)</div><div>t5new=ttt5(latitude|:,time|:)</div><div>rc5 &nbsp; &nbsp; &nbsp; &nbsp;= regCoef(year,t5new)</div><div><span style="line-height: 1.5;">f6 &nbsp; &nbsp;= addfile("JunTmon.nc","r")</span></div><div>t6 &nbsp; = short2flt( f6-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt6=t6(:,:,0)</div><div>ttt6=dim_avg_n(t6,2)</div><div>copy_VarMeta(tt6,ttt6)</div><div>t6new=ttt6(latitude|:,time|:)</div><div>rc6 &nbsp; &nbsp; &nbsp; &nbsp;= regCoef(year,t6new)</div><div><span style="line-height: 1.5;">f7 &nbsp; &nbsp;= addfile("JlyTmon.nc","r")</span></div><div>t7 &nbsp; = short2flt( f7-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt7=t7(:,:,0)</div><div>ttt7=dim_avg_n(t7,2)</div><div>copy_VarMeta(tt7,ttt7)</div><div>t7new=ttt7(latitude|:,time|:)</div><div>rc7 &nbsp; &nbsp; &nbsp; &nbsp;= regCoef(year,t7new)</div><div><span style="line-height: 1.5;">f8 &nbsp; &nbsp;= addfile("AugTmon.nc","r")</span></div><div>t8 &nbsp; = short2flt( f8-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt8=t8(:,:,0)</div><div>ttt8=dim_avg_n(t8,2)</div><div>copy_VarMeta(tt8,ttt8)</div><div>t8new=ttt8(latitude|:,time|:)</div><div>rc8 &nbsp; &nbsp; &nbsp; &nbsp;= regCoef(year,t8new)</div><div><span style="line-height: 1.5;">f9 &nbsp; &nbsp;= addfile("SepTmon.nc","r")</span></div><div>t9 &nbsp; = short2flt( f9-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt9=t9(:,:,0)</div><div>ttt9=dim_avg_n(t9,2)</div><div>copy_VarMeta(tt9,ttt9)</div><div>t9new=ttt9(latitude|:,time|:)</div><div>rc9 &nbsp; &nbsp; &nbsp; = regCoef(year,t9new)</div><div><span style="line-height: 1.5;">f10 &nbsp; &nbsp; = addfile("OctTmon.nc","r")</span></div><div>t10 &nbsp; = short2flt( f10-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt10=t10(:,:,0)</div><div>ttt10=dim_avg_n(t10,2)</div><div>copy_VarMeta(tt10,ttt10)</div><div>t10new=ttt10(latitude|:,time|:)</div><div>rc10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= regCoef(year,t10new)</div><div><span style="line-height: 1.5;">f11 &nbsp; &nbsp;= addfile("NovTmon.nc","r")</span></div><div>t11 &nbsp;= short2flt( f11-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt11=t11(:,:,0)</div><div>ttt11=dim_avg_n(t11,2)</div><div>copy_VarMeta(tt11,ttt11)</div><div>t11new=ttt11(latitude|:,time|:)</div><div>rc11 &nbsp; &nbsp; &nbsp; = regCoef(year,t11new)</div><div><span style="line-height: 1.5;">f12 &nbsp; &nbsp;= addfile("DecTmon.nc","r")</span></div><div>t12 &nbsp;= short2flt( f12-&gt;t )</div><div>year=(/1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000/)</div><div>tt12=t12(:,:,0)</div><div>ttt12=dim_avg_n(t12,2)</div><div>copy_VarMeta(tt12,ttt12)</div><div>t12new=ttt12(latitude|:,time|:)</div><div>rc12 &nbsp; &nbsp; &nbsp; = regCoef(year,t12new)</div><div><br></div><div><span style="line-height: 1.5;">data=new((/12,dimsizes(rc12)/),float)</span></div><div>data(0,:)=rc6</div><div>data(1,:)=rc7</div><div>data(2,:)=rc8</div><div>data(3,:)=rc9</div><div>data(4,:)=rc10</div><div>data(5,:)=rc11</div><div>data(6,:)=rc12</div><div>data(7,:)=rc1</div><div>data(8,:)=rc2</div><div>data(9,:)=rc3</div><div>data(10,:)=rc4</div><div>data(11,:)=rc5</div><div>data=data*10</div><div><span style="line-height: 1.5;">lat=f1-&gt;latitude</span></div><div><span style="line-height: 1.5;">data!1="la"</span></div><div><span style="line-height: 1.5;">lat=f1-&gt;latitude</span></div><div>data&amp;la=lat</div><div><span style="line-height: 1.5;">data!0="month"</span></div><div>data&amp;month=(/6,7,8,9,10,11,12,1,2,3,4,5/)</div><div>datareverse=data(la|:,month|:)</div><div>wks &nbsp;= gsn_open_wks("eps" ,"12")&nbsp;</div><div><span style="line-height: 1.5;">res &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True &nbsp; &nbsp; &nbsp;&nbsp;</span></div><div><span style="line-height: 1.5;">res@cnLevelSelectionMode = "ManualLevels"</span></div><div>resources@tmXBMode &nbsp; &nbsp; &nbsp;= "Explicit" &nbsp;&nbsp;</div><div>resources@tmXBValues &nbsp; &nbsp;= ispan(0,12,1); Values from 0 to 12.</div><div>resources@tmXBLabels &nbsp; &nbsp;= (/"J","J","A","S","O","N","D","J","F","M","A","M"/)</div><div><span style="line-height: 1.5;">res@cnMinLevelValF &nbsp; &nbsp; &nbsp; = -4</span></div><div>res@cnMaxLevelValF &nbsp; &nbsp; &nbsp; = &nbsp;4</div><div>res@cnLevelSpacingF &nbsp; &nbsp; &nbsp;= &nbsp;0.5&nbsp;</div><div><span style="line-height: 1.5;">plot = gsn_csm_contour(wks,datareverse,res) &nbsp;</span></div></div>