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
timegen [message #86358] Wed, 30 October 2013 13:56 Go to previous message
spluque is currently offline  spluque
Messages: 33
Registered: September 2013
Member
Hi,

I'm having a little difficulty generating time sequences with specific start and end values. Say, for instance we need to generate a sequence at 1 seconds and I need to cover the full final day. I thought this would do:

beg_jd=julday(10, 10, 2013, 0)
end_jd=julday(10, 11, 2013, 0)
step_size=0.1
ts=timegen(start=beg_jd, $
final=end_jd + 1 - (float(step_size) / 86400), $
step_size=step_size, units='seconds')

But, checking:

caldat, ts, mo, dd, yyyy, hh, mm, ss
print, yyyy[-1], mo[-1], dd[-1], hh[-1], mm[-1], ss[-1]

prints:

2013 10 11 23 59 59.802656

The last step is missing. What is wrong with this?

Thanks,
Seb
[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: Wed Oct 08 15:07:53 PDT 2025

Total time taken to generate the page: 0.00437 seconds