skyweaver.orbits¶
Orbit specifications and conversion to SGP4/Skyfield objects.
This module defines a lightweight, physical orbit description for artificial
Earth satellites and provides conversion utilities for building sgp4 and
Skyfield satellite objects.
The initial design target is circular or near-circular LEO orbits for simulation and coverage studies.
OrbitSpec
dataclass
¶
OrbitSpec(name, epoch, altitude_km, inclination_deg, raan_deg=0.0, mean_anomaly_deg=0.0, eccentricity=0.0, arg_perigee_deg=0.0, bstar=0.0)
A simple physical specification for an artificial Earth orbit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Human-readable orbit name. |
required |
epoch
|
datetime
|
Epoch of the element set. Naive datetimes are interpreted as UTC. |
required |
altitude_km
|
float
|
Mean altitude above the WGS84 equatorial radius, in kilometers. |
required |
inclination_deg
|
float
|
Inclination in degrees. |
required |
raan_deg
|
float
|
Right ascension of the ascending node, in degrees. |
0.0
|
mean_anomaly_deg
|
float
|
Mean anomaly at epoch, in degrees. |
0.0
|
eccentricity
|
float
|
Orbital eccentricity. For the initial |
0.0
|
arg_perigee_deg
|
float
|
Argument of perigee in degrees. For circular orbits this is formally arbitrary, but SGP4 still requires a value. |
0.0
|
bstar
|
float
|
Ballistic drag coefficient in inverse Earth radii. Leave at 0.0 for idealized artificial design studies. |
0.0
|
Notes
This class stores a small, physically meaningful set of inputs that can later be converted into an SGP4 satellite record.
mean_motion_rad_s
property
¶
mean_motion_rad_s
Return the Keplerian mean motion in radians per second.
__post_init__
¶
__post_init__()
Validate fields and normalize periodic angles.
Source code in src/skyweaver/orbits.py
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 | |
circular
classmethod
¶
circular(*, name, epoch, altitude_km, inclination_deg, raan_deg=0.0, phase_deg=0.0, bstar=0.0)
Construct a circular orbit.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Orbit name. |
required |
epoch
|
datetime
|
Epoch of the orbit. Naive datetimes are interpreted as UTC. |
required |
altitude_km
|
float
|
Altitude above Earth's equatorial radius. |
required |
inclination_deg
|
float
|
Inclination in degrees. |
required |
raan_deg
|
float
|
Right ascension of the ascending node in degrees. |
0.0
|
phase_deg
|
float
|
Orbital phase, mapped here onto mean anomaly for circular orbits. |
0.0
|
bstar
|
float
|
Optional drag term for SGP4. |
0.0
|
Source code in src/skyweaver/orbits.py
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 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | |
summary
¶
summary()
Return a compact human-readable orbit summary.
Source code in src/skyweaver/orbits.py
254 255 256 257 258 259 260 261 262 263 | |
to_earth_satellite
¶
to_earth_satellite(satnum=99999)
Wrap this orbit as a Skyfield EarthSatellite.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
satnum
|
int
|
Satellite number to assign to the underlying SGP4 record. |
99999
|
Returns:
| Type | Description |
|---|---|
EarthSatellite
|
Skyfield Earth satellite object. |
Source code in src/skyweaver/orbits.py
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |
to_satrec
¶
to_satrec(satnum=99999)
Convert this orbit specification into an sgp4.api.Satrec.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
satnum
|
int
|
Satellite number to assign to the record. |
99999
|
Returns:
| Type | Description |
|---|---|
Satrec
|
Initialized SGP4 satellite record. |
Source code in src/skyweaver/orbits.py
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |