Galaxies angular momentum¶
Code author: Wilfried Mercier - IRAP <wilfried.mercier@irap.omp.eu>
Geometrical transformations between coordinate systems.
- class galaxy.geometry.DiskGeometry(inc: Union[int, float] = 0, PA: Union[int, float] = 0, e: Optional[Union[int, float]] = None)[source]¶
Geometry of a razor-thin disk.
- PA¶
Position angle
- XY(X_sky: numpy.ndarray, Y_sky: numpy.ndarray, *args, **kwargs) Tuple[numpy.ndarray, numpy.ndarray] [source]¶
Compute the X, Y coordinates in the disk plane from sky coordinates.
- Parameters
X_sky (ndarray) – X-coordinates on sky plane
Y_sky (ndarray) – Y-coordinates on sky plane
- Returns
X, Y in disk plane
- Return type
ndarray, ndarray
- distance(X_sky: numpy.ndarray, Y_sky: numpy.ndarray, *args, **kwargs) numpy.ndarray [source]¶
Compute the distance in the disk plane from sky coordinates.
- Parameters
X_sky (ndarray) – X-coordinates on sky plane
Y_sky (ndarray) – Y-coordinates on sky plane
- Returns
distance in disk plane
- Return type
ndarray
- e¶
Ellipticity