Variable names in Loop

From: Prince K. Xavier <xavier_at_nyahnyahspammersnyahnyah>
Date: Sat, 4 Feb 2006 13:01:01 +0530 (IST)

Hello group,

This is probably a very simple question, but I cound not manage to figure
out.

I have to read data from a set of files named as
olrpred_2002_2005_lead0.nc
olrpred_2002_2005_lead1.nc
olrpred_2002_2005_lead2.nc
...
olrpred_2002_2005_lead10.nc

and to store them to variables
olrpred_lead0
olrpred_lead1
olrpred_lead2
...
olrpred_lead10

How can I use a 'do while' loop for this pupose?
How do I assign the loop indices to the variable names?

Thanks in advance
Prince

-- 
Prince K XAVIER
Centre for Atmospheric and Oceanic Sciences 
Indian Institute of Science 
Bangalore - 560 012 
INDIA 
http://caos.iisc.ernet.in/hpg/students/prince.html
__________________________________________________ 
Phone No. 
+91 80 2293 2505 (Extn:201)
+91 98808 19172  (Mobile)
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Feb 04 2006 - 00:31:01 MST

This archive was generated by hypermail 2.2.0 : Sun Feb 05 2006 - 19:54:26 MST