Reference/API#
astropy.coordinates Package#
This subpackage contains classes and functions for celestial coordinates of astronomical objects. It also contains a framework for conversions between coordinate systems.
Functions#
|
Angular separation between two points on a sphere. |
|
Converts 3D rectangular cartesian coordinates to spherical polar coordinates. |
|
Combine multiple coordinate objects into a single |
Combine multiple representation objects into a single instance by concatenating the data in each component. |
|
|
Add a custom set of mappings from values to Stokes symbols. |
|
Get a |
|
Calculate the barycentric position of a solar system body. |
|
Calculate the barycentric position and velocity of a solar system body. |
|
Determines the constellation(s) a given coordinate object contains. |
|
Retrieve an ICRS object by using an online name resolving service to retrieve coordinates for the specified name. |
|
Deprecated since version 5.3. |
|
Determines the location of the sun at a given time (or times, if the input is an array |
|
Generate a grid of points on the surface of the unit sphere using the Fibonacci or Golden Spiral method. |
|
Generates a string that can be used in other docstrings to include a transformation graph, showing the available transforms and coordinate systems. |
|
Finds the nearest 3-dimensional matches of a coordinate or coordinates in a set of catalog coordinates. |
|
Finds the nearest on-sky matches of a coordinate or coordinates in a set of catalog coordinates. |
|
Point with the given offset from the given point. |
|
Position Angle (East of North) between two points on a sphere. |
|
Searches for pairs of points that are at least as close as a specified distance in 3D space. |
|
Searches for pairs of points that have an angular separation at least as close as a specified angle. |
|
Converts spherical polar coordinates to rectangular cartesian coordinates. |
|
Generate a random sampling of points on the surface of the unit sphere. |
|
Generate a random sampling of points that follow a uniform volume density distribution within a sphere. |
Classes#
|
A coordinate transformation specified as a function that yields a 3 x 3 cartesian transformation matrix and a tuple of displacement vectors. |
|
A coordinate or frame in the Altitude-Azimuth system (Horizontal coordinates) with respect to the WGS84 ellipsoid. |
|
One or more angular value(s) with units equivalent to radians or degrees. |
|
A non-mutable data descriptor to hold a frame attribute. |
|
Barycentric mean ecliptic coordinates. |
|
Barycentric true ecliptic coordinates. |
|
Base class for common functionality between the |
|
Representation of points in bodycentric 3D coordinates. |
|
The base class for coordinate frames. |
|
A base class representing differentials of representations. |
|
A base class for frames that have names and conventions like that of ecliptic frames. |
|
Base class for geodetic representations. |
|
A base class that defines default representation info for frames that represent longitude and latitude as Right Ascension and Declination following typical "equatorial" conventions. |
|
Base for representing a point in a 3D coordinate system. |
|
3D coordinate representations and differentials. |
|
Differentials from points on a spherical base representation. |
|
|
Raised when an angle is outside of its user-specified bounds. |
|
|
A coordinate or frame in the Celestial Intermediate Reference System (CIRS). |
|
Differentials in of points in 3D cartesian coordinates. |
|
Representation of points in 3D cartesian coordinates. |
|
A frame attribute that is a CartesianRepresentation with specified units. |
|
A transformation constructed by combining together a series of single-step transformations. |
Raised if a coordinate system cannot be converted to another. |
|
|
A frame attribute which is a coordinate object. |
|
An object that transforms a coordinate from one system to another. |
|
Barycentric ecliptic coordinates with custom obliquity. |
|
Differential(s) of points in cylindrical coordinates. |
|
Representation of points in 3D cylindrical coordinates. |
|
A frame attribute which is a differential instance. |
|
A one-dimensional distance. |
|
A coordinate transformation specified as a function that yields a 3 x 3 cartesian transformation matrix. |
|
Location on the Earth. |
|
A frame attribute that can act as a |
|
A coordinate or frame in the FK4 system. |
|
A coordinate or frame in the FK4 system, but with the E-terms of aberration removed. |
|
A coordinate or frame in the FK5 system. |
|
A coordinate transformation defined by a function that accepts a coordinate object and returns the transformed coordinate object. |
|
Transormation based on functions using finite difference for velocities. |
|
A coordinate or frame in the Geocentric Celestial Reference System (GCRS). |
|
Representation of points in GRS80 3D geodetic coordinates. |
|
A coordinate or frame in the Galactic coordinate system. |
|
A coordinate or frame in the Local Standard of Rest (LSR), axis-aligned to the Galactic frame. |
|
A coordinate or frame in the Galactocentric system. |
|
A frame object that can't store data but can hold any arbitrary frame attributes. |
|
Geocentric mean ecliptic coordinates. |
|
Geocentric true ecliptic coordinates. |
|
A coordinate or frame in the Hour Angle-Declination system (Equatorial coordinates) with respect to the WGS84 ellipsoid. |
|
A coordinate or frame in a Heliocentric system, with axes aligned to ICRS. |
|
Heliocentric mean (IAU 1976) ecliptic coordinates. |
|
Heliocentric mean ecliptic coordinates. |
|
Heliocentric true ecliptic coordinates. |
|
A coordinate or frame in the ICRS system. |
|
A coordinate or frame in the International Terrestrial Reference System (ITRS). |
|
Raised when an hour value is not in the range [0,24). |
|
Raised when an hour value is 24. |
|
Raised when an minute value is not in the range [0,60]. |
|
Raised when a minute value is 60. |
|
Raised when an second value (time) is not in the range [0,60]. |
|
Raised when a second value is 60. |
|
A coordinate or frame in the Local Standard of Rest (LSR). |
|
A coordinate or frame in the Dynamical Local Standard of Rest (LSRD). |
|
A coordinate or frame in the Kinematic Local Standard of Rest (LSR). |
|
Latitude-like angle(s) which must be in the range -90 to +90 deg. |
|
Longitude-like angle(s) which are wrapped within a contiguous 360 degree range. |
|
Differential(s) of 3D spherical coordinates using physics convention. |
|
Representation of points in 3D spherical coordinates (using the physics convention of using |
|
A coordinate frame defined in a similar manner as GCRS, but precessed to a requested (mean) equinox. |
|
A frame attribute that is a quantity with specified units and shape (optionally). |
|
Differential(s) of radial distances. |
|
Representation of the distance of points from the origin. |
Raised when some part of an angle is out of its valid range. |
|
|
This |
|
High-level object providing a flexible interface for celestial coordinate representation, manipulation, and transformation between systems. |
|
Container for meta information like name, description, format. |
|
A frame which is relative to some specific position and oriented to match its frame. |
|
A spectral coordinate with its corresponding unit. |
|
One or more value(s) with spectral units. |
|
Differential(s) of points in 3D spherical coordinates. |
|
Differential(s) of points in 3D spherical coordinates. |
|
Representation of points in 3D spherical coordinates. |
|
A coordinate transformation defined as a 3 x 3 cartesian transformation matrix. |
|
A representation of stokes coordinates with helpers for converting to profile names. |
|
Symbol for a Stokes coordinate. |
|
Supergalactic Coordinates (see Lahav et al. 2000, <https://ui.adsabs.harvard.edu/abs/2000MNRAS.312..166L>, and references therein). |
|
A coordinate or frame in the True Equator Mean Equinox frame (TEME). |
|
An equatorial coordinate or frame using the True Equator and True Equinox (TETE). |
|
Frame attribute descriptor for quantities that are Time objects. |
A graph representing the paths between coordinate frames. |
|
|
Differential(s) of points on a unit sphere. |
|
Differential(s) of points on a unit sphere. |
|
Representation of points on a unit sphere. |
|
|
|
Representation of points in WGS72 3D geodetic coordinates. |
|
Representation of points in WGS84 3D geodetic coordinates. |
Global setting of default values for the frame attributes in the |
|
Default ephemerides for calculating positions of Solar-System bodies. |