本文整理匯總了Python中galpy.orbit.Orbit.vphi方法的典型用法代碼示例。如果您正苦於以下問題:Python Orbit.vphi方法的具體用法?Python Orbit.vphi怎麽用?Python Orbit.vphi使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類galpy.orbit.Orbit
的用法示例。
在下文中一共展示了Orbit.vphi方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: pow
# 需要導入模塊: from galpy.orbit import Orbit [as 別名]
# 或者: from galpy.orbit.Orbit import vphi [as 別名]
distance,
pm_ra,
pm_dec,
velocity,
orbit.x() * r0,
orbit.y() * r0,
orbit.z() * r0,
orbit.U()[0],
orbit.V()[0],
orbit.W()[0],
orbit.vx()[0] * v0_mc,
orbit.vy()[0] * v0_mc,
orbit.vz() * v0_mc,
orbit.vR() * v0_mc,
orbit.vT() * v0_mc,
orbit.vphi()[0] * v0_mc,
orbit.L()[0][2] * v0 * r0, # Lz, 18
orbit.E(pot=MWPotential) * pow(v0, 2)/2, # Energy
pow(np.sum(pow(orbit.L()[0][:2], 2)), 0.5) * v0 * r0 # Lperp
]
velocities[i, :] = velocity_field
monte_carlo_data[j, :, :] = velocities
x_pos, y_pos = velocities[:, 6], velocities[:, 7]
ax2.scatter(x_pos, y_pos, marker='o', s=3, edgecolor='none', facecolor=star['color'], alpha=0.3)
invisible.append(ax2.scatter(0, 0, marker='o', s=30, edgecolor='none', facecolor=star['color'], label=star['designation']))