FixedTarget

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.

Examples

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")
Parameters:

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

from_name(query_name[, name]) Initialize a FixedTarget by querying for a name from the CDS name resolver, using the machinery in from_name.

Methods Documentation

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

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

This

Parameters:

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.

Examples

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