
#!/usr/bin/sh
rm -f completed.log
rm -f arc.log
rm -f dlyinv.log
rm -f *.trace

echo Enter the beginning year and julian day [yyjjj]
echo -n :
read num1
echo Enter the ending year and julian day [yyjjj]
echo -n :
read num2
echo Enter the data type [w60,s60,s06,m06,m60,p06,c60 or c06]
echo -n :
read dtype
echo Enter the number of days to skip on the tape [if reading day 11, skip 10]
echo -n :
read dskip
/hurricane/dmanns/checkdrive
    hurr1=/hurricane/dmanns/
    hurr2=/hurricane/dmanns/

    filskip=`expr $dskip \* 3`

    while [ $num1 -le $num2 ]
    do
        echo $num1'.'$dtype >> arc.log
        echo $num1'invt.inv' >> dlyinv.log
        echo $num1 > $num1'invt.inv'
        num1=`expr $num1 + 1`
    done
    checkdrive
    /hurricane/dmanns/wrebufr $filskip
    /hurricane/dmanns/rdprof
rm -f arc.log

     



