var="T2M"
for ivar in ${var}
do 
    rm KQ.txt
    ln -sf ../REG_${ivar}_20120109_6mon.nc ./AAAAAA.nc
    cat interpol.gs | sed s/NXTVAR/${ivar}/g > interpol_run.gs
    grads -lbc interpol_run.gs
    ./del_line.sh KQ.txt
    pgf90 write_data.f90
    ./a.out
    mv OUTPUT.txt OUT_REG_${ivar}_2012_06_dd.txt
done
