Ultra-faint galaxy likelihood toolkit.
Project description
[![Build](https://img.shields.io/travis/DarkEnergySurvey/ugali.svg)](https://travis-ci.org/DarkEnergySurvey/ugali)
[![Release](https://img.shields.io/github/tag/DarkEnergySurvey/ugali.svg)](../../releases)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](../../)
Overview
--------
The ultra-faint galaxy likelihood (UGaLi) toolkit provides a set of python classes and functions developed for maximum-likelihood-based studies of Milky Way satellite galaxies. The primary inputs are stellar object catalogs derived from optical photometric surveys and the coverage masks of those surveys.
[Keith Bechtol](https://github.com/bechtol) & [Alex Drlica-Wagner](https://github.com/kadrlica)
Installation
------------
There are several ways to install `ugali` and it's complimentary isochrone library.
The easiest way is through [PyPi](https://pypi.python.org/pypi) using `pip`:
```
# To install just the source code
pip install ugali
# To also install the isochrone library
pip install ugali --install-option "--isochrones"
# To install the isochrone library in a specified path
pip install ugali --install-option "--isochrones" --install-option "--isochrones-path <PATH>
```
The isochrone library is a ~100 MB tarball. The default installation location is `$HOME/.ugali`. Depending on the speed of your connection and processor, the download and unpacking of the isochrone files may cause a delay in your `pip` installation (unfortunately, `pip` [will not](https://github.com/pypa/pip/issues/2732#issuecomment-97119093) display a progress bar during this delay).
To get the most up-to-date version of `ugali`, you can download the source code from github and install it with a call to `setup.py`:
```
# Clone the parent
git clone https://github.com/DarkEnergySurvey/ugali.git
cd ugali
# Install the python source code
python setup.py install
# Also install the isochrone library
python setup.py install --isochrones
# To specify the isochrone install path
python setup.py install --isochrones --isochrones-path=<PATH>
```
If you place the isochrones in a non-default directory be sure that `ugali` knows where to find them:
```
export UGALIDIR=$<PATH>/isochrones
```
Usage Examples
--------------
Examples go here.
Code Repository
---------------
* https://bitbucket.org/bechtol/ugali/
* https://github.com/kadrlica/ugali/
Dependencies
------------
These should mostly be taken care of by PyPi with a `pip install`.
### Python packages:
* [numpy](http://www.numpy.org/)
* [scipy](https://www.scipy.org/)
* [matplotlib](http://matplotlib.org/)
* [pyfits](http://www.stsci.edu/institute/software_hardware/pyfits)
* [healpy](https://github.com/healpy/healpy)
* [astropy](http://www.astropy.org/)
* [emcee](http://dan.iel.fm/emcee/current/)
* [pyyaml](http://pyyaml.org/)
### Mangle:
Not a strict dependency. Used to interface with masks produced by
the Dark Energy Survey Data Mangement group. Download and documentation
available at http://space.mit.edu/~molly/mangle/
### Isochrones:
The ugali tools make use of a large library of stellar isochrones. These isochrones are derived from two different groups and are distributed as binary tarballs with releases of ugali.
* Padova isochrones (http://stev.oapd.inaf.it/cgi-bin/cmd)
* Dartmouth isochrones (http://stellar.dartmouth.edu/models/isolf_new.html)
Conventions
-----------
### Indexing:
array[index_z][index_y][index_x]
### Naming:
* package_name
* module_name.py
* ClassName
* functionName
* variable_name
ABBREVIATIONS
-------------
* IMF: initial mass function
* CMD: color-magnitude diagram
* ROI: region of interest
* PDF: probability distribution function
* LUT: look-up table
* LKHD: likelihood
[![Release](https://img.shields.io/github/tag/DarkEnergySurvey/ugali.svg)](../../releases)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](../../)
Overview
--------
The ultra-faint galaxy likelihood (UGaLi) toolkit provides a set of python classes and functions developed for maximum-likelihood-based studies of Milky Way satellite galaxies. The primary inputs are stellar object catalogs derived from optical photometric surveys and the coverage masks of those surveys.
[Keith Bechtol](https://github.com/bechtol) & [Alex Drlica-Wagner](https://github.com/kadrlica)
Installation
------------
There are several ways to install `ugali` and it's complimentary isochrone library.
The easiest way is through [PyPi](https://pypi.python.org/pypi) using `pip`:
```
# To install just the source code
pip install ugali
# To also install the isochrone library
pip install ugali --install-option "--isochrones"
# To install the isochrone library in a specified path
pip install ugali --install-option "--isochrones" --install-option "--isochrones-path <PATH>
```
The isochrone library is a ~100 MB tarball. The default installation location is `$HOME/.ugali`. Depending on the speed of your connection and processor, the download and unpacking of the isochrone files may cause a delay in your `pip` installation (unfortunately, `pip` [will not](https://github.com/pypa/pip/issues/2732#issuecomment-97119093) display a progress bar during this delay).
To get the most up-to-date version of `ugali`, you can download the source code from github and install it with a call to `setup.py`:
```
# Clone the parent
git clone https://github.com/DarkEnergySurvey/ugali.git
cd ugali
# Install the python source code
python setup.py install
# Also install the isochrone library
python setup.py install --isochrones
# To specify the isochrone install path
python setup.py install --isochrones --isochrones-path=<PATH>
```
If you place the isochrones in a non-default directory be sure that `ugali` knows where to find them:
```
export UGALIDIR=$<PATH>/isochrones
```
Usage Examples
--------------
Examples go here.
Code Repository
---------------
* https://bitbucket.org/bechtol/ugali/
* https://github.com/kadrlica/ugali/
Dependencies
------------
These should mostly be taken care of by PyPi with a `pip install`.
### Python packages:
* [numpy](http://www.numpy.org/)
* [scipy](https://www.scipy.org/)
* [matplotlib](http://matplotlib.org/)
* [pyfits](http://www.stsci.edu/institute/software_hardware/pyfits)
* [healpy](https://github.com/healpy/healpy)
* [astropy](http://www.astropy.org/)
* [emcee](http://dan.iel.fm/emcee/current/)
* [pyyaml](http://pyyaml.org/)
### Mangle:
Not a strict dependency. Used to interface with masks produced by
the Dark Energy Survey Data Mangement group. Download and documentation
available at http://space.mit.edu/~molly/mangle/
### Isochrones:
The ugali tools make use of a large library of stellar isochrones. These isochrones are derived from two different groups and are distributed as binary tarballs with releases of ugali.
* Padova isochrones (http://stev.oapd.inaf.it/cgi-bin/cmd)
* Dartmouth isochrones (http://stellar.dartmouth.edu/models/isolf_new.html)
Conventions
-----------
### Indexing:
array[index_z][index_y][index_x]
### Naming:
* package_name
* module_name.py
* ClassName
* functionName
* variable_name
ABBREVIATIONS
-------------
* IMF: initial mass function
* CMD: color-magnitude diagram
* ROI: region of interest
* PDF: probability distribution function
* LUT: look-up table
* LKHD: likelihood
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ugali-1.6.2.tar.gz
(156.5 kB
view details)
File details
Details for the file ugali-1.6.2.tar.gz
.
File metadata
- Download URL: ugali-1.6.2.tar.gz
- Upload date:
- Size: 156.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67e83c0b3842e27544aef2319f65a3db3ab534ef220bf214792ff629bbddd53c |
|
MD5 | 3662b1f768cf592b9a169a97f0a44936 |
|
BLAKE2b-256 | 15b72f0300abbb7f52251adbc33e7504022cfd54b8e5c929ac1d0205c4ec7555 |