LSSTDESC / TXPipe

Pipeline elements for 3x2pt analysis (shear-shear, shear-density, density-density) for DC2
BSD 3-Clause "New" or "Revised" License
19 stars 7 forks source link

CL Interface Step 2: Modify select.py for selection and all source galaxy calculations necessary for profiles later #307

Open cavestruz opened 1 year ago

cavestruz commented 1 year ago

We want TXPipe to select and calculate all necessary quantities (e.g. weights and resulting tangential shears, etc) and save background sources for each entry in the cluster catalog, calls CLMM to compute weights of the background galaxies to then construct and save individual shear profiles at a later pipeline stage. Goals:

Next Goals:

(written by Camille and modified by Marina) [Last Modified 7/20]

cavestruz commented 1 year ago

Notes from chat: image

cavestruz commented 1 year ago

New proposed pipeline stage to then fill out for this issue from chat and Celine's modification to the pipeline stages. image Goals here:

Formerly, the weight computation happened in the run for CLClusterShearCatalogs, looping over for cluster_index, gal_index in nearby_gals.items():

# Compute weights
weights = self.compute_weights(clmm_cosmo, data, gal_index, cluster_z)

# we want to save the index into the overall shear catalog,
# not just into this chunk of data
global_index = data["original_index"][gal_index]
per_cluster_data[cluster_index].append((global_index, distance, weights))