Re: How to convert Julian date into Gregorian date format in IDL? [message #89727 is a reply to message #89722] |
Thu, 20 November 2014 10:21   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 11/20/14, 2:28 AM, Muhammad Hasan wrote:
> On Wednesday, November 19, 2014 10:22:09 PM UTC+8, Mike Galloy wrote:
>> On 11/19/14, 6:34 am, 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
>>>
>>
>> IDL> julday = systime(/julian)
>> IDL> print, string(julday, format='(C(CYI04, CMOI02, CDI02))')
>> 20141119
>>
>> --
>> Michael Galloy
>> www.michaelgalloy.com
>> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
>> Research Mathematician
>> Tech-X Corporation
>
> Thanks a lot dear Dr. Galloy. You mean it will convert my julian date 213 for 2010 into August 1, 2010?
>
> Regards,
>
I did that calculation on November 19, 2014, which it converted to
20141119 (YYYYMMDD, which I thought was the format you wanted?). I just
used today's date because it was the easiest way to get a Julian date.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
|
|
|