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_xrefperforms 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.pyused the spectroscopic redshifts as the training set to perform DIR to the entire sample of galaxies in each z-bin.nz.pyuses the saved weights to calculate and save the DIR-calibrated redshift distributions asnumpy.arrays inout/DIR_*.npz. It also performs jackknives.width.pyuses the saved N(z)'s to calculate priors (mean and standard deviation) on thewidth (w)parameter used innikfilippas/yxgandnikfilippas/yxgxkto modify the redshift distributions.
mk_dndzuses the saved weights to calculate and save smoothed DIR-calibrated redshifts (as opposed tonz.pywhich calculates raw distributions) indata/dndz/*DIR.txt; ready to be used in modelling of N(z)'s.mk_maps.pyuses the catalogues to create maps of galaxy overdensity (\Delta_g) in each redshift bin.DIR.pycontains the functions to perform DIR calibration.funcs.pycontains other useful functions used in the pipeline.
If you find this pipeline useful, please include a link to this repo in your work.