Satellite
Satellites can be created from a two-line element (TLE) set or a CelesTrak JSON.
starplot.Satellite
dataclass
Satellites can be created in two ways:
constellation_id
class-attribute
instance-attribute
Three-letter IAU id of the constellation that contains this object
healpix_index
class-attribute
instance-attribute
HEALPix pixel index of this object's RA/DEC
observer
class-attribute
instance-attribute
observer: Observer = None
Observer of this satellite instance
distance
class-attribute
instance-attribute
Distance to satellite, in Astronomical units (the Earth-Sun distance of 149,597,870,700 m)
geometry
class-attribute
instance-attribute
Shapely Point of the satellite's position. Right ascension coordinates are in degrees (0...360).
create_optic
Creates an optic plot with this object at the center
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args
|
args passed through to |
()
|
|
**kwargs
|
kwargs passed through to |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
OpticPlot |
new instance of a |
create_map
Creates a map plot with this object at the center
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
height_degrees
|
float
|
Height of the map (degrees) |
required |
width_degrees
|
float
|
Width of the map (degrees) |
required |
*args
|
args passed through to |
()
|
|
**kwargs
|
kwargs passed through to |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
MapPlot |
new instance of a |
constellation
Returns an instance of the Constellation that contains this object, or None if no constellation is found.
populate_constellation_id
Populates the constellation_id field based on the location of this object
from_json
classmethod
Get a satellite for a specific date/time/location from a CelesTrak JSON.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
Dictionary of the CelesTrak JSON |
required |
observer
|
Observer
|
Observer instance that specifies a time and location |
None
|
from_tle
classmethod
Get a satellite for a specific date/time/location from a two-line element set (TLE).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the satellite |
required |
line1
|
str
|
Line 1 of the two-line element set (TLE) |
required |
line2
|
str
|
Line 2 of the two-line element set (TLE) |
required |
observer
|
Observer
|
Observer instance that specifies a time and location |
None
|
trajectory
trajectory(
date_start: datetime, date_end: datetime, step: timedelta | None = None
) -> Iterator[Satellite]
Iterator for getting a trajectory of the satellite.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
date_start
|
datetime
|
Starting date/time for the trajectory (inclusive) |
required |
date_end
|
datetime
|
End date/time for the trajectory (exclusive) |
required |
step
|
timedelta | None
|
Time-step for the trajectory. Defaults to 1-day |
None
|
Returns:
| Type | Description |
|---|---|
Iterator[Satellite]
|
Iterator that yields a Satellite instance at each step in the date range |