[AstroPy] Constructing Angle from a tuple specified as sign string plus numbers for degrees, arcmin, arcsec

Eric L. N. Jensen ejensen1 at swarthmore.edu
Mon Aug 10 17:26:57 EDT 2015


Hi all,

I’m working with a table from CDS (i.e. from an ApJ paper) that specifies the declination coordinate in four separate columns:  a string for the sign of the declination, and three numerical columns for degrees, arcminutes, and arcseconds.  Is there a straightforward way to combine these into a single astropy.coordinates Angle object?  The standard Angle function (constructor?) only accepts a tuple with three entries.  

I guess what I’m looking for is the inverse method of ‘signed_dms’. 

If it’s of use, the table I’m working with is here:  http://iopscience.iop.org/0067-0049/184/1/18/fulltext/apjs300673t4_mrt.txt 

Thanks in advance for your help with this,

Eric
 




More information about the AstroPy mailing list