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

Home » Public Forums » archive » Re: Loop Limit Error
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: Loop Limit Error [message #18164] Thu, 02 December 1999 00:00 Go to previous message
m218003 is currently offline  m218003
Messages: 56
Registered: August 1999
Member
In article <3846084D.C11E61F0@ngdc.noaa.gov>,
Eric Kihn <ekihn@ngdc.noaa.gov> writes:
> All,
>
> Greetings. The function attached below is giving me the following
> error:
>
> % Loop limit expression too large for loop variable type.
> <LONG ( 35038)>.
> % Execution halted at: MAKEREGULARSTEP 40
> C:\kp\idl\makeRegularStep.pro
>

All I can say is:
Change this:
> zsize = size(hist, /N_Elements);
> for i = 0 , zsize -2, 1 do begin
to:
zsize = size(hist, /N_Elements);
for i = 0L , zsize -2, 1 do begin ; 0L !!!

Although 35038 is still less than 2^15-1, it's pretty darn close ;-)

Good luck,
Martin

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Usage of System Variables
Next Topic: YSIZE MUST be > 1 AND must be defined

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

Current Time: Fri Oct 10 09:49:25 PDT 2025

Total time taken to generate the page: 0.80085 seconds