<div dir="ltr"><div><div>I think your question is about the 'time' being plotted along the x-axis<br><br></div>The source file has<br><br></div>%> ncdump -h <a href="http://pacific_sst_test_data.nc" target="_blank">pacific_sst_test_data.nc</a><div><br>netcdf pacific_sst_test_data {<br>dimensions:<br>        time = 29 ;<br>        lat = 60 ;<br>        lon = 180 ;<br>variables:<br>        float SST(time, lat, lon) ;<br>                SST:units = "C" ;<br>                SST:info = "period 1965-1993, from the daSilva data set (based on COADS)" ;<br>                SST:long_name = "annual SST anomalies" ;<br>                SST:_FillValue = -1.e+10f ;<br>        float time(time) ;<br>                time:long_name = "time" ;<br>                <span style="color:rgb(255,0,0)"><b>time:units = "?" </b></span>;<br>====<br></div><div>printing 'time' yields<br><br>Variable: time<br>Type: float<br>Total Size: 116 bytes<br>            29 values<br>Number of Dimensions: 1<br>Dimensions and sizes:   [time | 29]<br>Coordinates: <br>            time: [23574.5..23910.5]<br>Number Of Attributes: 2<br>  long_name :   time<br>  units :       ?<br>(0)     23574.5<br>(1)     23586.5<br>(2)     23598.5<br>(3)     23610.5<br>(4)     23622.5<br></div><div>[snip]<br><br>=====<br></div><div>These 'time' are  being plotted. Without a units attribute, there is no way to convert to (say) yyyy.fraction.<br>=====<br></div><div>***IF**** there was a units attribute like: " {seconds/hours/days} since ....." <br>then something like the following could be used:<br><br>  yyyymm = cd_calendar(x&time,-1)<br>  yrfrac = yyyymm_to_yyyyfrac(yyyymm, 0.5)<br> ;print(yyyymm+"  "+yrfrac)<br><br></div><div>[snip]<br>replace<br>       plot(n) = gsn_csm_xy (wks,<span style="color:rgb(0,0,255)"><b>x&time</b></span>,eof_ts(n,:),rts)<br></div><div>with<br>        plot(n) = gsn_csm_xy (wks,<span style="color:rgb(0,0,255)"><b>yrfrac</b></span>,eof_ts(n,:),rts)<br></div><div><br></div><div>Then the x/time-axis would have year and fraction of year.<br><br>===<br></div><div>NCL's 'date category' has many functions for handling 'time'.<br></div><div>Become familiar with thes.<br><br><a href="http://www.ncl.ucar.edu/Document/Functions/date.shtml">http://www.ncl.ucar.edu/Document/Functions/date.shtml</a><br><br></div><div>Good luck<br></div><div><br><br></div><div><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 16, 2017 at 4:16 AM, MADHU V <span dir="ltr"><<a href="mailto:madhuv68@gmail.com" target="_blank">madhuv68@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Friends<div><br></div><div>I am attaching the ncl cript for the EOF calculations. In that i need the PC componet graph is not appearing in the year wise scale. </div><div><br></div><div>I need to display my PC graph in time series. year wise.</div><div><br></div><div>I here by attach the script which I have taken from the Data analysis of the NCL site. </div><div><br></div><div>Link attached.</div><div><a href="http://www.ncl.ucar.edu/Applications/eof.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/eof.shtml</a><br></div><div><br></div><div>the script file is </div><div><br></div><div><a href="http://www.ncl.ucar.edu/Applications/Scripts/eof_2.ncl" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/Scripts/eof_2.ncl</a><br></div><div><br></div><div>In the script file help me to modify the scritp , so that i can get the plot in time series ( years wise)</div><div><br></div><div><br></div><div>Your help will be greatly appreciated. I am new to this package.</div><div><br></div><div>regards</div><span class="HOEnZb"><font color="#888888"><div>Madhu</div><div><br></div><div><br></div><div><br clear="all"><div><br></div>-- <br><div class="m_6392822464652991424gmail_signature" data-smartmail="gmail_signature">Dr. V Madhu M.Sc, B.Ed, M.Tech, Ph,D<br>Assistant Professor<br>Department of Atmospheric Sciences<br>School of Marine Science<br>Cochin University of Science and Technology<br>Lakeside Campus, Cochin-16<br>Phone:<a href="tel:+91%20484%20286%203814" value="+914842863814" target="_blank">+91 (484) 2863814</a>, Fax: <a href="tel:+91%20484%20235%203662" value="+914842353662" target="_blank">+91 (484)2353662</a><br>Email: <a href="mailto:madhuv@cusat.ac.in" target="_blank">madhuv@cusat.ac.in</a><br><br></div>
</div></font></span></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>