filter function to remove floods from local hazards