xlens documentation
xlens is a weak gravitational lensing analysis framework built on AnaCal and the LSST Science Pipelines. It provides tools for simulating galaxy images, measuring shapes with FPFS shapelets, and correcting for WCS distortions.
Subpackages
simulator – Galaxy image simulation with realistic WCS, lensing distortions, PSF convolution, and noise.
processor – Shape measurement pipelines (FPFS, NGMIX).
catalog – Truth catalog generation with controlled shear signals.
analysis – Shear calibration and cluster lensing analysis.
wcs – WCS coordinate conversion and shapelet moment correction between LSST and GalSim conventions.
Getting Started
Install into a conda environment with the LSST Science Pipelines (e.g. via stackvana):
pip install -e '.[dev]'
Run the test suite:
pytest -vv