Skip to content

Transform angular power spectra and correlation functions

License

Notifications You must be signed in to change notification settings

glass-dev/transformcl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transformcl

Transform angular power spectra and correlation functions.

This is a minimal Python package for transformations between angular power spectra and correlation functions. It is currently limited to the spin zero case.

The package can be installed using pip:

pip install transformcl

Then import the package to use the functions:

import transformcl
t = transformcl.theta(cl.size)
ct = transformcl.corr(cl)

For more information, please see the documentation.

Current functionality covers the absolutely minimal use case. Please open an issue on GitHub if you would like to see anything added.

Backends

The transformcl package supports multiple transform backends. The current backend can be changed globally by assigning to transformcl.backend:

transformcl.backend = "<choice>"
...

or using the transformcl.use() context manager:

with transformcl.use("<choice>"):
    ...

The list of available backends can be found in the documentation.