Thanks Ansley for the trick with the transformation, surely it is faster, but index new variables will help on my own algorithm development.
Searching mail archives, an user taught the below example of index with the loop, it did all right to read the data indexed, but wasn't successful to save it indexed to a new variable. Sorry if my mistake, but I couldn't find also on the Users Guide, still use fortran/matlab to do so, isn't this possible with ferret? Thanks again for the help, Paula Lamosa Nunes Date: Tue, 23 Aug 2011 15:06:37 -0700 From: ansley.b.manke@xxxxxxxx Subject: Re: [ferret_users] How to index a new variable? To: oceanografa@xxxxxxxxxxx CC: oar.pmel.ferret_users@xxxxxxxx Hi, Rather than trying to write loops, look for Ferret transformations or functions that let you define a new variable that captures the operation you want to use. define axis/x=1:10:1 xax let array = x[gx=xax] let array_1 = array[x=@ddb] If you read the first chapter of the Users Guide, you'll start to see how best to use the program. Then the next few chapters give details about different aspects of using Ferret. Ansley On 8/23/2011 1:24 PM, PaulaOCN Nunes wrote:
|