Extract CZML

class poliastro.czml.extract_czml.CZMLExtractor(start_epoch, end_epoch, N, attractor=None, pr_map=None, scene3D=True)

A class for extracting orbitary data to Cesium

add_ground_station(pos, id_description=None, label_fill_color=None, label_font=None, label_outline_color=None, label_text=None, label_show=True)

Adds a ground station

Parameters
  • orbit (poliastro.Orbit) – Orbit to be added

  • pos (list [units]) – coordinates of ground station, [u v] ellipsoidal coordinates (0 elevation)

  • id_description (str) – Set ground station description

  • label_fill_color (list (int)) – Fill Color in rgba format

  • label_outline_color (list (int)) – Outline Color in rgba format

  • label_font (str) – Set label font style and size (CSS syntax)

  • label_text (str) – Set label text

  • label_show (bool) – Indicates whether the label is visible

add_orbit(orbit, rtol=1e-10, N=None, groundtrack_show=False, groundtrack_lead_time=None, groundtrack_trail_time=None, groundtrack_width=None, groundtrack_color=None, id_name=None, id_description=None, path_width=None, path_show=None, path_color=None, label_fill_color=None, label_outline_color=None, label_font=None, label_text=None, label_show=None)

Adds an orbit

Parameters
  • orbit (poliastro.Orbit) – Orbit to be added

  • rtol (float) – Maximum relative error permitted

  • N (int) – Number of sample points

  • groundtrack_show (bool) – If set to true, the groundtrack is displayed.

  • groundtrack_lead_time (double) – The time the animation is ahead of the real-time groundtrack

  • groundtrack_trail_time (double) – The time the animation is behind the real-time groundtrack

  • groundtrack_width (int) – Groundtrack width

  • groundtrack_color (list (int)) – Rgba groundtrack color. By default, it is set to the path color

  • id_name (str) – Set orbit name

  • id_description (str) – Set orbit description

  • path_width (int) – Path width

  • path_show (bool) – Indicates whether the path is visible

  • path_color (list (int)) – Rgba path color

  • label_fill_color (list (int)) – Fill Color in rgba format

  • label_outline_color (list (int)) – Outline Color in rgba format

  • label_font (str) – Set label font style and size (CSS syntax)

  • label_text (str) – Set label text

  • label_show (bool) – Indicates whether the label is visible

add_trajectory(positions, epochs, groundtrack_show=False, groundtrack_lead_time=None, groundtrack_trail_time=None, groundtrack_width=None, groundtrack_color=None, id_name=None, id_description=None, path_width=None, path_show=None, path_color=None, label_fill_color=None, label_outline_color=None, label_font=None, label_text=None, label_show=None)

Adds trajectory.

Parameters
  • positions (CartesianRepresentation) – Trajectory to plot.

  • epochs (Time) – Epochs for positions.

  • groundtrack_show (bool) – If set to true, the groundtrack is displayed.

  • groundtrack_lead_time (double) – The time the animation is ahead of the real-time groundtrack

  • groundtrack_trail_time (double) – The time the animation is behind the real-time groundtrack

  • groundtrack_width (int) – Groundtrack width

  • groundtrack_color (list (int)) – Rgba groundtrack color. By default, it is set to the path color

  • id_name (str) – Set orbit name

  • id_description (str) – Set orbit description

  • path_width (int) – Path width

  • path_show (bool) – Indicates whether the path is visible

  • path_color (list (int)) – Rgba path color

  • label_fill_color (list (int)) – Fill Color in rgba format

  • label_outline_color (list (int)) – Outline Color in rgba format

  • label_font (str) – Set label font style and size (CSS syntax)

  • label_text (str) – Set label text

  • label_show (bool) – Indicates whether the label is visible

get_document()

Retrieves CZML document.