Re: Julian Day Question [message #48881 is a reply to message #48880] |
Thu, 25 May 2006 23:13   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Consider:
>
> IDL> Print, JULDAY(1, 1, 1999) ; 1 Jan 1999
> 2451180
>
> This is the wrong answer according to Meeus, who lists the
> answer as 2451179.5.
>
> But, then consider this, which should be the SAME time:
>
> IDL> Print, JULDAY(1, 1, 1999, 0) ; 1 Jan 1999 at 0 hours
> 2451179.5
>
> What do you make of that?
Here is the same thing, but with JHUAPL routines:
IDL> Print, YMD2JD(1999, 1, 1)
2451180
But, converting first to "Julian seconds", and then to the Julian
Day:
IDL> js = YMDS2JS(1999, 1, 1, 0)
IDL> Print, JS2JD(js)
2451179.5
Clearly, I am missing something important here. :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|