Differences in the Sun 's magnetic field are carried outward by the solar wind and can produce magnetic storms in the Earth 's magnetosphere . Variations in the Sun 's magnetic field are carried outward by the solar wind and can produce magnetic storms in the Earth 's own magnetosphere .