poliastro.czml.extract_czml

Module Contents

Classes

CZMLExtractor

A class for extracting orbitary data to Cesium

poliastro.czml.extract_czml.PIC_SATELLITE = data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADJSURBVDhPnZHRDcMgEEMZjVEYpaNklIzSEfLfD4qNnXAJSFWfhO7w2Zc0Tf9QG2rXrEzSUeZLOGm47WoH95x3Hl3jEgilvDgsOQUTqsNl68ezEwn1vae6lceSEEYvvWNT/Rxc4CXQNGadho1NXoJ+9iaqc2xi2xbt23PJCDIB6TQjOC6Bho/sDy3fBQT8PrVhibU7yBFcEPaRxOoeTwbwByCOYf9VGp1BYI1BA+EeHhmfzKbBoJEQwn1yzUZtyspIQUha85MpkNIXB7GizqDEECsAAAAASUVORK5CYII=
poliastro.czml.extract_czml.PIC_GROUNDSTATION = data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACvSURBVDhPrZDRDcMgDAU9GqN0lIzijw6SUbJJygUeNQgSqepJTyHG91LVVpwDdfxM3T9TSl1EXZvDwii471fivK73cBFFQNTT/d2KoGpfGOpSIkhUpgUMxq9DFEsWv4IXhlyCnhBFnZcFEEuYqbiUlNwWgMTdrZ3JbQFoEVG53rd8ztG9aPJMnBUQf/VFraBJeWnLS0RfjbKyLJA8FkT5seDYS1Qwyv8t0B/5C2ZmH2/eTGNNBgMmAAAAAElFTkSuQmCC
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

_init_orbit_packet_cords_(self, i, rtol)
Parameters
  • i (int) – Index of referenced orbit

  • rtol (float) – Maximum relative error permitted

Returns

Return type

coordinate list

_init_groundtrack_packet_cords_(self, i, rtol)
Parameters
  • i (int) – Index of referenced orbit

  • rtol (float) – Maximum relative error permitted

Returns

Return type

coordinate list

_init_czml_(self)

Only called at the initialization of the extractor Builds packets.

_change_custom_params(self, ellipsoid, pr_map, scene3D)

Change the custom properties package.

Parameters
  • ellipsoid (list(int)) – Defines the attractor ellipsoid. The list must have three numbers representing the radii in the x, y and z axis

  • pr_map (str) – A URL to the projection of the defined ellipsoid (UV map)

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 [units]) – coordinates of ground station, list of geodetic latitude and longitude [lon, lat] (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(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.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(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 (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(self)

Retrieves CZML document.