Home - Research - Software


A set of programs to compute luminosity functions.

Given a catalogue, an area curve, and (optionally) the photo-z probability distributions, it computes luminosity functions as:

Strong points:

It has been developed for use by the XMM-CDFS and XMM-XXL collaborations. The science description is in the paper The 2-10 keV unabsorbed luminosity function of AGN from the XMM-LSS, -CDFS and -COSMOS surveys (Ranalli et al. 2015, arXiv/...).

An example

The figure shows the Bayesian estimates of luminosity functions from the XMM-LSS, -CDFS and -COSMOS suverys combined together, under the LADE (red) and LDDE (blue) models; plus non-parametric (binned) estimates from the same data. Six different redshift intervals are shown. For each coloured shape, the darker inside band gives the 1σ interval, and the lighter band gives the 3σ interval. Figure from Ranalli et al. 2015.

Non-parametric and Bayesian estimates of luminosity functions

Posterior probability distribution for the L* parameter in the LDDE model, for XMM-LSS alone, XMM-CDFS alone, and both combined. (This is a preliminary version of the figures in Ranalli et al. 2015).

Posterior probability distribution for the L* parameter in the LDDE model


How it works

The first step is to run the catalogue through the corrector (lf-catcorrect). This tool:

All corrections are optional. However, even if they are not needed, the tool should still be invoked just to put the catalogue in the format required by the following steps. The user may then:

The corrections, the modified Page-Carrera method, the parametric forms and the likelihood function are described in the paper Ranalli et al. 2015.

See the detailed instructions on how to install and run the programme.


This programme is free software, licensed according to the terms of the AGPL license, version 3.

If you experience any difficulty with compiling or running (e.g. libraries not found, compilation errors), please write me.


You are welcome to contact me (pranalli.github@gmail.com) for further information to get help on installing and running LFTools.


Piero Ranalli

Post-doc researcher in astrophysics, currently at Lund Observatory, Lund, Sweden. This programme was mainly developed during my stay at IAASARS, National Observatory of Athens, Greece.

Last modified by P. Ranalli on 2015-12-17.