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

Home » Public Forums » archive » Re: How to add 'd' to get the correct julian conversion ?
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 add 'd' to get the correct julian conversion ? [message #33740 is a reply to message #33737] Thu, 23 January 2003 08:19 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kolbjorn Bekkelund (kolbjorn@arctic-linux.tnett.no) writes:

> How can I add the NEEDED d to get this:
>
> 2452662.305203d
>
> out of this:
> maxtime = jul2cal((data(0,maxgust_time)), /TO_STRING, /MDY)
>
> In my program (data(0,maxgust_time)) fetches 2452662.305203 out of the
> array, but if I don't add the d to the julian date it calculates the
> wrong time in the above statement.
>
> I've tried
>
> maxtime = jul2cal((data(0,maxgust_time))d, /TO_STRING, /MDY)
>
> but that's not accepted.

How about this:

maxtime = jul2cal(DOUBLE(data(0,maxgust_time)), /TO_STRING, /MDY)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to eliminate trailing zeros in a string?
Next Topic: PNGs with alpha channel?

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

Current Time: Sat Oct 11 07:51:08 PDT 2025

Total time taken to generate the page: 1.87292 seconds