[Thread Prev][Thread Next][Index]
Re: embedded quotes and arrays ...
Ok, I got it!
Just for info :
let station = {"MID","KNO"}
repeat/k=1:2 ( stat = station[i=`k`] ; define symbol oufile`k` = `stat`.irm.winter94.nc )
!-> REPEAT: K=1
!-> DEFINE VARIABLE stat = station[i=1]
!-> define symbol oufile1 = MID.irm.winter94.nc
!-> REPEAT: K=2
!-> DEFINE VARIABLE stat = station[i=2]
!-> define symbol oufile2 = KNO.irm.winter94.nc
To make it OK for my version of Ferret, I had to define 'stat' as a variable and not as a symbol. Don't know why, but now it works!
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