The gravity between the sun and earth is quite weak. Space weather is caused by strong magnetic fields and highly charged energetic particles coming from the sun and interacting with earth’s magnetic field. The gravity isn’t strong enough to influence these events in any way that we can see.
Comments