PixMap
- class erwans3.Astro_tools.PixMap(value: Any, coordinates: BaseRepresentation)
Bases:
PixListThis object represents a list of pixels on the sky, including both values and coordinates.
- Parameters:
value (Any) – The pixel list to be stored in the PixMap object. Can be of any type convertible to a NumPy array or an astropy Quantity.
coordinates (
BaseRepresentation) – The coordinate representation associated with the pixel values.
Attributes Summary
Direction vectors of the coordinates
Methods Summary
plot([nside, intensive])Plot the PixMap data on a Healpix map.
rotate(rot[, copy])Rotate the PixMap's coordinates by a given rotation.
to_hpxmap([nside, fill])Convert the
PixxMapto a HEALPix map (HpxMap).to_hpxpart([nside])Attributes Documentation
- dir
Direction vectors of the coordinates
- Returns:
unitary vectors with shape (npix, 3)
- Return type:
Methods Documentation
- plot(nside: Optional[int] = None, intensive: bool = False, **kwargs)
Plot the PixMap data on a Healpix map.
First convert the PixMap to a HpxMap with fill = nan Then plot using hp.mollview
- rotate(rot: Union[Rotation, Rotator], copy=True) PixMap
Rotate the PixMap’s coordinates by a given rotation.
- to_hpxmap(nside: int = 128, fill: float = 0) HpxMap
Convert the
PixxMapto a HEALPix map (HpxMap).Generate a HEALPix map with nside filled it with the velue fill Then, sum the value of each pixels of PixMap whose coordinate are inside the healpix pixel Recommended values for fill are 0 and
numpy.nan