Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

This repository contains the likelihood module for the KiDS+VIKING-450 (in short: KV450) correlation function measurements from Hildebrandt et al. 2018 (arXiv:1812.06076). The module will be working 'out-of-the-box' within a MontePython and CLASS (version >= 2.8 i.e. including the HMcode module) setup. The required KiDS+VIKING-450 data files can be downloaded from the KiDS science data webpage and the parameter file for reproducing the fiducial run of Hildebrandt et al. 2018 (arXiv:1812.06076) is supplied in the subfolder INPUT within this repository.

Assuming that MontePython (with CLASS version >= 2.8 i.e. including the HMcode module) is set up (we recommend to use the MultiNest sampler!), please proceed as follows:

  1. Clone this repository

git clone

  1. Copy and from this repository into a folder named kv450_cf_likelihood_public within /your/path/to/montepython_public/montepython/likelihoods/.

(you can rename the folder to whatever you like, but you must use this name then consistently for the whole likelihood which implies to rename the *.data-file, including the prefixes of the parameters defined in there, the name of the likelihood in the and also in the *.param-file.)

  1. Set the path to the data folder (i.e. KV450_COSMIC_SHEAR_DATA_RELEASE from the tarball available from the KiDS science data webpage in and modify parameters as you please (note that everything is set up to reproduce the fiducial run with kv450_cf.param).

  2. Start your runs using e.g. the kv450_cf.param supplied in the subfolder INPUT within this repository.

  3. Contribute your developments/bugfixes to this likelihood (please use a dedicated branch per fix/feature).

  4. If you publish your results based on using this likelihood, please cite Hildebrandt et al. 2018 (arXiv:1812.06076) and all further references for the KiDS+VIKING-450 data release (as listed on the KiDS science data webpage) and also all relevant references for Monte Python and CLASS.

Refer to within the subfolder INPUT for all MultiNest-related settings that were used for the fiducial runs.

Note when you run the likelihood for the very first time, the covariance matrix from the data release (given in list format) needs to be converted into an actual NxN matrix format. This will take several minutes, but only once. The reformatted matrix will be saved to and loaded for all subsequent runs of the likelihood from the folder FOR_MONTE_PYTHON within the main folder KV450_COSMIC_SHEAR_DATA_RELEASE of the data release.

WARNING: This likelihood only produces valid results for \Omega_k = 0, i.e. flat cosmologies!

For questions/comments please use the issue-tracking system!


Public repository for the Monte Python likelihood module for the KiDS+VIKING-450 (KV450) cosmic shear correlation functions.



No releases published


No packages published