#!/bin/sh
# loop on E3 files and interp them onto a 2x2 grid
# using cdo

#for i in `ls *.nc`; 
for i in `ls *_amip_p4k.nc`
do 
 echo $i

 # get the name without .nc 
 name=`echo $i | cut -d. -f1-3`

 # cdo command to interpolate 
 cdo remapbil,grid2x2.cdo $i $name.2x2.nc
done



