Relationship between the Temperatures of Solar Corona and Planetary Magnetosheaths