Porkchop module

This module contains the function that enables the user to make porkchop plots between two pliastro.bodies.Body instances. Other parameters to customize the plots such us setting the maximum C3 or showing the time lines can be passed to this function.

This is the script for porkchop plotting

poliastro.plotting.porkchop.porkchop(departure_body, target_body, launch_span, arrival_span, ax=None, time_lines=True, max_c3=<Quantity 45. km2 / s2>)

Plots porkchop between two bodies.

Parameters:
Returns:

  • c3_launch (np.ndarray) – Characteristic launch energy
  • c3_arrrival (np.ndarray) – Characteristic arrival energy
  • tof (np.ndarray) – Time of flight for each transfer

Example

>>> from poliastro.plotting.porkchop import porkchop
>>> from poliastro.bodies import Earth, Mars
>>> from poliastro.util import time_range
>>> launch_span = time_range("2005-04-30", end="2005-10-07")
>>> arrival_span = time_range("2005-11-16", end="2006-12-21")
>>> c3dpt, c3arr, tof = porkchop(Earth, Mars, launch_span, arrival_span)