Re: How to convert Julian date into Gregorian date format in IDL? [message #89712 is a reply to message #89711] |
Wed, 19 November 2014 09:33   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
mick.mitanirc3@gmail.com writes:
>
> On Wednesday, November 19, 2014 7:34:46 AM UTC-6, Muhammad Hasan wrote:
>> Hi All!
>> I have a little problem in IDL. How to calculate Gregorian date in IDL from Julian date? For example I have Julian date 335 and I want to get yyyymmdd format. How to get it?
>>
>> Regards,
>>
>> Hasan
>
> While systime works great for today, when I am working with other julian day values and need to convert them I use the JD2DATE program. Originally from John Hopkins it can be found at Exelis along with many other JHU/APL routines. Check out http://www.exelisvis.com/docs/jd2date.html
If you have the Coyote Library installed (I why wouldn't you?), you can
used cgJulian2Date to do this, too. There are 21 different data formats
you can choose to use.
http://www.idlcoyote.com/idldoc/cg/cgjulian2date.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|