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

Home » Public Forums » archive » Re: bug(s) in IDL5.6?
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(s) in IDL5.6? [message #35195 is a reply to message #35183] Fri, 16 May 2003 06:51 Go to previous messageGo to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
David Fanning wrote:
> David Oesch (oesch@giub.unibe.ch) writes:
>
>
>> just upgraded from IDL 5.4 to 5.6..and some of my old idl progs now
>> won't compile anymore because of some "syntax error"....
>>
>> product=product(*,*,0)/100.
>> ^
>> % Syntax error.
>>
>> product(WHERE(PRODUCT NE nodata))=product(WHERE(PRODUCT NE nodata))+273.15
>> ^
>> % Syntax error.
>>
>>
>> product(WHERE(PRODUCT EQ nodata))=!VALUES.F_NAN
>> ^
>> % Syntax error.
>>
>>
>> subsetprod=product(minlonpos:maxlonpos,maxlatpos:minlatpos)
>> ^
>> % Syntax error.
>>
>> Ain't this strange?
>
>
> I'd be learning about square bracket syntax for
> array subscripting if I were you. :-)
>
> Either someone turned the STRICTARR compiler option on
> while you weren't looking (I'd have a word with your
> office mate), or IDL has got it into its head that
> PRODUCT is a function. In either case, square brackets
> will straighten you out.
>
> Cheers,
>
> David

Hi,

Result = PRODUCT(Array [, Dimension] [, /CUMULATIVE] [, /NAN] )
Introduced: 5.6

Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: running IDL without the DE
Next Topic: Passing file LUN to C routine

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

Current Time: Thu Oct 09 10:50:04 PDT 2025

Total time taken to generate the page: 1.04411 seconds