tjpcov.covariance_cluster_mass
#
Module Contents#
Classes#
Calculate the covariance of cluster mass measurements. |
- class tjpcov.covariance_cluster_mass.ClusterMass(config, min_halo_mass=10000000000000.0)[source]#
Bases:
tjpcov.covariance_builder.CovarianceBuilder
Calculate the covariance of cluster mass measurements.
This class is able to compute the covariance for _tracers_types = (“cluster_mean_log_mass”, “cluster_mean_log_mass”)
Class to calculate the covariance of cluster mass measurements.
- Parameters:
- load_from_cosmology(cosmo)[source]#
Load parameters from a CCL cosmology object.
Derived attributes from the cosmology are set here.
- Parameters:
cosmo (
pyccl.Cosmology
) – Input cosmology
- load_from_sacc(sacc_file, min_halo_mass)[source]#
Load and set class attributes based on data from a SACC file.
Cluster covariance has special parameters set in the SACC file. This informs the code that the data to calculate the cluster covariance is there. We set extract those values from the sacc file here, and set the attributes here.
- Parameters:
( (sacc_file) – obj: sacc.sacc.Sacc): SACC file object, already
loaded. –
- _get_covariance_block_for_sacc(tracer_comb1, tracer_comb2, **kwargs)[source]#
Compute a single covariance entry ‘cluster_mean_log_mass’
- Parameters:
tracer_comb1 (tuple of str) – e.g. (‘survey’, ‘bin_z_0’, ‘bin_richness_1’)
tracer_comb2 (tuple of str) – e.g. (‘survey’, ‘bin_z_0’, ‘bin_richness_0’)
- Returns:
Covariance for a single block
- Return type:
array_like
- get_covariance_block(tracer_comb1, tracer_comb2, **kwargs)[source]#
Compute a single covariance entry ‘cluster_mean_log_mass’
- Parameters:
tracer_comb1 (tuple of str) – e.g. (‘survey’, ‘bin_richness_1’, ‘bin_z_0’)
tracer_comb2 (tuple of str) – e.g. (‘survey’, ‘bin_richness_0’, ‘bin_z_0’)
- Returns:
Covariance for a single block
- Return type:
array_like
- _get_covariance_gaussian(tracer_comb1, tracer_comb2)[source]#
Compute a single covariance entry ‘cluster_mean_log_mass’
- Parameters:
tracer_comb1 (tuple of str) – e.g. (‘survey’, ‘bin_richness_1’, ‘bin_z_0’)
tracer_comb2 (tuple of str) – e.g. (‘survey’, ‘bin_richness_0’, ‘bin_z_0’)
- Returns:
Covariance for a single block
- Return type: