galpy.orbit.Orbit.time

Orbit.time(*args, **kwargs)[source]

Return the times at which the orbit is sampled.

Parameters:
  • t (numeric, numpy.ndarray or Quantity, optional) – Time at which to get the time (for consistency reasons). Default is to return the list of times at which the orbit is sampled.

  • ro (float or Quantity, optional) – Physical scale in kpc for distances to use to convert. Default is object-wide default.

  • vo (float or Quantity, optional) – Physical scale for velocities in km/s 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:

Times at which the orbit is sampled.

Return type:

float, numpy.ndarray or Quantity [*input_shape,nt]

Notes

  • 2019-02-28 - Written - Bovy (UofT)