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 #56461 is a reply to message #56450] Tue, 30 October 2007 19:20 Go to previous messageGo to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Oct 30, 8:02 pm, Ed Hyer <ejh...@gmail.com> wrote:
> 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.

Hi Ed,

Would this work for you?

IDL> print,eh_julday(12,31,2005,0,0,0)
2453735.5
IDL> print,eh_julday(12,31.2,2005,0,0,0)
2453735.7

***BEGIN
FUNCTION EH_JULDAY, mon, day, year, hour, min, sec

case N_PARAMS() of
6: j = JULDAY(mon, day, year, hour, min,sec)
3: j = JULDAY(mon, day, year)
ELSE: MESSAGE, '3 or 6 arguments required'
endcase

return, j + (day - FLOOR (day))
end
***END


Ben
[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: Sun Oct 12 00:05:13 PDT 2025

Total time taken to generate the page: 0.80028 seconds