function event=eventdayv2(stationname,period)
if exist([stationname,datestr(period,'YY'),datestr(period,'mm'),datestr(period,'dd'),'.CLS']) >0 %test to see if file exists
    data=load([stationname,datestr(period,'YY'),datestr(period,'mm'),datestr(period,'dd'),'.CLS']);
    if data(2)==1 || data(3)==1
        event=1;
    else
        event=0;
    end
else
    event=0;
end
end