maxima.locate_maxima¶
-
locate_maxima
(maxima, nside, lonlat=True)[source]¶ Find the location of the input maxima.
- Parameters
maxima (pd.DataFrame) – Pandas DataFrame with the information of the maxima. Has to contain at least the column ‘Pixel number’.
nside (int) – An integer corresponding to the
nside
of the map where the maxima where detected. It needs to be a power of 2.lonlat (bool, optional) – If
True
, the functions returns the longitude and latitude, in degrees. IfFalse
, the function returns colatitude and longitude, in radians.
- Returns
The same Pandas DataFrame as the input
maxima
, with two new columns denoting the position of each maxima on the sky.- Return type
pd.DataFrame