Last active
December 17, 2015 01:19
-
-
Save adrn/5527142 to your computer and use it in GitHub Desktop.
Transform to and from Sagittarius coordinates in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import astropy.units as u | |
from astropy.coordinates import ICRSCoordinates | |
from streams.coordinates import SgrCoordinates, OrphanCoordinates | |
icrs = ICRSCoordinates(15.34167, 1.53412, unit=(u.hour, u.degree)) | |
sgr = icrs.transform_to(SgrCoordinates) | |
print(sgr.Lambda, sgr.Beta) | |
orp = sgr.transform_to(OrphanCoordinates) | |
print(orp.Lambda, orp.Beta) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!