fit_cluster_wl_mass
Fits NFW weak-lensing masses to SPT-SZ Megacam cluster shear profiles, returning M500c and M200c with 68% intervals and published-mass comparisons.
Instructions
NFW weak-lensing mass of SPT-SZ Megacam clusters from their measured g_t(r) profiles.
Use after (or instead of) fetch_cluster_wl_profiles to get M500c and M200c [1e14 Msun]
with 68% intervals per cluster. Model (mirrors the release's lensing.py): NFW with c fixed
by c(M,z), Sigma_crit from each cluster's source N(z) via <beta>, reduced shear
g = gamma/(1-kappa) (1 + kappa(<beta^2>/<beta>^2 - 1)), Gaussian likelihood, flat prior in
ln M200c. Reports the ratio to the Dietrich+19 published masses where available. These
are raw NFW masses: no simulation-calibrated WL bias (~0.94) or LSS scatter is applied.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"output_dir": "<output_dir>"
},
"name": "fit_cluster_wl_mass"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Hubble parameter h (masses in Msun, not Msun/h). | |
| Om0 | No | Flat LCDM Omega_m for distances. | |
| clusters | No | SPT IDs (e.g. 'SPT-CLJ0516-5430'); None = all 19 Megacam clusters. | |
| r_max_mpc | No | Outer fit radius [Mpc]. | |
| r_min_mpc | No | Inner fit radius [Mpc]. Profiles span 0.75-2.5 Mpc (Dietrich+19 range); the SPT likelihood uses 0.5-1.5. | |
| output_dir | Yes | Directory for the mass table, JSON and PNG. | |
| concentration_model | No | c(M,z): diemer15 (Diemer & Kravtsov 2015, used by Dietrich+19 and the SPT likelihood 'DK15'), diemer19, or duffy08 (Duffy+08 200c). | diemer15 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes | ||
| message | Yes | ||
| metadata | Yes |