poliastro.czml.extract_czml
¶
Module Contents¶
Classes¶
A class for extracting orbitary data to Cesium |
Attributes¶
- poliastro.czml.extract_czml.PIC_SATELLITE = data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAAC...¶
- poliastro.czml.extract_czml.PIC_GROUNDSTATION = data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAAC...¶
- 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(self, 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
pos (list[Quantity]) – Coordinates of ground station, list of geodetic latitude and longitude [lon, lat] (0 elevation)
id_description (str) – Set ground station description
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(self, 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.twobody.orbit.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 (float) – The time the animation is ahead of the real-time groundtrack
groundtrack_trail_time (float) – 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
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(self, 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 (float) – The time the animation is ahead of the real-time groundtrack
groundtrack_trail_time (float) – 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
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(self)¶
Retrieves CZML document.