[Thread Prev][Thread Next][Index]

Re: [ferret_users] how to safe @CIA or @CIB as an index



Hi Simi,
I'm not sure I understand what you want to do. What kind of IF test are you thinking of?  One thing you might look at is the @EVNT transformation to see if it does what you need.

But back to @CIA and @CIB. Here's an example based on the simple example of the use of @CIA in the Users Guide. You can define a variable that contains the index value of the original variable (see the discussion of pseudo-variables in the documentation). Maybe it will give you some ideas.
yes? use coads_climatology

yes? let sst1 = sst[x=125w:109w,y=55s,L=1]
yes? let iabove =  sst1[x=@cia]
yes? let ii = i[gx=sst1,x=125W:109W]
yes? let next_good_index = ii + iabove

yes? list sst1, ii, iabove, next_good_index
             DATA SET: /home/porter/tmap/ferret/linux/fer_dsets/data/coads_climatology.cdf
             LONGITUDE: 126W to 108W
             LATITUDE: 55S
             TIME: 16-JAN 06:00
 Column  1: SST1 is SST[X=125W:109W,Y=55S,L=1]
 Column  2: II is I[GX=SST1,X=125W:109W]
 Column  3: IABOVE is SST1[X=@CIA]
 Column  4: NEXT_GOOD_INDEX is II + IABOVE
               SST1    II   IABOVE NEXT_GOOD_INDEX
125W   / 108:  6.700  108.0  0.000   108.0
123W   / 109:   ....  109.0  4.000   113.0
121W   / 110:   ....  110.0  3.000   113.0
119W   / 111:   ....  111.0  2.000   113.0
117W   / 112:   ....  112.0  1.000   113.0
115W   / 113:  7.800  113.0  0.000   113.0
113W   / 114:  7.800  114.0  0.000   114.0
111W   / 115:   ....  115.0  1.000   116.0
109W   / 116:  8.300  116.0  0.000   116.0
Ansley

simi wrote:
hi,
   I just wanted to know is it possible to store the value obtained by the
transformation @CIA or @CIB as an index; so that i can use some conditions
like IF on that index.
thanks in advance
simi


--
Center for Atmospheric and Oceanic Science,
Indian Institute of Science,
Bangalore - 560 012, INDIA
http://caos.iisc.ernet.in/


  

[Thread Prev][Thread Next][Index]

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

Privacy Policy | Disclaimer | Accessibility Statement