xlens.catalog

Submodules

Classes

ShearEstimator

Functions

get_esq(→ numpy.ndarray)

Return |e|^2 evaluated at shear g_comp = dg to first order.

measure_shear(*, src, z_estimator, zbounds[, ...])

Measure shear components in redshift bins, using a supplied z-estimator.

Package Contents

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

fn = '_gauss2'
magx
dg = 0.02
bands = 'grizy'
emax2 = 0.09
trace_min = 0.05
z_estimator = None
flux_name = 'gauss2'
ref_band = 'i'
mag_zero = 30.0
zbounds = [0.0, 100.0]
z_width95_max = 2.75
z_point_name = 'zmode'
_measure(src, comp: int, sign: float, extinction: numpy.ndarray | None = None)[source]

Compute binned <w_sel e> for shear +sign*dg.

get_sel_response(src, comp: int, extinction: numpy.ndarray | None = None) numpy.ndarray[source]

Selection response term for component comp (1 or 2).

measure_shear(src: numpy.ndarray, target: str, extinction: numpy.ndarray | None = None)[source]

Measure shear components in redshift bins, using a supplied z-estimator.

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.

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)