#!/bin/tcsh
#
set years = "2002 2003 2004 2005 2006 2007 2008 2009"
#
foreach year ($years)
    echo "starting year $year"

    mkdir $year
    cp /auto/internet/ftp/data/qscatv2/$year/sir/quev/Arc/*/a/*.sir.gz $year/
    tar cf quev_Arc_$year.tar $year/*
    rm $year/*
    rmdir $year

    mkdir $year
    cp /auto/internet/ftp/data/qscatv2/$year/sir/queh/Arc/*/a/*.sir.gz $year/
    tar cf quey_Arc_$year.tar $year/*
    rm $year/*
    rmdir $year

    mkdir $year
    cp /auto/internet/ftp/data/amsre/$year/sir/Amv/Arc/*/a/Am1v*.sir.gz $year/
    tar cf Am1v_Arc_$year.tar $year/*
    rm $year/*
    rmdir $year

end
