xlens.catalog.base

Classes

ShearEstimator

Functions

get_esq(→ numpy.ndarray)

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

get_trace(→ numpy.ndarray)

Return trace evaluated at shear g_comp = dg to first order.

_bin_count(*, idx[, weights, minlength])

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

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.

_bin_count(*, idx, weights=None, minlength=0)[source]
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'[source]
magx[source]
dg = 0.02[source]
bands = 'grizy'[source]
emax2 = 0.09[source]
trace_min = 0.05[source]
z_estimator = None[source]
flux_name = 'gauss2'[source]
ref_band = 'i'[source]
mag_zero = 30.0[source]
zbounds = [0.0, 100.0][source]
z_width95_max = 2.75[source]
z_point_name = 'zmode'[source]
_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.

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)