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

Home » Public Forums » archive » Re: Julian time problem
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: Julian time problem [message #51446] Sun, 26 November 2006 16:18 Go to previous message
badjelly.witch is currently offline  badjelly.witch
Messages: 27
Registered: May 2006
Junior Member
Jonathan Dursi wrote:
> In particular, the difference between the two quantities (~4.65e-10) is
> a couple parts in 1e16 of the value (~2.45e6), and you simply can't do
> better than that in the usual IEEE double precision math.

Another issue here, apart from the general imprecision of floating
point math, is that TIMEGEN adds a small offset. From the
documentation:

"A small offset is added to each Julian date to eliminate roundoff
errors when calculating the day fraction from the hour, minute, second.
This offset is given by the larger of EPS and EPS*Julian, where Julian
is the integer portion of the Julian date and EPS is the
double-precision floating-point precision parameter from MACHAR. For
typical Julian dates the offset is approximately 6x10-10 (which
corresponds to 5x10-5 seconds). This offset ensures that when the
Julian date is converted back to the hour, minute, and second, the
hour, minute, and second will have the same integer values."
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: ENVI - Output to external format - seem to be losing georeferencing
Next Topic: Re: IDL in Espana

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

Current Time: Fri Oct 10 19:29:45 PDT 2025

Total time taken to generate the page: 0.48199 seconds