galpy.orbit.Orbit.rap¶
- Orbit.rap(analytic=False, pot=None, **kwargs)[source]¶
Calculate the apocenter radius, either numerically from the numerical orbit integration or using analytical means.
- Parameters:
analytic (bool, optional) – If True, compute this analytically. Default is False.
pot (Potential or list of Potential instances, optional) – Gravity potential to use for analytical calculation. Default is the gravitational field used for the orbit integration.
type ({'staeckel', 'adiabatic', 'spherical'}, optional) – Type of actionAngle module to use when analytic=True. Default is ‘staeckel’.
ro (float or Quantity, optional) – Physical scale in kpc for distances to use to convert. Default is object-wide default.
use_physical (bool, optional) – Use to override object-wide default for using a physical scale for output.
quantity (bool, optional) – If True, return an Astropy Quantity object. Default from configuration file.
- Returns:
Apocenter radius of the orbit.
- Return type:
float, numpy.ndarray or Quantity [*input_shape]
Notes
2019-02-25 - Written - Bovy (UofT)