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

Home » Public Forums » archive » hours since 1-1-1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
hours since 1-1-1 [message #44865] Tue, 26 July 2005 18:53 Go to next message
qian is currently offline  qian
Messages: 3
Registered: July 2005
Junior Member
Dear IDL users:

Is there an IDL function/program that converts the unidata time unit to
more readable format?

For example: hours since 1-1-1 17338824 -> Jan 1 1979.


Thanks,

Qian
Re: hours since 1-1-1 [message #45031 is a reply to message #44865] Thu, 04 August 2005 15:09 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Reimar Bauer wrote:
>
> We prefer Julian Seconds which were initial defined by Ray Sterner at
> JHUapl.

Personally, I prefer Modified Julian Days...

MJD = JD - 2,400,000.5

...because the values are smaller and they avoid the tricky "integer
value at noon" thing. Also because they are used in William Thompson's
very nice CDS library.

However RSI prefers Julian Days and IDL provides various functions to
deal with it. Also, there are the calendar formats, which make labelling
axes very straightforward and can't easily be replaced by the user.

So my recommendation to anyone who wants to deal with date-time data in
IDL and doesn't have special requirements (like very high precision,
leap seconds and the like) remains "use Julian Dates".

--
Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: idl command line on windows
Next Topic: Re: 2 dimensional array from 3 x 1dimensional arrays

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

Current Time: Wed Oct 08 16:50:13 PDT 2025

Total time taken to generate the page: 0.00405 seconds