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

Home » Public Forums » archive » TIMEGEN problem, bug?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
TIMEGEN problem, bug? [message #34446] Sat, 15 March 2003 14:36
lucianor is currently offline  lucianor
Messages: 12
Registered: June 2002
Junior Member
I tried the following:

IDL> Jul1=JulDay(3,31,1998,23)
IDL> dummy=TIMEGEN(40,START=jul1,UNITS='Hours')
IDL> caldat,dummy[39],month,day,year,hour
IDL> print,year,month,day,hour
1998 4 1 14

How adding 40 hours to 31/3,23h could end up in 1/4,14h??
The problem seems to appear because TIMEGEN takes 30 as the first day, and not 31:

IDL> caldat,dummy,month,day,year,hour
IDL> print,day[0:4]
30 31 31 31 31

Of course that if it starts at day 30/3 it will be correct to end at day 1/4
But I'm telling it to start at day 31!!

Any help??

(I'm using IDL 5.4 on Windows XP)


Luciano.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Upgraed to IDL 5.6, now having problem w/ linkimage
Next Topic: Re: TIMEGEN problem, bug?

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

Current Time: Wed Oct 08 17:19:09 PDT 2025

Total time taken to generate the page: 0.00515 seconds