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 #86361 is a reply to message #86358] Wed, 30 October 2013 15:38 Go to previous message
suicidaleggroll is currently offline  suicidaleggroll
Messages: 14
Registered: September 2013
Junior Member
On Wednesday, October 30, 2013 2:56:35 PM UTC-6, spl...@gmail.com wrote:
> 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

Never used timegen...what's so difficult about just doing:

beg_jd=julday(10,10,2013,0)
end_jd=julday(10,11,2013,0)
step_size=0.1/86400d0
ts=dindgen(round((end_jd-beg_jd)/step_size)+1)*step_size+beg _jd
[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 19:06:02 PDT 2025

Total time taken to generate the page: 0.00432 seconds