get_body

ssapy.body.get_body(name, model=None)[source][source]

Get a Body object for a named body.

Parameters:
  • name (str) – Name of the body. Must be one of “earth”, “moon”, “sun”, or other supported planets.

  • model (str, optional only available for Earth) – Name of the Earth harmonic model to use. Default is EGM84. options: EGM96, EGM2008.

Returns:

body – Body object for the named body.

Return type:

Body