These are chat archives for astropy/astropy
@bsipocz - yes, the coordinates package changed a lot prior to the 0.4 release. But it should be more stable now that the release is out
But I can’t reproduce your specific problem. If I do
coordinates.SkyCoord('8:0:0 -5:00 ', unit=(u.hour,u.deg)) on astropy v0.4, I get
<SkyCoord (ICRS): ra=120.0 deg, dec=-5.0 deg> out, which is what we expect, right?
Ah, I see, @bsipocz, I misunderstood.
One thing you could do if all you want is to convert to decimal degree (or use it before the next astropy release):
if ‘+’ in simbadstring: ra, dec = simbadstring.split(‘+’) dec = ‘+’ + dec elif ‘-’ in simbadstring: ra, dec = simbadstring.split(‘-’) dec = ‘-’ + dec else: raise some error radeg = Angle(ra, u.hour).deg decdeg = Angle(dec, u.deg).deg