This is a complex subject. You might want to look at an article I have written at Solar Storms: Silent Menace! to get a good idea. Also, look at the included reference links to other discussions.
All answers are provided by Dr. Sten Odenwald (Raytheon STX) for the
NASA IMAGE/POETRY project.