MulensModel.coordinates module

class MulensModel.coordinates.Coordinates(*args, **kwargs)

Bases: astropy.coordinates.sky_coordinate.SkyCoord

A class for the coordinates (RA, Dec) of an event. Inherits from astropy.SkyCoord.

May be set as a str, pair of str, or SkyCoord object, e.g.

from astropy.coordinates import SkyCoord
from astropy import units as u
Coordinates('18:00:00 -30:00:00')
Coordinates('18h00m00s', '-30d00m00s')
Coordinates(SkyCoord('18:00:00 -30:00:00',
            unit=(u.hourangle, u.deg)))
Coordinates(SkyCoord(270.000, -30.000, unit=u.deg))

If the unit keyword is not specified, defaults to unit=(u.hourangle, u.deg) where u is defined by “import astropy.units as u”.

You can print an instance of this class.

property galactic_l

astropy.coordinates.angles.Longitude

Galactic longitude. Note that for connivance, the values l > 180 degrees are represented as 360-l.

property galactic_b

astropy.coordinates.angles.Latitude

Galactic latitude calculated from (RA, Dec)

property ecliptic_lon

astropy.coordinates.angles.Longitude

ecliptic longitude calculated from (RA, Dec)

property ecliptic_lat

astropy.coordinates.angles.Latitude

ecliptic latitude calculated from (RA, Dec)

property north_projected

np.array

North projected on the plane of the sky.

property east_projected

np.array

East projected on the plane of the sky.

v_Earth_projected(full_BJD)

Earth velocity at full_BJD projected on the plane of sky towards given coordinates.

Parameters :
full_BJD: float

Epoch for which projected velocity is requested. In most cases it is t_0_par

Returns :
v_Earth_perp_N: float

North component of Earth’s projected velocity in km/s.

v_Earth_perp_E: float

East component of Earth’s projected velocity in km/s.