Eigenframe (ligo.skymap.coordinates.eigenframe
)¶
Astropy coordinate frame for eigendecomposition of a cloud of points or a 3D sky map.
- class ligo.skymap.coordinates.eigenframe.EigenFrame(*args, copy=True, representation_type=None, differential_type=None, **kwargs)[source]¶
Bases:
BaseCoordinateFrame
A coordinate frame that has its axes aligned with the principal components of a cloud of points.
- property default_differential¶
Default representation for differential data (e.g., velocity)
- property default_representation¶
Default representation for position data
- e_x¶
A frame attribute
Default: (1., 0., 0.)
- e_y¶
A frame attribute
Default: (0., 1., 0.)
- e_z¶
A frame attribute
Default: (0., 0., 1.)
- classmethod for_coords(coords)[source]¶
Create a coordinate frame that has its axes aligned with the principal components of a cloud of points.
- Parameters:
- coords
astropy.coordinates.SkyCoord
A cloud of points
- coords
- Returns:
- frame
EigenFrame
A new coordinate frame
- frame
- classmethod for_skymap(prob, distmu, distsigma, nest=False)[source]¶
Create a coordinate frame that has its axes aligned with the principal components of a 3D sky map.
- Parameters:
- prob
numpy.ndarray
Marginal probability (pix^-2)
- distmu
numpy.ndarray
Distance location parameter (Mpc)
- distsigma
numpy.ndarray
Distance scale parameter (Mpc)
- distnorm
numpy.ndarray
Distance normalization factor (Mpc^-2)
- nestbool, default=False
Indicates whether the input sky map is in nested rather than ring-indexed HEALPix coordinates (default: ring).
- prob
- Returns:
- frame
EigenFrame
A new coordinate frame
- frame
- property frame_specific_representation_info¶
Mapping for frame-specific component names