MinkasiWrapper¶
A Wrapper for the Minkasi Map Maker¶
This package wraps the Minkasi map mapker as an external map maker package for the TolTEC camera.
Minkasi Map Maker¶
Minkasi is a Python/C-based mapper for Mustang.
TODO: add credit and license of Minkasi.
Installation¶
Minkasi depends on fftw3, and requires an OpenMP-capable C compiler to work.
On macOS, this can be done with Homebrew:
$ brew install llvm libomp fftw3
$ export CC=/usr/local/opt/bin/clang
$ export LDFLAGS=-L/usr/local/opt/llvm/lib
$ export CPPFLAGS=-I/usr/local/opt/llvm/include
On Ubuntu, install the packages with:
$ sudo apt install gcc-10 fftw-dev
One can also use customized FFTW installation. This leverages the
pkg-config
stub that gets created in the fftw lib path:
$ export PKG_CONFIG_PATH=/path/to/fftw3/install/prefix/lib/pkgconfig
Once the preparation is done, install minkasi_wrapper with pip
:
$ pip install git+https://github.com/toltec-astro/minkasi_wrapper
Usage¶
High-level API¶
To be implemented.
Low-level API¶
The minkasi_wrapper
module exposes the low level minkasi.py
API
as the minkasi_wrapper.minkasi
submodule:
from minkasi_wrapper import minkasi
tod = minkasi.Tod(...)
Please see the API documentation for details.
License¶
This project is Copyright (c) Zhiyuan Ma and licensed under the terms of the BSD 3-Clause license. This package is based upon the Astropy package template which is licensed under the BSD 3-clause license. See the licenses folder for more information.
Reference/API¶
minkasi_wrapper Package¶
minkasi_wrapper.extern.minkasi.minkasi Module¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Get a wcs for a subregion of a map, with optionally finer pixellization. |
|
|
|
|
|
|
|
|
|
|
|
make a mask that has an estimate of the gradient within a pixel. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversion between T_CMB and T_RJ as a function of frequency. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return the starting/stopping points of regions marked False in vec. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conversion to multiply a y map by to get a Rayleigh-Jeans normalized map note that it doesn't have the T_cmb at the end, so the value for low frequencies is -2. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A pair of maps to serve as a prior for multi-experiment mapping. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A class to hold timestream models that are shared between groups of TODs. |
|
|
|
|
|
|
|
|
|