SunRelativeEclipticFrame

class nsb2.core.coordinates.SunRelativeEclipticFrame[source]

Bases: BaseCoordinateFrame

Ecliptic coordinates with longitude measured from the Sun.

Longitude alpha is the ecliptic longitude minus the Sun’s; latitude beta is the ecliptic latitude.

Parameters:

obstime (astropy.time.Time) – Time of observation, needed to locate the Sun. Required for any transformation into or out of this frame.

Notes

Like every astropy spherical frame, alpha is stored normalised to [0, 360) degrees. Solar elongation is therefore the wrapped absolute value of alpha, not alpha itself: a direction ten degrees west of the Sun is stored as 350 degrees, not as -10.

Examples

>>> import astropy.units as u
>>> from astropy.coordinates import SkyCoord
>>> from astropy.time import Time
>>> t = Time("2024-06-15T22:00:00")
>>> sc = SkyCoord(10 * u.deg, 20 * u.deg, frame="icrs")
>>> rel = sc.transform_to(SunRelativeEclipticFrame(obstime=t))
>>> bool(0 * u.deg <= rel.alpha < 360 * u.deg)
True

Attributes Summary

default_differential

Default representation for differential data (e.g., velocity)

default_representation

Default representation for position data

frame_attributes

frame_specific_representation_info

Mapping for frame-specific component names

name

obstime

A frame attribute

Attributes Documentation

default_differential

Default representation for differential data (e.g., velocity)

default_representation

Default representation for position data

frame_attributes = {'obstime': <astropy.coordinates.attributes.TimeAttribute object>}
frame_specific_representation_info

Mapping for frame-specific component names

name = 'sunrelativeeclipticframe'
obstime

A frame attribute

No default value

__init__(*args, copy=True, representation_type=None, differential_type=None, **kwargs)
classmethod __new__(*args, **kwargs)