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

Home » Public Forums » archive » timegen
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: timegen [message #86360 is a reply to message #86358] Wed, 30 October 2013 15:16 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
This may be pertinent, from the help:

Note: If the step size is not an integer then the last element may not be equal to the FINAL time. In this case, TIMEGEN will return enough elements such that the last element is less than or equal to FINAL.

If you 'caldat' your final time ( end_jd + 1 - (float(step_size) / 86400) ), I suspect this is the issue.

But, I'm not sure why this isn't what you're looking for:

ts=timegen(start=beg_jd, final=end_jd+1,step_size=step_size, units='seconds')
caldat, ts, mo, dd, yyyy, hh, mm, ss
print, yyyy[-1], mo[-1], dd[-1], hh[-1], mm[-1], ss[-1]
2013 10 11 23 59 59.902636

BTW, your original code contains the line
float(step_size)
which is superfluous - step_size is already a float, yes?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Map Projection
Next Topic: IDL 8.2 IDLnetURL insight

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

Current Time: Thu Oct 09 20:32:40 PDT 2025

Total time taken to generate the page: 0.23684 seconds