Pill aperture photometry for trailed astronomical sources
Project description
TRIPPy: Python based Trailed Source Photometry (submitted to the Astrophysical Journal)
Citation: If you use TRIPPy in your science works, please cite Fraser, W. et al., 2016, To appear in AJ. DOI at Zenodo: http://dx.doi.org/10.5281/zenodo.48694
1. Installation
1a. Dependencies
TRIPPy depends on a few separate, equally useful python packages. These packages are: * numpy * scipy * matplotlib * astropy * stsci.numdisplay * emcee (optional) * numba – very very useful for big speed improvements. Highly recommended!!
An additional optional piece of software is the SExtractor package. This can often be installed with through standard linux repository systems (yum, apt-get, etc.) or can be simply downloaded and compiled. [Source is available here].(http://www.astromatic.net/software/sextractor)
Technically pip should automatically install all of the above requirements. In practice however, pip falls over quiet hilariously. Rather, the most reliable thing to do is install these requirements first.
All packages can be install using pip. eg. pip install stsci . Alternatively, the first four requirements can be installed (and maintained!) with an anaconda python installation. [Instructions to install anaconda are available here.](https://www.continuum.io/)
Once numpy, scipy, matplotlib, and astropy are installed, stsci-python (which provides stsci.numdisplay) can be installed by the two commands
pip install stsci.distutils pip install stscipython
This will compile and install all of the bits required by stsci-python.
Finally, the optional package emcee (MC Hammer) can be installed. This will provide robust source fitting utilities in the MCMCfit module.
Test that these modules are available by attempting to import each one:
python -c “import numpy; import scipy; import matplotlib; import astropy; import stsci.numdisplay”
If the optional emcee was installed
python -c “import emcee”
1b. TRIPPy installation
Once dependencies are installed, trippy can be installed with a simple pip invocation
pip install trippy
Accesibility can be checked with a few import commands
python -c “import trippy; from trippy import bgFinder; from trippy import psfStarChooser; from trippy import scamp”
and if the optional emcee package was installed
python -c “from trippy import MCMCfit”
NOTE: Currently no internal tests have been written. This will eventually change of course.
2. Usage
I have provided an ipython notebook which shows most of the functionality of the trippy package including PSF/TSF generation, photometry, and source fitting and removal. Please checkout the [notebook.](https://github.com/fraserw/trippy/blob/master/tutorial/trippytutorial.ipynb)
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
File details
Details for the file trippy-0.5.1.tar.gz
.
File metadata
- Download URL: trippy-0.5.1.tar.gz
- Upload date:
- Size: 749.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e61f2c0457ee5f46a5f3fd64fef36ae936c1c08b420e3848b8922599e22bfa0 |
|
MD5 | 3cfaabf7f118f4d4d8fa591b21811b5f |
|
BLAKE2b-256 | 28dcc4645ad4be49abf40d47c65dc03fd4f658c38d523cff6d2ca65b8139593a |