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 #55683 is a reply to message #55583] Mon, 27 August 2007 09:41 Go to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
"chris_torrence@NOSPAMyahoo.com" <gorthmog@gmail.com> wrote in message
news:1187993940.201423.291250@r23g2000prd.googlegroups.com.. .
...
> If you want, you can patch your copy of timegen. Go to your $IDL_DIR/
> lib/timegen.pro.
> Around line 400, replace the following bad lines:
> monthArray = (monthArray MOD 12) + 1
> IF (step_size LT 0) THEN monthArray = (monthArray + 12) MOD 12
> With the following good lines:
> if (step_size ge 0) then begin
> monthArray = (monthArray mod 12) + 1
> endif else begin
> monthArray = (((monthArray mod 12) + 12) mod 12) + 1
> endelse


Thanks for the fast fix Chris!

cheers,
bob
[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: Fri Oct 10 17:10:31 PDT 2025

Total time taken to generate the page: 1.68288 seconds