FixedTarget¶
- class astroplan.FixedTarget(coord, name=None, **kwargs)[source]¶
Bases:
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
- namestr (optional)
Name of the target, used for plotting and representing the target as a string
- coord
Methods Summary
from_name
(query_name[, name])Initialize a
FixedTarget
by querying for a name from the CDS name resolver, using the machinery infrom_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 infrom_name
.This
- Parameters
- query_namestr
Name of the target used to query for coordinates.
- namestring or
None
Name of the target to use within astroplan. If
None
, query_name is used asname
.
Examples
>>> from astroplan import FixedTarget >>> sirius = FixedTarget.from_name("Sirius") >>> sirius.coord <SkyCoord (ICRS): (ra, dec) in deg ( 101.28715533, -16.71611586)>