Skip to content

Instantly share code, notes, and snippets.

@dokeeffe
Created February 8, 2017 09:01
Show Gist options
  • Save dokeeffe/18857db66dbabc14679c20a8560e2cd6 to your computer and use it in GitHub Desktop.
Save dokeeffe/18857db66dbabc14679c20a8560e2cd6 to your computer and use it in GitHub Desktop.
from astropy.coordinates import EarthLocation,SkyCoord
from astropy.time import Time
from astropy import units as u
from astropy.coordinates import AltAz
observing_location = EarthLocation(lat='52.2532', lon='351.63910339111703', height=100*u.m)
observing_time = Time('2017-02-05 20:12:18')
aa = AltAz(location=observing_location, obstime=observing_time)
coord = SkyCoord('4h42m', '-38d6m50.8s')
coord.transform_to(aa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment