Maxima

In MTNeedlet, maxima (or minima) are stored as a pd.DataFrame that contains at least two columns: “Pixel number” and “Intensity”. It can also contains other columns with the information of the location on the sky, or the pvalue asociated to that intensity for an expected maxima distribution.

It is important to note that the information of the pixel number depends on the particular resolution (nside) of the map where the maxima where calculated, and therefore it is recommended to use another way to locate maxima if different resolutions are going to be used (for example, the coordenates in the sky.

There are three types of functions regarding maxima:

  1. A function to find the maxima (or minima) of a spherical map.

  2. Functions to locate and analyse the maxima.

  3. A function to visualize the population of the maxima.

Maxima detection

hotspot(mapp[, minima, folder, name, …])

Find the maxima (or minima) in a map.

Analysis

locate_maxima(maxima, nside[, lonlat])

Find the location of the input maxima.

max_inmask(maxima, mask[, withvalue])

Get the maxima located where the mask have a specific value (e.g., 1)

max_threshold(maxima, threshold)

Get the maxima with intensity above or equal to a threshold

Maxima visualization

plot_maxima(maxima[, f, bins])

Visualise the maxima distribution and compare it with a theoretical one.