#!/bin/csh

if($#argv != 5)then
    echo
    echo "Usage: $0 {network} {site} {month} {day} {year}"
    echo "  where"
    echo "     nnnn = Network (GPMVN, GCOMW1, KWAJ, NPOL)"
    echo "     site = ssss (NPOL, KWAJ)"
    echo "     month = mm (ex. 07)"
    echo "     day = dd (ex. 23)"
    echo "     year = yyyy (ex. 2008)"
    echo
    exit
endif

set network = $1
set site = $2
set month = $3
set day = $4
set year = $5
set mday = $3$4
set syear = `echo $year | cut -c3-4`
set yymmdd = $syear$month$day
set myear = $month'-'$year



cd ./cal_uf/


if (-e /gvs2/gpmgv_data/gpmgv/Piton_Villers/1CUF/$year/$mday/) then
    idl<<EOF
#    cal_uf_mod,'$network','$site','$month','$day','$year'
     cal_uf_mod2_reunion,'$network','$site','$month','$day','$year'
    EOF
endif

