Converting between Helioprojective and AltAz Coordinate¶
How to find the Sun in the sky as viewed from a particular location.
SkyCoord to define the center of the Sun
Now we establish our location on the Earth, in this case let’s consider a high altitude balloon launched from Fort Sumner, NM.
Now lets convert this to a local measurement of Altitude and Azimuth.
Altitude is 37.782959956075345 deg and Azimuth is 121.34217338829706 deg
Next let’s check this calculation by converting it back to helioprojective. We should get our original input which was the center of the Sun. To go from Altitude/Azimuth to Helioprojective, you will need the distance to the Sun. solar distance. Define distance with SunPy’s almanac.
The helioprojective point is -0.021860375301912427 arcsec, -0.007958025477940405 arcsec
Total running time of the script: ( 0 minutes 2.104 seconds)