Re: time label x axis has one hour shift to the left

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Thu Jan 16 2014 - 10:23:47 MST

Hi,

I'm not totally convinced time_axis_labels is doing the right thing in this case. The first time in your data is 13:58:43. Although the docs for time_axis_labels shows an example of using format "%H:00", it looks like it takes that value of 13:58:43 and simply makes it "13:00", effectively truncating the time value. Indeed, if I use a format of "%H:%M", the plot's labels look correct for the data; unfortunately they are not at nice, top-of-the-hour, intervals. Check out the ttmValues resource in the docs for time_axis_labels for a way to force specific time-values used in the labels.

Hope that helps”­
Rick
 
On Jan 15, 2014, at 6:53 PM, "Lijun Diao" <ljdiao@gmail.com> wrote:

> Hi, all:
>
> I am trying to plot an xy plot with time label x axis. The time data is UTC in secondes. I called ”°time_axis_labels”± precedure. However, it seems that the plot is one hour shifted to the left. My first non-missing data value begins at 14:01:37 and the last ends at 21:37:13. However, the graph shows the time series begins right after 13:00:00 and ends before 21:00:00 . Please see the attached script, data file and plot.
>
> thanks for any suggestions!
>
> -----------------------------------------------------------------------------
> Lijun Diao
> ldiao@uh.edu
> Research Assistant
> Department of Earth & Atmospheric Sciences
> University of Houston
> 4800 Calhoun RD., Bldg. S&R1-312
> Houston, TX 77204-5007
> <test.ncl><test.png><test.txt>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jan 16 10:23:58 2014

This archive was generated by hypermail 2.1.8 : Sun Jan 19 2014 - 21:56:35 MST