estimate — Standalone \(r\) Estimation¶
The estimate subcommand computes the tensor-to-scalar ratio \(r\) from a CMB spectrum or map file, without requiring full component separation results.
Basic Usage¶
# From a pre-computed BB power spectrum
r_analysis estimate --cmb cl_bb.npy --fsky 0.8
# From a CMB QU map
r_analysis estimate --cmb cmb_qu_map.npy
# From a CMB map with reconstructed CMB and systematics
r_analysis estimate \
--cmb cmb_true.npy \
--cmb-hat cmb_reconstructed.npy \
--syst systematic_residuals.npy
Arguments¶
Flag |
Type |
Default |
Description |
|---|---|---|---|
|
|
required |
Path to CMB data ( |
|
|
none |
Path to reconstructed CMB maps |
|
|
none |
Path to systematic residual map |
|
|
inferred |
Sky fraction. Required if input is a spectrum; inferred from map otherwise |
|
|
inferred |
HEALPix resolution. Inferred from map shape if not provided |
|
|
none |
Path to save results ( |
|
|
|
Plot format: |
Input Formats¶
The --cmb argument accepts three input shapes:
Shape |
Interpretation |
|---|---|
|
1D \(C_\ell^{BB}\) power spectrum. Requires |
|
QU polarization map. \(f_\mathrm{sky}\) inferred from non-zero pixels. |
|
IQU polarization map. Only Q and U are used. |
Output¶
When -o is specified, saves an .npz file with:
r_best— Maximum likelihood estimate of \(r\)sigma_neg,sigma_pos— Asymmetric 1\(\sigma\) confidence boundsr_grid— Grid of \(r\) values for the likelihood curveL_vals— Likelihood values on the grid