Scarf is a Spherical Harmonic Transform library designed for CMB lensing applications.
The repository uses DUCC for the calculations.
Using binders to the DUCC source code, it provides functions that allow users to easily do transforms on portions of the sky or custom maps.
- Custom creation of map geometries with user-specified parameters
- Forward and backward SHTs with sky cut and arbitrary spin parameters on custom or predefined geometries
- Transforms from and to Legendre coefficients (phase)
$ git clone --recurse-submodules https://github.com/samuelsimko/scarf
$ pip install -r requirements.txt
$ cd scarf
$ pip install --user .
Scarf's documentation can be found here.