Re: two issues with julian dates [message #54855 is a reply to message #54816] |
Tue, 17 July 2007 07:13  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Josh writes:
> Having given up Julian dates, in lieu of a simpler route, I am now
> simply taking the date/time and storing it as a double with respect to
> the year (e.g. 3/21/2004 @ 12:17:44.767 = 2004.2903452730). All the
> variables used to create the value were born doubles, and stayed
> doubles all along.
>
> Alas, the same problem persists. I can see the following:
> IDL> print, ROItimeArr[85], format='(F20.10)'
> 2004.2903452730
>
> But on the plot, I get 2004.2903 which is the above, sans the 'format'
> at the end. So, everything within +-0.0001 (which happens to be about
> 20% of the data set) gets put on that x value.
>
> I also tried subtracting 2004 from all the data, thinking that might
> help, but I simply get the same x values without the 2004 (e.g.
> 0.2903).
Josh reports "problem solved." Here is the take-home
message of the day: Be sure to check ALL your assumptions! :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|