def parse(line): """Return a `Star` build by parsing a Hipparcos catalog entry `line`.""" # See ftp://cdsarc.u-strasbg.fr/cats/I/239/ReadMe star = Star( ra=Angle(degrees=float(line[51:63])), dec=Angle(degrees=float(line[64:76])), ra_mas_per_year=float(line[87:95]), dec_mas_per_year=float(line[96:104]), parallax_mas=float(line[79:86]), names=[('HIP', int(line[8:14]))], ) star._position_au += star._velocity_au_per_d * days distance, dec, ra = to_polar(star._position_au) star.ra = Angle(radians=ra, preference='hours') star.dec = Angle(radians=dec) return star
def parse(line): "DEPRECATED; see :func:`~skyfield.data.hipparcos.load_dataframe() instead." # See ftp://cdsarc.u-strasbg.fr/cats/I/239/ReadMe star = Star( ra=Angle(degrees=float(line[51:63])), dec=Angle(degrees=float(line[64:76])), ra_mas_per_year=float(line[87:95]), dec_mas_per_year=float(line[96:104]), parallax_mas=float(line[79:86]), names=[('HIP', int(line[8:14]))], ) star._position_au += star._velocity_au_per_d * days distance, dec, ra = to_polar(star._position_au) star.ra = Angle(radians=ra, preference='hours') star.dec = Angle(radians=dec) return star
def parse(line): "DEPRECATED; see :func:`~skyfield.data.hipparcos.load_dataframe() instead." # See ftp://cdsarc.u-strasbg.fr/cats/I/239/ReadMe star = Star( ra=Angle(degrees=float(line[51:63])), dec=Angle(degrees=float(line[64:76])), ra_mas_per_year=float(line[87:95]), dec_mas_per_year=float(line[96:104]), parallax_mas=float(line[79:86]), names=[('HIP', int(line[8:14]))], ) star._position_au += star._velocity_au_per_d * days distance, dec, ra = to_polar(star._position_au) star.ra = Angle(radians=ra, preference='hours') star.dec = Angle(radians=dec) return star
def parse(line): """Return a `Star` build by parsing a Hipparcos catalog entry `line`.""" # See ftp://cdsarc.u-strasbg.fr/cats/I/239/ReadMe star = Star( ra=Angle(degrees=float(line[51:63])), dec=Angle(degrees=float(line[64:76])), ra_mas_per_year=float(line[87:95]), dec_mas_per_year=float(line[96:104]), parallax_mas=float(line[79:86]), names=[('HIP', int(line[8:14]))], ) star._position_au += star._velocity_au_per_d * days distance, dec, ra = to_polar(star._position_au) star.ra = Angle(radians=ra, preference='hours') star.dec = Angle(radians=dec) return star