xlens.catalog.base
Classes
Functions
|
Return |e|^2 evaluated at shear g_comp = dg to first order. |
|
Return trace evaluated at shear g_comp = dg to first order. |
|
|
|
Measure shear components in redshift bins, using a supplied z-estimator. |
Module Contents
- get_esq(src: numpy.ndarray, comp: int = 1, dg: float = 0.0, sn: str = 'fpfs_') numpy.ndarray[source]
Return |e|^2 evaluated at shear g_comp = dg to first order.
- get_trace(src: numpy.ndarray, comp: int = 1, dg: float = 0.0, sn: str = 'fpfs_') numpy.ndarray[source]
Return trace evaluated at shear g_comp = dg to first order.
- class ShearEstimator(*, mag_max: float | dict = 40.0, emax: float = 0.3, trace_min: float = 0.05, mag_zero: float = 30.0, flux_name: str = 'gauss2', shape_name: str = 'fpfs', bands: str = 'grizy', ref_band: str = 'i', z_estimator=None, zbounds: list[float] = [0.0, 100.0], z_width95_max: float = 2.75, dg: float = 0.02, z_point_name: str = 'zmode')[source]
Bases:
object- _measure(src, comp: int, sign: float, extinction: numpy.ndarray | None = None)[source]
Compute binned <w_sel e> for shear +sign*dg.
- measure_shear(*, src: numpy.ndarray, z_estimator, zbounds: list[float], flux_min: float | dict = 40.0, emax: float = 0.3, trace_min: float = 0.05, z_width95_max: float = 2.75, dg: float = 0.02, target: str = 'g1', do_correction: bool = True, mag_zero: float = 30.0, flux_name: str = 'gauss2', bands: str = 'grizy', ref_band: str = 'i', z_point_name: str = 'zmode')[source]
Measure shear components in redshift bins, using a supplied z-estimator.
- Parameters:
z_estimator (object) –
- Must provide method
- get_zsel(
src, *, mag_zero, flux_name, bands, ref_band, comp, dg
) -> (zmode, width95)