Skip to content

Commit

Permalink
directly specify degree unit to avoid confusion with kpc unit
Browse files Browse the repository at this point in the history
  • Loading branch information
jobovy committed Jun 3, 2015
1 parent 9eac2ad commit e7b98e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions galpy/orbit_src/OrbitTop.py
Expand Up @@ -771,9 +771,10 @@ def SkyCoord(self,*args,**kwargs):
"""
radec= self._radec(*args,**kwargs)
tdist= self.dist(*args,**kwargs)
return coordinates.SkyCoord(radec[:,0],radec[:,1],
return coordinates.SkyCoord(radec[:,0]*units.degree,
radec[:,1]*units.degree,
distance=tdist*units.kpc,
frame='icrs',unit='deg')
frame='icrs')

def _radec(self,*args,**kwargs):
"""Calculate ra and dec"""
Expand Down

0 comments on commit e7b98e7

Please sign in to comment.