comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Tick labels and dates
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Tick labels and dates [message #41839 is a reply to message #41838] Tue, 23 November 2004 13:41 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Mike,
you want to look at the examples given for the LABEL_DATE function. It
assumes that you have time array as Julian day. If you don't (and who does)
you will have to do your own conversion. I keep my time usually as CDF
epoch, so I wrote myself a little function that converts CDF epoch first to
year, month, day, hh, mm, ss with cdf_epoch and then use julday to calculate
the julian day from these data. Now conversion is pretty much transparent
without having to worry what Julian day means. LABEL_DATE is pretty flexible
in the date format and you can easily switch between the formats you like.
AFAIK, there is no other build-in functionality for time axis.

Haje


"Michael Wallace" <mwallace.no.spam@no.spam.swri.edu.invalid> wrote in
message news:10q7aj04g0ail9c@corp.supernews.com...
> I have never been good with figuring how how all the date formatting
> stuff works. I want to label the X axis on a few of my plots with some
> readable date strings. In certain cases, I'd like to display something
> of the form "HH:MI:SS". Other times I'd like to see a day of month or a
> day of year or some other variation.
>
> Anyway, assuming that I have a timestamp in the form of seconds since
> the 1970 epoch, is there some built in way to convert to the time string
> my choosing? Or will I have to role my own conversions? Secondly, how
> do I go about cleanly setting the labels on my IDLgrAxis to the strings?
>
> TIA,
> Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Image Segmentation
Next Topic: Image Segmentation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:06:41 PDT 2025

Total time taken to generate the page: 0.48222 seconds