Planet
starplot.Planet
dataclass
Planet model.
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
name
class-attribute
instance-attribute
Name of the planet:
- Mercury
- Venus
- Mars
- Jupiter
- Saturn
- Uranus
- Neptune
- Pluto
apparent_size
class-attribute
instance-attribute
Apparent diameter (degrees)
geometry
class-attribute
instance-attribute
Shapely Polygon of the planet's extent. 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
all
classmethod
Iterator for getting all planets at a specific date/time and observing location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
observer
|
Observer
|
Observer instance that specifies a time and location |
None
|
ephemeris
|
str
|
Ephemeris to use for calculating planet positions (see Skyfield's documentation for details) |
'de440s.bsp'
|
get
classmethod
Get a planet for a specific date/time.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Name of the planet you want to get (see |
required |
observer
|
Observer
|
Observer instance that specifies a time and location |
None
|
ephemeris
|
str
|
Ephemeris to use for calculating planet positions (see Skyfield's documentation for details) |
'de440s.bsp'
|