ostk.astrodynamics.display.AccessesPlot

class AccessesPlot(
earth: Celestial,
interval: RealInterval,
trajectory_step: Duration,
access_step: Duration,
ground_station_lla: LLA | None = None,
color: str | None = None,
)

Bases: object

Accesses plot. Display a 2D world map, with 1 ground station and multiple satellites, highlighting the accesses.

Methods

add_accesses

Add accesses to the plot.

add_ground_station

Add a ground station to the plot.

add_satellite

Add a satellite trajectory to the plot.

show

Display the figure.

add_ground_station(
ground_station_lla: LLA,
color: str | tuple[int, int, int],
) None

Add a ground station to the plot.

Parameters:
  • ground_station_lla (LLA) -- The ground station location.

  • color (str | tuple[int, int, int]) -- The color of the ground station.

add_accesses(
trajectory: Trajectory,
accesses: list[Access],
rgb: str | tuple[int, int, int],
) None

Add accesses to the plot.

Parameters:
  • trajectory (Trajectory) -- The satellite trajectory.

  • accesses (list[Access]) -- The list of accesses.

  • rgb (str | tuple[int, int, int]) -- The color of the accesses, as a string or tuple of RGB values.

add_satellite(
trajectory: Trajectory,
accesses: list[Access] | None = None,
rgb: str | tuple[int, int, int] | None = None,
opacity: float = 0.3,
) None

Add a satellite trajectory to the plot. If accesses is provided (deprecated), they will be plotted and a deprecation warning will be emitted.

Parameters:
  • trajectory (Trajectory) -- The satellite trajectory.

  • accesses (list[Access] | None, optional) -- (Deprecated) Accesses to plot; use add_accesses().

  • rgb (str | tuple[int, int, int] | None, optional) -- The color of the satellite, as a string or tuple of RGB values.

  • opacity (float, optional) -- Opacity of the satellite trajectory line.

show()

Display the figure.