Package skytools

SkyTools

A library of tools for CMB sky data analysis on a sphere. Many of these tools have been ported from the Planck Sky Model.

Installation Instructions

The easiest way to install skytools is with conda:
conda config --add channels conda-forge
conda install skytools

Installing from source:
Install inside a conda environment. The current version targets python version >= 3.9. You also need meson and pkg-config installed in the conda environment for the build backend. All three can be installed by doing conda install <package>.

Following python packages are required for SkyTools to work:
1. astropy
2. healpy (>=1.16.0)
3. numpy (>=2.0.0)
4. scipy
5. joblib

To install download the zip of the project or git clone the project. Unzip the folder if downloaded. Then at the root level of the project (where you find the pyproject.toml file) do pip install . to install to your active conda environment. You can check if the package is installed in the conda environment by doing conda list | grep skytools. Try python -c "import skytools" in the same conda environment to verify that the package has been installed correctly.

For SkyTools to work correctly, set an environment variable SKYTOOLS_DATA pointing to HEALPix data folder (available with the HEALPix distribution) by adding export SKYTOOLS_DATA='<path to Healpix data folder> in your bashrc or bash_profile.

Documentation

For full API documentation see skytools.readthedocs.io.

Sub-modules

skytools.binning_utils

The binning utilities module provides useful and frequently used macro funtions to bin power spectrum data.

skytools.border_finder

This module contains functions for finding the border of a binary mask.

skytools.em_law

Module containing emission law functions. These produce the frequency scaling of different emission components relevant to the CMB observations.

skytools.hpx_utils

The HEALPix utilities module provides useful and frequently used macro funtions to augment the function set available with Healpy. Some of these …

skytools.mask_recipes

The mask recipes module provides a set of useful functions to construct sky masks.

skytools.mask_tools

SkyTools mask tools library provides functions and tools to process masks.

skytools.needlet

SkyTools needlet transformation module provides functions and utilities to performs needlet transformation of data on a sphere. The module provides …

skytools.unit_conversion

This module computes unit conversion and color correction factors for CMB observations based on Planck 2013 IX: HFI Spectral Response. This is meant …