This repository uses tools to perform weighted direct calibration (DIR) to the 2MPZ galaxy catalogue and the WISExSuperCOSMOS (WIxSC) catalogue, which is split in five redshift ranges.
- To run this pipeline you must have catalogues containing galaxy IDs (or coordinates), and spectroscopic and photometric redshifts for 2MPZ and WIxSC.
wisc_xref
performs cross-referencing of the entire WIxSC catalogue, and splits it into 5 catalogues containing the galaxies of each redshift bin (to save loading time).weights.py
used the spectroscopic redshifts as the training set to perform DIR to the entire sample of galaxies in each z-bin.nz.py
uses the saved weights to calculate and save the DIR-calibrated redshift distributions asnumpy.array
s inout/DIR_*.npz
. It also performs jackknives.width.py
uses the saved N(z)'s to calculate priors (mean and standard deviation) on thewidth (w)
parameter used innikfilippas/yxg
andnikfilippas/yxgxk
to modify the redshift distributions.
mk_dndz
uses the saved weights to calculate and save smoothed DIR-calibrated redshifts (as opposed tonz.py
which calculates raw distributions) indata/dndz/*DIR.txt
; ready to be used in modelling of N(z)'s.mk_maps.py
uses the catalogues to create maps of galaxy overdensity (\Delta_g
) in each redshift bin.DIR.py
contains the functions to perform DIR calibration.funcs.py
contains other useful functions used in the pipeline.
If you find this pipeline useful, please include a link to this repo in your work.