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

Home » Public Forums » archive » How to convert Julian date into Gregorian date format in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
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 Go to previous messageGo to previous message
Michael Galloy is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reversing y-axis using label_date
Next Topic: gray-level co-occurrence matrix (GLCM)

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

Current Time: Wed Oct 08 13:39:12 PDT 2025

Total time taken to generate the page: 0.00420 seconds