[Thread Prev][Thread Next][Index]

Re: [ferret_users] compress, expand variable





Is there a way to compress a variable from
a selection of index ?

Here is an example of what I am looking for:
let A={101,202,303,404,505,606,707,808,909}
let B={3,6,7,9}

Now, I would like to get a new variable C to work on A from the selected indexes B.
This new variable C will be equal to :
303,606,707,909
Ok, very simple question finally... oups
The answer is to use samplei function
list samplei(A,B)

yes? list samplei(A,B)
            VARIABLE : SAMPLEI(A,B)
            SUBSET   : 4 points (X)
1   / 1:  303.0
2   / 2:  606.0
3   / 3:  707.0
4   / 4:  909.0


Patrick

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement