plotting
cosmica.dynamics.plotting
__all__
module-attribute
__all__ = [
"visualize_grouped_constellation",
"visualize_multi_orbital_plane_constellation",
]
InPlaneIndex
InPlaneIndex = int
PlaneId
PlaneId = int
visualize_grouped_constellation
visualize_grouped_constellation(
constellation: Constellation[
tuple[PlaneId, InPlaneIndex]
],
propagation_result: Mapping[
ConstellationSatellite, SatelliteOrbitState
],
*,
time_index: int = 0
) -> None
Visualize a grouped constellation in 3D.
The constellation must be parameterized as Constellation[tuple[int, int]]
where each key is (plane_id, in_plane_index). Plane structure is derived
entirely from the dict keys — not from orbital parameters or satellite.id.
Plots one orbital trajectory per plane (using the first satellite in each
plane) and marks all satellite positions at the given time_index.
| PARAMETER | DESCRIPTION |
|---|---|
constellation
|
Constellation with
TYPE:
|
propagation_result
|
Mapping from satellite objects to propagation results.
TYPE:
|
time_index
|
Time step index at which to plot satellite positions.
TYPE:
|
Source code in src/cosmica/dynamics/plotting.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |
visualize_multi_orbital_plane_constellation
visualize_multi_orbital_plane_constellation(
constellation: MultiOrbitalPlaneConstellation[
CircularSatelliteOrbit
],
propagation_result: Mapping[
ConstellationSatellite, SatelliteOrbitState
],
time_index: int = 0,
) -> None
Source code in src/cosmica/dynamics/plotting.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |