av_cls module
Script to average the measured 3x2pt Pseudo Cls measured over multiple realisations by measure_cat_3x2pt_pcls.py. Specifies in particular the final ell range that will be saved and used for any analysis
- pcl_measurement.av_cls.av_cls_config(pipeline_variables_path)
Create a dictionary of parameters that will be useful to calculate average power spectra.
Parameters
- pipeline_variables_path(str)
Path to location of pipeline variables file (‘set_variables_3x2pt_measurement.ini’)
Returns
Dictionary of parameters used by this script to measure average 3x2pt power spectra
- pcl_measurement.av_cls.calc_av_cls(cl_dir, ell_min, ell_max, bin_i, bin_j, realisations)
Calculate average Pseudo-Cls for all tomographic bins and all realisations that is stored in a given directory.
Parameters
- cl_dir(str)
Path to where the ‘raw’ power spectra (measured from measure_cat_3x2pt_pcls) are stored. There should be subdirectories for each realisation within this directory.
- ell_min(float)
Output minimum ell to save the power spectra on disk
- ell_max(float)
Output maximum ell to save the power spectra on disk
- bin_i(float)
Tomographic bin id number of the first field
- bin_j(float)
Tomographic bin id number of the second field
- realisations(int)
Number of realisations that the power spectra are averaged over
Returns
txt files of the averaged 3x2pt power spectra for each tomographic component. Saved to the cl_dir path.
- pcl_measurement.av_cls.calc_av_nz(nz_tables_dir, realisations)
Function to calculate the average n(z) measured over all realisations.
Parameters
- nz_tables_dir(str)
Path to location that the n(z) tables are stored for each realisation. This is defined in the measure_cat_3x2pt_pcls.py script.
- realisations(float)
Total number of realisations to average the measured n(z).
Returns
Array of the average n(z) measured over all realisations.
- pcl_measurement.av_cls.calc_stdem_cls(cl_dir, ell_min, ell_max, bin_i, bin_j, realisations)
Calculate standard error on mean of Pseudo-Cls for all tomographic bins and all realisations that is stored in a given directory.
Parameters
- cl_dir(str)
Path to where the ‘raw’ power spectra (measured from measure_cat_3x2pt_pcls) are stored. There should be subdirectories for each realisation within this directory.
- ell_min(float)
Output minimum ell to save the power spectra on disk
- ell_max(float)
Output maximum ell to save the power spectra on disk
- bin_i(float)
Tomographic bin id number of the first field
- bin_j(float)
Tomographic bin id number of the second field
- realisations(int)
Number of realisations that the power spectra are averaged over
Returns
txt files of the standard error on mean for the 3x2pt power spectra for each tomographic component. Saved to the cl_dir path.
- pcl_measurement.av_cls.main()
Main function to execute the averaging measurements.