[Thread Prev][Thread Next][Index]

[ferret_users] how to get the selected values or indexes from an array



Hi All:
 
I'd like to get the abnormal values from an array, e.g. a={1,1,1,500,1,1,1,1,1,600,1,1,560}
The new array will be b={500,600,560}. How can I do this? Note that using the "if" statement will give me the array that is of the same size as "a", and @loc is for finding the indexes with the constant values.
 
Thanks very much for your help.
 
Jean 



[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement