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

Home » Public Forums » archive » Re: IDL QUESTIONS(time convection)
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: IDL QUESTIONS(time convection) [message #78546 is a reply to message #78544] Tue, 29 November 2011 05:56 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
zolile mtumela writes:

> I tried to convert time axis to hours in the ff program, but all my
> efforts are not working. I need some help and suggestion on this
> convection.I have tried may ways but they are not converting in a
> right way.

Well, there are a couple of ways to do this. You could
use the function LABEL_DATE to set up the time axis the
way you wanted to display the time. For example:

void = Label_Date(Date_Format='%D %M, %Y')
plot, time, vel, linestyle = 2, xtickformat='label_date'

Or, you can just use the calendar date formating codes
directly with the XTickFormat keyword:

plot, time, vel, linestyle = 2, xtickformat='(C(CDI,x,CMoA,x,CYI2))'

These formats obviously aren't correct with this data,
but I can't tell how the data should be formatted without
more information about what these Julian numbers mean.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Workbench Crashing on Macs
Next Topic: IDLDoc Error

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

Current Time: Wed Oct 08 19:03:55 PDT 2025

Total time taken to generate the page: 0.00207 seconds