conv_bps module

Collect all 3x2pt observed spectra (pseudo-Cl bandpowers) into one file for input into inference code

pcl_measurement.conv_bps.conv_1x2pt_bps(n_zbin, n_bp, save_dir, recov_cat_bps_path, obs_type='obs', field='E')

Collect all Pseudo bandpowers for a tomographic 1x2pt (shear only or clustering only) and store into single array.

Parameters

n_zbin(float)

Number of tomographic redshift bins

n_bp(float)

Number of bandpowers

save_dir(str)

Path to directory that stores all measurement data (MEASUREMENT_SAVE_DIR from the set_variables_3x2pt_measurement.ini file)

recov_cat_bps_path(str)

Location to store combined 1x2pt data vector as .npz file

obs_type(str)

Use the data measured from simulation (‘obs’) or the fiducial data (‘fid’) to generate the combined data vector

field(str)

‘E’ or ‘N’ to specify the 1x2pt measurement is cosmic shear only or angular clustering only

Returns

Saves array in .npz format of the combined 3x2pt data vector.

pcl_measurement.conv_bps.conv_3x2pt_bps(n_zbin, n_bp, save_dir, recov_cat_bps_path, obs_type='obs')

Collect all 3x2pt tomographic Pseudo bandpowers and store into single array.

Parameters

n_zbin(float)

Number of tomographic redshift bins

n_bp(float)

Number of bandpowers

save_dir(str)

Path to directory that stores all measurement data (MEASUREMENT_SAVE_DIR from the set_variables_3x2pt_measurement.ini file)

recov_cat_bps_path(str)

Location to store combined 3x2pt data vector as .npz file

obs_type(str)

Use the data measured from simulation (‘obs’) or the fiducial data (‘fid’) to generate the combined data vector

Returns

Saves array in .npz format of the combined 3x2pt data vector.

pcl_measurement.conv_bps.main()

Main function to generate combined 3x2pt or 1x2pt joint tomographic data vector

pcl_measurement.conv_bps.mysplit(s)

Function to split string into float and number. Used to extract which field and which tomographic bin should be identified and collected.

Parameters

s(str)

String describing field and tomographic bin number

Returns

head(str)

String describing field

tail(float)

Float describing tomographic bin id