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

Home » Public Forums » archive » Re: julday() and fractional days
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: julday() and fractional days [message #56450 is a reply to message #56448] Wed, 31 October 2007 08:49 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Ed Hyer <ejhyer@gmail.com> writes:
> OK, if you search c.l.i-p for this you'll find a post from Craig
> Markwardt wherein he laments that JULDAY "doesn't handle fractional
> days". Someone replies to say yes it does, but I think that person
> misunderstood.
>
> IDL> print,julday(12,31,2005,0,0,0)
> 2453735.5
> IDL> print,julday(12,31.2,2005,0,0,0)
> 2453735.5
>
> I'm really unhappy with IDL right now.

I mostly use my own simple Julian day routine just to avoid all these
annoying surprises.

But in your case it would *almost* be easy enough to work around it
with something like,

IDL> print,julday(12,31,2005,0,0,0) + .2
2453735.7

or programmatically,

IDL> print,julday(month,floor(day),year,0,0,0) + (day-floor(day))

But the annoyance is in taking the time to discover these quirks, and
to remember them.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLBridge - SetVar?
Next Topic: Re: read_tiff only looks in current working directory?

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

Current Time: Sat Oct 11 15:27:07 PDT 2025

Total time taken to generate the page: 1.04179 seconds