Re: How to convert Julian date into Gregorian date format in IDL? [message #89723 is a reply to message #89712] |
Thu, 20 November 2014 01:29   |
Muhammad Hasan
Messages: 8 Registered: November 2014
|
Junior Member |
|
|
On Thursday, November 20, 2014 1:33:03 AM UTC+8, David Fanning wrote:
> 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.")
Thanks Dr. Fanning.
Regards,
|
|
|