This repository has been archived by the owner on Nov 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.. _api: | ||
|
||
************* | ||
Reference/API | ||
************* | ||
|
||
.. automodapi:: pydis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
.. pydis documentation master file | ||
.. _pydis: | ||
|
||
.. include:: references.txt | ||
|
||
``pydis``: A simple longslit spectroscopy pipeline in Python | ||
============================================================ | ||
|
||
An easy to use reduction package for one dimensional longslit spectroscopy | ||
using Python. | ||
|
||
The goal of *pyDIS* is to provide a turn-key solution for reducing and | ||
understanding longslit spectroscopy, which could ideally be done in real time. | ||
Currently we are using many simple assumptions to get a quick-and-dirty | ||
solution, and modeling the workflow after the robust industry standards set by | ||
IRAF. Additionally, we have only used data from the low/medium resolution | ||
`APO 3.5-m <http://www.apo.nmsu.edu>`_ "Dual Imaging Spectrograph" (DIS). | ||
Therefore, many instrument specific assumptions are being made. So far PyDIS | ||
has also been successfully used (with hacking/modification) on data from MMT and | ||
DCT. **If you use PyDIS, please send me feedback!** | ||
|
||
Some background motivation on why I made this package is | ||
`given here <http://jradavenport.github.io/2015/04/01/spectra.html>`_ | ||
|
||
|
||
Examples | ||
-------- | ||
|
||
See the `examples page <https://github.com/jradavenport/pydis/wiki/Examples>` on | ||
the Wiki for a few worked examples of reducing DIS data, or the step-by-step | ||
`manual reduction guide <https://github.com/jradavenport/pydis/wiki/Manual-Reduction-Guide>`_ | ||
for a detailed tutorial on reducing 1-d spectroscopy data with *pyDIS*. | ||
|
||
|
||
Motivation | ||
---------- | ||
|
||
Really slick tools exist for on-the-fly photometry analysis. However, | ||
no turn-key, easy to use spectra toolkit for Python (without IRAF or PyRAF) | ||
was available (that we were aware of). Here are some mission statements: | ||
|
||
- Being able to extract and see data in real time at the telescope would be extremely helpful! | ||
- This pipeline doesn't have to give perfect results to be very useful | ||
- Don't try to build a *One Size Fits All* solution for every possible instrument or science case. We cannot beat IRAF at it's own game. IRAF is the industry standard | ||
- The pipeline does need to handle: | ||
- Flats | ||
- Biases | ||
- Spectrum Tracing | ||
- Wavelength Calibration using HeNeAr arc lamp spectra | ||
- Sky Subtraction | ||
- Extraction | ||
- basic Flux Calibration | ||
- The more hands-free the better, a full reduction script needs to be available | ||
- A fully interactive mode (a la IRAF) should be available for each task | ||
|
||
So far *pyDIS* can do a rough job of all the reduction tasks for single point sources objects! | ||
We are seeking more data to test it against, to help refine the solution and find bugs. | ||
|
||
How to Help | ||
----------- | ||
|
||
- Check out the Issues page if you think you can help code, or want to requst a feature! | ||
- If you have some data already reduced in IRAF that you trust and would be willing to share, let us know! | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Contents: | ||
|
||
api | ||
|
||
|
||
Indices and tables | ||
------------------ | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.. _Astropy: http://astropy.org | ||
.. _Numpy: http://www.numpy.org | ||
.. _Matplotlib: http://www.matplotlib.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
numpy >= 1.6 | ||
matplotlib | ||
astropy >= 1.3 | ||
sphinx-automodapi | ||
scipy | ||
h5py | ||
batman-package |