 During a magnetic storm , charged particles can be deflected from the outer magnetosphere , directed along field lines into Earth 's ionosphere , where atmospheric atoms can be excited and ionized , causing the aurora . 
