galpy.potential.RZToplanarPotential

galpy.potential.RZToplanarPotential(RZPot)[source]

Convert an RZPotential to a planarPotential in the mid-plane (z=0).

Parameters:

RZPot (RZPotential instance or a combined potential formed using addition (pot1+pot2+…)) – Existing planarPotential instances are just copied to the output.

Return type:

planarPotential or planarCompositePotential instance(s)

Notes

  • 2010-07-13 - Written - Bovy (NYU)

  • 2024-11-27 - Updated to return planarCompositePotential for multiple potentials - Copilot