Scientists find faster method of predicting space weather