create_nz module

Script to create an n(z) distribution from the raw galaxy sample generated by ‘init_rand_sample.py’ and svae to disk. The n(z) distribution is split into a large number of redshift bins N_ZBIN read in from the ‘set_variables_cat.ini’ parameter file and used to calculate the 3x2pt data vector and field values using CosmoSIS and Flask respectively.

catalogue_sim.create_nz.create_nz(config_dict, z_boundaries)

Create nz for the map generation - read in the z-bin boundaries from create_zbin_boundaries and save an n(z) table to disk for input into CosmoSIS

Parameters

config_dict(dict)

Dictionary of pipeline/redshift distribution setup parameters used for the generation of the n(z)

z_boundaries(arr)

Array of the redshift bin boundaries used to split the galaxy sample

catalogue_sim.create_nz.create_zbin_boundaries(config_dict)

Create a table of the redshift boundaries used for binning the raw galaxy sample for the theoretical power spectra + fields, which is then saved to disk.

Parameters

config_dict(dict)

Dictionary of pipeline and redshift distribution parameters used to generate the bin boundaries and overall n(z)

Returns

Array of the redshift bin boundaries

catalogue_sim.create_nz.main()

Generate the n(z) table by reading in the pipeline variables file as environment variable, then setting up the config dictionary and creating the n(z) to save to disk.

catalogue_sim.create_nz.nz_config(pipeline_variables_path)

Set up a config dictionary to generate an n(z) distribution from a given input file.

Parameters

pipeline_variables_path(str)

Path to location of ‘set_variables_cat.ini’ file

Returns

Dictionary of n(z) parameters