sp_validation.cosmo_val.real_space

Real-space two-point diagnostics for cosmology validation.

This mixin holds the real-space machinery: the TreeCorr two-point correlation function (2PCF) ξ± measurement and its plots, the ratio of PSF systematics to the cosmic-shear signal, and the aperture-mass dispersion ⟨M_ap²⟩ measurement and plots. It depends on TreeCorr.

class RealSpaceMixin[source]

Bases: object

calculate_2pcf(ver, npatch=None, save_fits=False, **treecorr_config)[source]

Calculate the two-point correlation function (2PCF) ξ± for a given catalog version with TreeCorr.

By default the class instance’s npatch and treecorr_config entries are used to initialize the TreeCorr Catalog and GGCorrelation objects, but may be overridden by passing keyword arguments.

Parameters:
  • ver (str) – The catalog version to process.

  • npatch (int, optional) – The number of patches to use for the calculation.

  • attribute. (Defaults to the instance's npatch)

  • save_fits (bool, optional) – Whether to save the ξ± results to FITS files.

  • False. (Defaults to)

  • **treecorr_config – Additional TreeCorr configuration parameters that will

  • example (override the instance's default treecorr_config. For)

  • min_sep=1.

Returns:

The TreeCorr GGCorrelation object containing the computed 2PCF results.

Return type:

treecorr.GGCorrelation

Notes

  • If the output file for the given configuration already exists, the calculation is skipped, and the results are loaded from the file.

  • If a patch file for the given configuration does not exist, it is created during the process.

  • FITS files for ξ+ and ξ− are saved with additional metadata in their headers if save_fits is True.

plot_2pcf()[source]
plot_ratio_xi_sys_xi(threshold=0.1, offset=0.02)[source]
calculate_aperture_mass_dispersion(theta_min=0.3, theta_max=200, nbins=500, nbins_map=15, npatch=25)[source]
property map2
plot_aperture_mass_dispersion()[source]