Ions Abundance Close to the Earth Surface:. the Role of the Magnetosphere