[Thread Prev][Thread Next][Index]
Re: embedded quotes and arrays ...
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
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement