Sort angular power spectra (sortcl)

This is a minimal Python package to sort input angular power spectra into the order expected by healpy’s synalm() and synfast() functions.

The package can be installed using pip:

pip install sortcl

Then import the sortcl() function from the package:

from sortcl import sortcl

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

Reference/API

sortcl

sort cls in healpy synalm/synfast order

index

assign matrix indices to a list of pairs

cl_indices

return array indices in healpy synalm/synfast order