#!/bin/csh

set yr = 2017
set months = ( 01 02 03 04 05 06 07 08 09 10 11 12 )
set days = (   31 28 31 30 31 30 31 31 30 31 30 31 )


mkdir $yr

set cnt=1
foreach mn ( ${months} ) 
    set day=1
    while ( ${day} <= ${days[$cnt]} ) 
        if ( ${day} < 10 ) then
	    set dy="0${day}"
	else
	    set dy=${day}
	endif

	cp -p ${VGFARCHIVE}/excess_rain/${yr}${mn}${dy}/98e*.vgf $yr
	cp -p ${VGFARCHIVE}/excess_rain/${yr}${mn}${dy}/99e*.vgf $yr
    
        @ day ++

    end
end
