#!/bin/tcsh
#
set years = "1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009"
#
foreach year ($years)
    echo "starting year $year *.ie"
    mkdir $year

#    cp /auto/internet/ftp/data/qscatv2/$year/sir/qusv/Ant/*/a/*k.gif $year/
#    tar cf qusv_Ant_$year.tar $year/*
#    md5sum  qusv_Ant_$year.tar >  qusv_Ant_$year.tar.md5
#    rm $year/*

#    cp /auto/internet/ftp/data/qscatv2/$year/sir/qusv/Arc/*/a/*k.gif $year/
#    tar cf qusv_Arc_$year.tar $year/*
#    md5sum  qusv_Arc_$year.tar >  qusv_Arc_$year.tar.md5
#    rm $year/*

    cp /auto/internet/ftp/data/qscatv2/$year/sir/quev/Ant/*/a/*k.gif $year/
    tar cf quev_Ant_$year.tar $year/*
    md5sum  quev_Ant_$year.tar >  quev_Ant_$year.tar.md5
    rm $year/*

    cp /auto/internet/ftp/data/qscatv2/$year/sir/quev/Arc/*/a/*k.gif $year/
    tar cf quev_Arc_$year.tar $year/*
    md5sum  quev_Arc_$year.tar >  quev_Arc_$year.tar.md5
    rm $year/*

    rmdir $year
end
