#! /bin/csh

set D = /Net/elninoshare/abhardwaj/PR/CCSM4/RSM
set O = /Net/elninoshare/abhardwaj/PR/CCSM4/RSM/netcdf

set year = 1986

set y1 = `cat $O/list6h`
set n1 = `cat $O/list6h |wc -l`
set nn = `cat $O/list6h | cut -c9-12`

ls -v r_pgb.ft* > $O/$year/list-$yr[$cnt]

set cnt2 = 1
while ($cnt2 <= $n1)
echo $n1 $nn[$cnt2]

cd $O/$yr[$cnt]


@ cnt2 = $cnt2 + 1
end
@ cnt = $cnt + 1
end


