<div dir="ltr"><span style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I tried keeping my time coordinates as it is and then tried to plot. It gave me an error in that says</span><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-------------</div><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial"><div>fatal:syntax error: line 242 in file pract7.ncl before or near \n </div><div>time_axis_labels(oxn&time,res,<wbr>restick)</div><div>------------------------------<wbr>--------^</div><div><br></div><div>fatal:syntax error: possibly an undefined procedure</div></div><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------------</div><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial"><b>I am not able to plot my contour with the 'time_axis_labels' function. </b></div><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial">Here is my code,</div><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---------------</div><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial"><div>f = addfile("<a href="http://precip_2005.nc/" target="_blank" style="color:rgb(17,85,204)">precip_2005.nc</a>","r")</div><div>p1 = f->precip(:,{16.25:26.75},{74.<wbr>75:86.25})</div><div>pr1 = p1(lat|:,lon|:,time|:)  </div><div>g = addfile("<a href="http://precip.day.ltm.nc/" target="_blank" style="color:rgb(17,85,204)">precip.day.ltm.nc</a>","<wbr>r") </div><div>prm = g->precip(:,{16.25:26.75},{74.<wbr>75:86.25})</div><div>prmq = prm(lat|:,lon|:,time|:)</div><div>time = f->time</div><div>prnew1 = new((/22,24,365/),float)</div><span class="gmail-im" style="color:rgb(80,0,80)"><div><br></div><div>;computing anomoly at all points</div></span><div>do i = 0,21</div><div>  Â  do j = 0,23</div><div>  Â  Â  Â  do k = 0,364</div><div>  Â  Â  Â  Â  Â  prnew1(i,j,k) = pr1(i,j,k)-prmq(i,j,k)</div><span class="gmail-im" style="color:rgb(80,0,80)"><div>  Â  Â  Â  end do </div><div>  Â  end do</div><div>end do</div></span><div>prnew1!0 = "lat"</div><div>prnew1!1 = "lon"</div><div>prnew1!2 = "time"</div><div>prn = prnew1(time|:,lat|:,lon|:)</div><div>copy_VarAtts(p1,prn)</div><div>copy_VarCoords(p1,prn)</div><div>prn@long_name = "Daily Anomoly (data-clim)"</div><div>prn1 = prn(lon|:,lat|:,time|:)</div><div>pn = prn1(time|:,lat|:,lon|:)</div><span class="gmail-im" style="color:rgb(80,0,80)"><div><br></div><div><br></div><div>;applying fft over anomoly at all points</div></span><div>ft1 = new((/2,365,22,24/),float)</div><div>do h = 0,21</div><div>  Â  do k = 0,23</div><div>  Â  Â  Â  gt = cfftf(pn(:,h,k),0.0,0)</div><div>  Â  Â  Â  ft1(0,:,h,k) = gt(0,:)</div><div>  Â  Â  Â  ft1(1,:,h,k) = gt(1,:)</div><span class="gmail-im" style="color:rgb(80,0,80)"><div>  Â  end do</div><div>end do</div><div><br></div><div><br></div><div>;filtering out unwanted frequencies</div></span><div>do h = 0,21</div><div>  Â  do k = 0,23</div><div>  Â  Â  Â  ft1(0,13:352,h,k) = 0.0</div><div>  Â  Â  Â  ft1(1,13:352,h,k) = 0.0</div><div>  Â  Â  Â  ft1(0,360:,h,k)  Â = 0.0</div><div>  Â  Â  Â  ft1(1,360:,h,k)  Â = 0.0</div><div>  Â  Â  Â  ft1(0,0:5,h,k)  Â  = 0.0</div><div>  Â  Â  Â  ft1(1,0:5,h,k)  Â  = 0.0</div><span class="gmail-im" style="color:rgb(80,0,80)"><div>  Â  end do</div><div>end do</div><div><br></div><div>;ifft of required frequencies</div></span><div>ift1 = new((/365,22,24/),float)</div><div>do h = 0,21</div><div>  Â  do k = 0,23</div><div>  Â  Â  Â  kt = cfftb(ft1(:,:,h,k),1)</div><div>  Â  Â  Â  ift1(:,h,k) = kt(:)</div><div>  Â  end do</div><div>end do</div><div>copy_VarAtts(pn,ift1)</div><div>copy_VarCoords(pn,ift1)</div><div>oxn = ift1(lon|:,lat|:,time|:)</div><div>oxn@long_name = "30-60 day anomaly of precipitation"</div><div><br></div><div>wks  Â = gsn_open_wks ("png", "lat_time3" )  ; send graphics to PNG file </div><span class="gmail-im" style="color:rgb(80,0,80)"><div> res  Â  Â  Â  Â  Â  Â  Â  Â  = True  Â  Â  Â  Â  Â  Â  Â  ; plot mods desired</div></span><div> res@cnFillOn  Â  Â  Â  Â = True  Â  Â  Â  Â  Â  Â  Â  ; color on</div><div> res@lbLabelStride  Â  = 2  Â  Â  Â  Â  Â  Â  Â  ; every other label</div><div> res@lbOrientation  Â  = "Vertical"  Â  Â  Â  Â  ; vertical label bar</div><div> res@pmLabelBarOrthogonalPosF = -0.04  Â  Â  Â ; move label bar closer to axis</div><div> res@cnLinesOn  Â  Â  Â  = False  Â  Â  Â  Â  Â  Â  Â ; turn off contour lines</div><div> res@cnFillPalette  Â  = "ViBlGrWhYeOrRe"  Â  ; set color map</div><div> </div><div> res@tiMainString  Â  Â = "Anomalies at 80.25E central india"  ; title</div><div><br></div><div> res@vpXF  Â  Â  Â  Â  Â  Â = 0.12  Â  Â  Â  Â  Â  Â  Â  ; default is 0.2 (aspect ratio)</div><div> res@vpYF  Â  Â  Â  Â  Â  Â = 0.8  Â  Â  Â  Â  Â  Â  Â  Â ; default is 0.8</div><div> res@vpHeightF  Â  Â  Â  = 0.4  Â  Â  Â  Â  Â  Â  Â  Â ; default is 0.6</div><div> res@vpWidthF  Â  Â  Â  Â = 0.75  Â  Â  Â  Â  Â  Â  Â  ; default is 0.6</div><div><br></div><div> res@cnLevelSelectionMode = "AutomaticLevels" ; manual levels</div><div><br></div><div> restick = True</div><div> restick@ttmFormat = "%d %c %Y"</div><div>time_axis_labels(oxn&time,res,<wbr>restick)</div><div>plot = gsn_csm_contour(wks,oxn({80.<wbr>25},:,200:215), res)</div></div><div style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------</div><div class="gmail-yj6qo" style="font-size:14px;text-decoration-style:initial;text-decoration-color:initial"></div><br class="gmail-Apple-interchange-newline"></div>