# # The positive x direction (i.e., the l=0, b=0 direction) points to the center of the Milky Way and the z-axis points toward the North Galactic Pole (following the IAU’s 1958 definition)
# gala_cor = ecl_cor.transform_to("galactic")
gala_cor=ecl_cor.transform_to("galactic")
# self.gb = gala_cor.b.value # 银纬 太阳系质心
# self.gl = gala_cor.l.value # 银经 太阳系质心
self.gb=gala_cor.b.value# 银纬 太阳系质心
self.gl=gala_cor.l.value# 银经 太阳系质心
# # Cartesian coordinate ,related with equator coordinate,笛卡尔坐标,第四个是距离原点(也就是地心)的距离,黄道坐标系
# # Cartesian coordinate ,related with equator coordinate,笛卡尔坐标,第四个是距离原点(也就是地心)的距离,黄道坐标系
# cartesianXYZ = self.ecl_cor.cartesian
# self.x = (cartesianXYZ.x.value)
# self.y = (cartesianXYZ.y.value)
# self.z = (cartesianXYZ.z.value)
# self.dist2orig = self.ecl_cor.distance # 1.0
defsetCoordinateValue_galactic(self):
# The positive x direction (i.e., the l=0, b=0 direction) points to the center of the Milky Way and the z-axis points toward the North Galactic Pole (following the IAU’s 1958 definition)
gala_cor=self.ecl_cor.transform_to("galactic")
# def setCoordinateValue_galactic(self):
# # The positive x direction (i.e., the l=0, b=0 direction) points to the center of the Milky Way and the z-axis points toward the North Galactic Pole (following the IAU’s 1958 definition)