Skip to main content

FPFS shear estimator

Project description

FPFS: Fourier Power Function Shaplets (A fast, accurate shear estimator)


docs tests pypi License: GPL v3 Code style: black

Fourier Power Function Shapelets (FPFS) is an innovative estimator for the shear responses of galaxy shape, flux, and detection. Utilizing leading-order perturbations of shear (a vector perturbation) and image noise (a tensor perturbation), FPFS determines shear and noise responses for both measurements and detections. Unlike traditional methods that distort each observed galaxy repeatedly, FPFS employs analytical shear responses of select basis functions, including Shapelets basis and peak basis. Remarkably efficient, FPFS can process approximately 1,000 galaxies within a single CPU second. Testing under simple simulations has proven its capability to maintain a multiplicative shear estimation bias below 0.5%, even amidst blending challenges. For further details, refer to the FPFS module documentation here.


Installation

For stable (old) version, which have not been updated:

pip install fpfs

Or clone the repository:

git clone https://github.com/mr-superonion/FPFS.git
cd FPFS
pip install -e . --user

Before using the code, please setup the jax environment

source fpfs_config

Reference

The following papers are ready to be cited if you find any of these papers interesting or use the pipeline. Comments are welcome.

  • version 3: Li & Mandelbaum (2022) correct for detection bias from pixel level by interpreting smoothed pixel values as a projection of signal onto a set of basis functions.

  • version 2: Li , Li & Massey (2022) derive the covariance matrix of FPFS measurements and corrects for noise bias to second-order. In addition, it derives the correction for selection bias.

  • version 1: Li et. al (2018) build up the FPFS formalism based on Fourier_Quad and polar shapelets.


Development

Before sending pull request, please make sure that the modified code passed the pytest and flake8 tests. Run the following commands under the root directory for the tests:

flake8
pytest -vv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fpfs-3.1.1.tar.gz (18.5 MB view hashes)

Uploaded Source

Built Distribution

fpfs-3.1.1-py3-none-any.whl (18.9 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page