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

Home » Public Forums » archive » Re: Bug in IDL's TIMEGEN function
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: Bug in IDL's TIMEGEN function [message #55584 is a reply to message #55583] Fri, 24 August 2007 14:24 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dave Wuertz writes:

> I found a bug in IDL's TIMEGEN function. It really nailed me good, as I
> was using the (erroneous) results from TIMEGEN to compute direct-access
> locations within database files.
>
> First off, I'm running IDL v6.4 on a 32-bit Linux-Intel box.
>
> TIMEGEN returns an incorrect sequence of julian dates when STEP_SIZE=-1,
> and UNITS="Months" when crossing year boundaries as demonstrated in
> the simple example below. Note the results *should* be monotonically
> decreasing.
>
> IDL> MyTimes = TIMEGEN( units="Months", step_size=-1,
> start=julday(1,15,2007), final=julday(10,15,2006))
> IDL> print, MyTimes - MyTimes(0)
> 0.0000000 -396.00000 -61.000000 -92.000000

Yeah, I'd say that was a bug. I'm using the 32-bit version of Windows.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Natural size of explicitly-sized widget
Next Topic: Weighted histogram

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

Current Time: Sat Oct 11 09:23:24 PDT 2025

Total time taken to generate the page: 1.35876 seconds