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

Home » Public Forums » archive » Re: convert from Julian date to calendar date and vice verse
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
Re: convert from Julian date to calendar date and vice verse [message #80718] Wed, 04 July 2012 08:19
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Stefan, Sorry I misinterpreted your post. You didn't say that daycnv.pro had the wrong zero point, but that numbers given by the OP were not Julian dates since they had the wrong zero point.

Khaled, to convert your numbers to Julian day you need to add JULDAY(1,1,1) = 1721424 to all your dates. But are you sure that your numbers are not *hours* rather than days since 1-1-1? If it is days then they refer to a year far in the future, but if they are hours then they refer to the year 2012.

--Wayne


On Tuesday, July 3, 2012 7:15:44 PM UTC-4, wlandsman wrote:
> My posts from a few hours ago don't seem to have shown up -- sorry if they appear twice
>
> daycnv.pro does not have the wrong zero point. It converts to Gregorian (not Julian) calendar day, and JD 0.0 corresponds to November 24 4713 BC in the Gregorian calendar.
>
> ( e.g. http://www.hermetic.ch/cal_stud/jdn.htm#comp ). Cheers, --Wayne
>
Re: convert from Julian date to calendar date and vice verse [message #80721 is a reply to message #80718] Tue, 03 July 2012 16:15 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
My posts from a few hours ago don't seem to have shown up -- sorry if they appear twice

daycnv.pro does not have the wrong zero point. It converts to Gregorian (not Julian) calendar day, and JD 0.0 corresponds to November 24 4713 BC in the Gregorian calendar.

( e.g. http://www.hermetic.ch/cal_stud/jdn.htm#comp ). Cheers, --Wayne

On Tuesday, July 3, 2012 6:32:23 AM UTC-4, Stefan wrote:

> you could use this:
>
> http://idlastro.gsfc.nasa.gov/ftp/pro/astro/daycnv.pro
>
> but be aware that your dates are not Julian dates since the zero-point is wrong. The ZP for the JD is
>
> 12:00 January 1, 4713 BC, Monday
>
> and you will have to convert to this before you perform the conversion.
Re: convert from Julian date to calendar date and vice verse [message #80730 is a reply to message #80721] Tue, 03 July 2012 03:32 Go to previous message
stefan.meingast is currently offline  stefan.meingast
Messages: 30
Registered: June 2012
Member
Am Montag, 2. Juli 2012 15:21:45 UTC+2 schrieb (unbekannt):
> Dear all,
>
> I have the following time units of "days since 1-1-1 00:00:0.0".
> 17619336. 17619360. 17619384. 17619408.
> 17619432. 17619456. 17619480. 17619504.
> 17619528. 17619552. 17619576. 17619600.
>
> I would like to convert them from Julian date to calendar date and
> vice verse.
> thanks in advance
> Khaled

you could use this:

http://idlastro.gsfc.nasa.gov/ftp/pro/astro/daycnv.pro

but be aware that your dates are not Julian dates since the zero-point is wrong. The ZP for the JD is

12:00 January 1, 4713 BC, Monday

and you will have to convert to this before you perform the conversion.
Re: convert from Julian date to calendar date and vice verse [message #80734 is a reply to message #80730] Mon, 02 July 2012 11:04 Go to previous message
Andy Sayer is currently offline  Andy Sayer
Messages: 127
Registered: February 2009
Senior Member
I suggest looking into the in-built IDL procedure CALDAT:

http://star.pst.qub.ac.uk/idl/CALDAT.html

and JULDAY to go the other way:

http://star.pst.qub.ac.uk/idl/JULDAY.html

Hope this helps,

Andy

On Monday, July 2, 2012 9:21:45 AM UTC-4, (unknown) wrote:
> Dear all,
>
> I have the following time units of "days since 1-1-1 00:00:0.0".
> 17619336. 17619360. 17619384. 17619408.
> 17619432. 17619456. 17619480. 17619504.
> 17619528. 17619552. 17619576. 17619600.
>
> I would like to convert them from Julian date to calendar date and
> vice verse.
> thanks in advance
> Khaled
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: vectors on map-- partvelvec?
Next Topic: Re: Upgrade IDL

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

Current Time: Wed Oct 08 13:46:17 PDT 2025

Total time taken to generate the page: 0.16142 seconds