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

Home » Public Forums » archive » error using statement: If.....then
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
error using statement: If.....then [message #54553] Tue, 26 June 2007 13:55
Giuseppe Giovanni Sal is currently offline  Giuseppe Giovanni Sal
Messages: 1
Registered: June 2007
Junior Member
Hi everybody, I am new on IDL and I will be very grateful if someone
could help me

I have an array of value (X,Y) and I want all Y data negative equals
to 1:
x y
1 84
2 90
3 14
4 -75
5 -95
6 -27

so I guess the correct way to apply this filtering is working with IF
and THEN:

IF x LT 0 then x = 1

but I got an error:
"Expression must be a scalar or 1 element array in this context: <BYTE
Array[2, 6]"
How I can resolve this problem?

Thanks in advance
Cico
[Message index]
 
Read Message
Previous Topic: Re: plotting colored contours on a map
Next Topic: Re: loading colors in tvscl

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

Current Time: Sat Oct 11 13:56:50 PDT 2025

Total time taken to generate the page: 0.00897 seconds