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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: bug(s) in IDL5.6? [message #35155] Sun, 18 May 2003 13:50
the_cacc is currently offline  the_cacc
Messages: 104
Registered: October 2001
Senior Member
Richard Younger <younger@spaMIT.edu> wrote in message news:<3EC52C67.9D1A827D@spaMIT.edu>...
>
> I'm afraid I requested that PRODUCT function. Like TOTAL, only with
> multiplication. It makes *my* life a bit faster and easier. Sorry about
> that.
>
> Rich


Hey, I wonder if you could request some of the functions *I've* been
trying to get implemented - my requests always seem to get lost in the
post :(
Re: bug(s) in IDL5.6? [message #35183 is a reply to message #35155] Fri, 16 May 2003 11:22 Go to previous message
Richard Younger is currently offline  Richard Younger
Messages: 43
Registered: November 2000
Member
Ben Tupper wrote:
[...]
> Hi,
>
> Result = PRODUCT(Array [, Dimension] [, /CUMULATIVE] [, /NAN] )
> Introduced: 5.6
>
> Ben

I'm afraid I requested that PRODUCT function. Like TOTAL, only with
multiplication. It makes *my* life a bit faster and easier. Sorry about
that.

Rich

--
Richard Younger
younger@spaMIT.edu (with obvious modification)
Phone: (781)981-4464
Re: bug(s) in IDL5.6? [message #35195 is a reply to message #35183] Fri, 16 May 2003 06:51 Go 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
Re: bug(s) in IDL5.6? [message #35196 is a reply to message #35195] Fri, 16 May 2003 05:47 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 14:56:20 PDT 2025

Total time taken to generate the page: 0.00516 seconds