<div dir="ltr"><div>Hi Hesham,<br></div><div>Due to the fact that you are reading in an
 ascii file, are working on daily data, and wish to plot customized time
 ranges, this is a case where conceptually what you ask for sounds 
simple but in reality it is not.<br><br></div><div>I have come up with an example code that (somewhat) does what you want. You will have to modify the attached script to suit your own needs. I cannot spend any more time on this. You will also have to take a close look at the coding to verify that the data is being read in and used correctly. <br></div><div><br></div><div>I
 used a number of functions to parse and prepare the ascii data for 
plotting: str_squeeze, str_split, str_split_csv, tofloat, toint and 
sprinti. I also used cd_inv_calendar to prepare a time array that could 
be used with the time_axis_labels procedure so that you would get nicer 
tick mark labels. Note that you will likely need to play with 
time_axis_labels somewhat to get the tick mark labels where you want 
them:<br><br><a href="http://www.ncl.ucar.edu/Document/Functions/User_contributed/time_axis_labels.shtml">http://www.ncl.ucar.edu/Document/Functions/User_contributed/time_axis_labels.shtml</a><br><br></div><div>Finally, note that you can set the range of times to be plotted by setting stime/etime. You can plot any range of times from a few days to a few months.<br></div><div><br></div><div>I
 have attached the code and an example graphic here. If you have any 
further questions please respond to the ncl-talk email list and not to 
me personally. That way others can see the dialog and can assist.<br></div><div>Good luck,<br></div>Adam </div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 24, 2015 at 8:45 AM, Hesham Afify <span dir="ltr">&lt;<a href="mailto:algocomp@gmail.com" target="_blank">algocomp@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:large">Hi All</div><div class="gmail_default" style="font-size:large">I have some observational daily data for a couple of years, this data have many changes in regularity by the mean it toke on daily, one per three days, and one per six days patterns, have some missed periods.</div><div class="gmail_default" style="font-size:large">the point here that I want to plot this data and my inquiry about that is how to plot this data in daily, weekly, and monthly basis.</div><div class="gmail_default" style="font-size:large">a sample of this data is attached</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">best regards</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-size:large">Hesham   </div><div><br></div>
</font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>