Sun
starplot.Sun
dataclass
Sun 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
apparent_size
class-attribute
instance-attribute
Apparent diameter (degrees)
geometry
class-attribute
instance-attribute
Shapely Polygon of the Sun'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
get
classmethod
Get the Sun for 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 Sun/moon/planet positions (see Skyfield's documentation for details) |
'de440s.bsp'
|