[Thread Prev][Thread Next][Index]
Re: embedded quotes and arrays ...
Hi Emilie,
Use XSEQUENCE, YSEQUENCE, ZSEQUENCE or TSEQUENCE along with
corresponding abstract axis index for repeat loop as shown below;
yes? let station = XSEQUENCE({"MID","KNO"})
yes? repeat/i=1:2 ( define symbol outfile`i` = `station`.irm.winter94.nc ; show symbol outfile`i` )
OUTFILE1 = "MID.irm.winter94.nc"
OUTFILE2 = "KNO.irm.winter94.nc"
here XSEQUENCE and "i" are used. Similarly you can use YSEQUENCE & j or
ZSEQUENCE & k or TSEQUENCE and l.
Hope this helps
with regards
jaison
On Wed, 30 Jun 2004, Emilie Vanvyve wrote:
> Dear Martin,
>
> Thanks for your answer !
> I tried as you said, but it still does not work with me. I get :
>
> repeat/k=1:2 ( define symbol stat = station[i=`k`] ; define symbol
> oufile`k` = `($stat)`.irm.winter94.nc )
> !-> repeat/k=1:2 ( define symbol stat = station[i=`k`] ; define symbol
> oufile`k` = ` `.irm.winter94.nc )
> !-> REPEAT: K=1
> !-> define symbol stat = station[i=1]
> !-> define symbol oufile1 = bad.irm.winter94.nc
> !-> REPEAT: K=2
> !-> define symbol stat = station[i=2]
> !-> define symbol oufile2 = bad.irm.winter94.nc
>
> Don't know what's the problem! My Ferret version is 5.50, on Mac OS X :
> NOAA/PMEL TMAP
> FERRET v5.50
> apple-darwin6.3 - 02/08/03
> 30-Jun-04 12:31
>
> I already had noticed that define a symbol within a repeat command does
> not allow to use it within the same repeat command. At least with my
> version of Ferret.
> I'm now trying to put a repeat inside my repeat, hoping that Ferret
> won't see the subterfuge :o) !
>
> Regards,
>
> Emilie
>
> Le 30 juin 2004, à 12:19, Martin Schmidt a écrit :
>
> > Dear Emilie,
> >
> > try
> >
> > repeat/k=1:2 ( define symbol stat=station[i=`k`]; define symbol
> > oufile`k` = `($stat)`.irm.winter94.nc )
> >
> > I get
> >
> > yes? repeat/k=1:2 ( define symbol stat=station[i=`k`]; define symbol
> > oufile`k` = `($stat)`.irm.winter94.nc )
> > !-> repeat/k=1:2 ( define symbol stat=station[i=`k`]; define symbol
> > oufile`k` = `station[i=2]`.irm.winter94.nc )
> > !-> REPEAT: K=1
> > !-> define symbol stat=station[i=1]
> > !-> define symbol oufile1 = KNO.irm.winter94.nc
> > !-> REPEAT: K=2
> > !-> define symbol stat=station[i=2]
> > !-> define symbol oufile2 = KNO.irm.winter94.nc
> > yes?
> >
> > You see, it should work but does not. Possibly v5.41 has a bug.
> >
> > Regards,
> > Martin
> >
> >
> ____________________________________________________________
> Emilie VANVYVE
> Physicist, PhD student
>
> Université catholique de Louvain (UCL)
> Institut d'astronomie et de géophysique G. Lemaître (ASTR)
> Chemin du Cyclotron, 2
> 1348 Louvain-la-Neuve (Belgium)
> Phone : +32-(0)10-473300
> Fax : +32-(0)10-474722
> E-mail : vanvyve@astr.ucl.ac.be
> Web : www.astr.ucl.ac.be
>
--
___________________________________________________
Jaison Kurian
Centre for Atmospheric and Oceanic Sciences
Indian Institute of Science
B A N G A L O R E 560 012
Ph: +91-80-3942505
+91-80-3600450
Fax:+91-80-3600865
___________________________________________________
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement