def xyz(self):
"""
*Astropy.CartesianRepresentation*
return X,Y,Z positions based on RA, DEC and distance
"""
if self._xyz is None:
ra_dec = [
text.decode('UTF-8') for text in self.data_lists['ra_dec']]
self._xyz = SkyCoord(
ra_dec, distance=self.data_lists['distance'],
unit=(u.hourangle, u.deg, u.au)).cartesian
return self._xyz
评论列表
文章目录