#!/bin/csh
# rsync microlens lightcurve data for specified year
set year = $1
set file = $PLENS/rsync_pwd
#set from = ML_RsyncNet@octans.st-andrews.ac.uk
set from = ML_RsyncNet@mlrsync-stand.net
echo "#######################################"
date
echo rsync microlens lightcurve data for specified year
# year
if( $year == "" ) then
        echo -n "Year (e.g. 2009) : "
        set year = $<
endif
if( $year < 1980 ) then
        echo ERROR $year invalid
        exit
endif
echo rsync microlens lightcurve data for $year
set from = $from'::Data'$year
echo from $from
rsync -avz --password-file=$file $from .
echo rsync_year finished.
date
echo "#######################################"
