Visualize coordinate transformations on the sky#

Produce sky plots in a given coordinate system with the meridians and parallels for another coordinate system overlayed. This reproduces figures 3.1.2 to 3.1.7 in the Hipparcos and Tycho Catalogues Volume 1.

import numpy as np
import matplotlib.pyplot as plt

from pygaia.plot.sky import plot_coordinate_transformation_on_sky
from pygaia.astrometry.coordinates import Transformations

Show sky in ICRS coordinates with Galactic coordinate grid overlayed#

NOTE This means the transformation Transformations.GAL2ICRS should be provided as parameter to the plot_coordinate_transformation function.

fig = plt.figure(figsize=(12, 6))
plot_coordinate_transformation_on_sky(Transformations.GAL2ICRS, fig)
plt.show()
../_images/8fb37b89e8e5b8d4079f8e398675880deb14a55603001d320484fdb50e48ee84.png

Show sky in ICRS coordinates with Ecliptic coordinate grid overlayed#

NOTE This means the transformation Transformations.ECL2ICRS should be provided as parameter to the plot_coordinate_transformation function.

fig = plt.figure(figsize=(12, 6))
plot_coordinate_transformation_on_sky(Transformations.ECL2ICRS, fig)
plt.show()
../_images/4797c0676b830efbde692c50c200fb15b17fa0c6112ae4b0b73b72fb62aea0f0.png

Show sky in Galactic coordinates with ICRS coordinate grid overlayed#

fig = plt.figure(figsize=(12, 6))
plot_coordinate_transformation_on_sky(Transformations.ICRS2GAL, fig)
plt.show()
../_images/1dd6b40e9bdce9afd42f41de2e785a4ad787647f28faba40eb46b352c85d6db6.png

Show sky in Galactic coordinates with Ecliptic coordinate grid overlayed#

fig = plt.figure(figsize=(12, 6))
plot_coordinate_transformation_on_sky(Transformations.ECL2GAL, fig)
plt.show()
../_images/324999bc5f95f443af150df296f58ceba27a1bd4251092339cb6eba76f713459.png

Show sky in Ecliptic coordinates with ICRS coordinate grid overlayed#

fig = plt.figure(figsize=(12, 6))
plot_coordinate_transformation_on_sky(Transformations.ICRS2ECL, fig)
plt.show()
../_images/5214649b772c6c5b9f8894ef68b473d9018e8e2a0409a5a121078f2214c3c626.png

Show sky in Ecliptic coordinates with Galactic coordinate grid overlayed#

fig = plt.figure(figsize=(12, 6))
plot_coordinate_transformation_on_sky(Transformations.GAL2ECL, fig)
plt.show()
../_images/e6b5a0ebe2fd01440b3601ea01e1cdb1d85b83fc9baec643ea90b873934b3516.png