Mock Catalogue Simulation
This module simulates a Stage IV-like weak lensing observation and generate mock galaxy shear catalogues. The catalogue
simulation is executed by running run_cat_sim.sh in bash.
To set up the simulation we need to define the survey parameters in set_variables_cat.ini config file, and direct the pipeline path in run_cat_sim.sh. The simulated catalogues will be saved on disk in a location specified in the config file. The config file contains detailed information on setup parameters, but to note specifically, in set_variables_cat.ini:
Change the
PIPELINE_DIRto the root directory where the package is installed, i.e.
PIPELINE_DIR=/path-in-system/SWEPT/
Change the redshift distribution parameters in
redshift_distribution. HereZMIN, ZMAX, DZare the minimum redshift, maximum redshift, and resolution to characterise the n(z) redshift distribution for the sample. The parametersZ0, BETAdescribe the functional form of the n(z) distribution (see also Eq. 44 in Wong+24). Finally,NGALis the number of galaxies to include in the mock sample, expressed in scientific form, i.e. ‘1e6’ for 1m galaxies.In
[create_nz],NZ_TABLE_NAMEdoes not need to be changed. However, we need to specify the number of bins in redshift space to use to generate maps at. Generally, we want the number of bins to match the number of sample points, i.e.N_ZBIN=(ZMAX-ZMIN)/DZ. We recommend that for a full 3x2pt analysis you usedDZ``=0.1. However, if the number of sample points exceeds the number of points at which we generate maps to sample the redshift distribution, the code will interpolate field values per pixel, to 'fill in' the missing information in redshift. We recommend that no interpolation should be used for a full 3x2pt cosmological analysis, as the interpolation can introduce correlations that may contaminate precision cosmological constraints. For shear-only, you can get away with using a smaller ``DZ, but the number of bins may not be able to match the number of sample points (e.g. due to numerical errors if fields in each bin) are generated very close together. In this shear only case, the effects of interpolation will not be as significant as a full 3x2pt analysis (since the shear signal is reasonably well described by a cumulative sum/interpolation along the line of sight)In simulation set up, change the
SIMULATION_SAVE_DIRto the path where you want the catalogues to be saved. Also change theNSIDE,ELLrange, and number ofREALISATIONSas required. The mock observation will be generated over a given survey mask. This mask must be saved, inHEALPIXformat on your local machine. ThePATH_TO_MASKis the path to where your survey mask is saved on disk. Note that theNSIDEof the mask must match theNSIDEspecified in the parameter space otherwise the code will have unexpected behaviour!In
[compile_cat], change the errors injected into the redshift photo-z estimates and galaxy/shear shapes.Change the
COSMOSIS_ROOT_DIRto the directory whereCosmoSISis installed on disk.
And in run_cat_sim.sh, change the PIPELINE_VARIABLES_PATH to the path where the set_variables_cat.ini file is located, i.e.
PIPELINE_VARIABLES_PATH=/path-in-system/SWEPT/catalogue_sim/set_variables_cat.ini