#!/bin/csh

set base_dir = /data/bluesky/output_archive/hysplit-pp

#foreach domain ( UofA-1.8km PNW-4km PNW-1.33km NAM84-0.15deg \
#                 NAM-3km GFS-0.5deg-column GFS-0.15deg \
#                 GFS-0.15deg-CanadaUSA-p25deg-68N FW00Z-1km FW06Z-1km \
#                 FW12Z-1km FW18Z-1km CANSAC-1.33km CANSAC-4km AK-12km )

  foreach n ( `find ./ -maxdepth 2 -name '20*[00|06|12|18]'` )
    echo ============== $n
    chmod --recursive a+r,u+wr $n
    tar czf $n.tar.gz $n
#   rm -R $n
  end


#end
