Transforming Between Systems ---------------------------- `astropy.coordinates` supports a rich system for transforming coordinates from one system to another. The key concept is that a registry of all the transformations is used to determine which coordinates can convert to others. When you ask for a transformation, the registry (or "transformation graph") is searched for the shortest path from your starting coordinate to your target, and it applies all of the transformations in that path in series. This allows only the simplest transformations to be defined, and the package will automatically determine how to combine those transformations to get from one system to another. As described above, there are two ways of transforming coordinates. Coordinates that have an alias (created with `~astropy.coordinates.transformations.coordinate_alias`) can be converted by simply using attribute style access to any other coordinate system:: >>> gc = GalacticCoordinates(l=0, b=45, unit=(u.degree, u.degree)) >>> gc.fk5 >>> ic = ICRSCoordinates(ra=0, dec=45, unit=(u.degree, u.degree))) >>> ic.fk5 While this appears to be simple attribute-style access, it is actually just syntactic sugar for the `transform_to` method:: >>> from astropy.coordinates import FK5Coordinates >>> gc.transform_to(FK5Coordinates) >>> ic.transform_to(FK5Coordinates) The full list of supported coordinate systems and transformations is in the `astropy.coordinates` API documentation below. Additionally, some coordinate systems support precessing the coordinate to produce a new coordinate in the same system but at a different equinox. Note that these systems have a default equinox they start with if you don't specify one:: >>> fk5c = FK5Coordinates('02h31m49.09s +89d15m50.8s') >>> fk5c.equinox