[ncl-talk] looping over index in the name of a variable

Ioana Colfescu ioana.colfescu at ed.ac.uk
Wed Oct 21 03:58:43 MDT 2015


Hi,
I'm trying to read a variable while looping over a number in the name of 
the variable like :

.......................
do ii=0,10
cont1w(ii,:,:)=data[0]->eof+ii+djf
end do

This syntax doesn't work - eof+ii+djf , for reading 
eof1djf,eof2djf,eof3djf and so on doesn't work.
Does anyone know what the correct syntax for this would be ? ( without 
using a csh script).
Thanks,
Ioana


-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the ncl-talk mailing list