#!/bin/csh -f
set directs=`ls |grep -v EaSM.trigrid.FAMIPC5.comp_datasets | grep -v FAMIPC5.ne120.ys.noconv.02 | grep -v FAMIPC5.ne120.ys.tau60m.02 | grep -v table | grep -v cam5_clm_hydro | grep -v untar | grep -v ARM | grep -v scam | grep -v Club_Test | grep -v deep | grep -v CD10 | grep -v f.e20a6a`
echo $directs

set directparnet=`pwd`

foreach d ($directs)
  cd ${directparnet}/${d}/atm
  set tarfiles=`ls -all *tar | grep hann`
  echo $tarfiles
  foreach f ($tarfiles)
     tar xvf $f
     rm -f $f
  end

end


