class astroplan.FixedTarget(coord, name=None, **kwargs)[source]

Bases: astroplan.Target

Coordinates and metadata for an object that is “fixed” with respect to the celestial sphere.


Create a FixedTarget object for Sirius:

>>> from astroplan import FixedTarget
>>> from astropy.coordinates import SkyCoord
>>> import astropy.units as u
>>> sirius_coord = SkyCoord(ra=101.28715533*u.deg, dec=16.71611586*u.deg)
>>> sirius = FixedTarget(coord=sirius_coord, name="Sirius")

Create an equivalent FixedTarget object for Sirius by querying for the coordinates of Sirius by name:

>>> from astroplan import FixedTarget
>>> sirius = FixedTarget.from_name("Sirius")

coord : SkyCoord

Coordinate of the target

name : str (optional)

Name of the target, used for plotting and representing the target as a string

Methods Summary

Methods Documentation

classmethod from_name(query_name, name=None, **kwargs)[source]

Initialize a FixedTarget by querying for a name, using the machinery in from_name.


query_name : str

Name of the target used to query for coordinates.

name : string or None

Name of the target to use within astroplan. If None, query_name is used as name.


>>> from astroplan import FixedTarget
>>> sirius = FixedTarget.from_name("Sirius")
>>> sirius.coord                              
<SkyCoord (ICRS): (ra, dec) in deg
    (101.28715533, -16.71611586)>