Skip to content

Commit

Permalink
Merge pull request #8 from tzdwi/iraf
Browse files Browse the repository at this point in the history
Iraf
  • Loading branch information
Brett M. Morris committed Oct 31, 2017
2 parents cb6c67f + 0bd13c5 commit dc3c206
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ docs/_build

# Packages/installer info
*.egg
.eggs/*
*.egg-info
dist
build
Expand Down
6 changes: 4 additions & 2 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _getting_started:

.. include:: references.txt

.. _getting_started:

***************
Getting started
***************
Expand All @@ -17,6 +17,8 @@ Contents
Opening example spectra
-----------------------

If you want to do this with your own data, make sure it is reduced by following the steps in :ref:`iraf`

Example ARCES spectra are available online for you to work with. You can
download them via Python like this:

Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ You can view the
:caption: Contents:

install
iraf
getting_started
api

Expand Down
69 changes: 69 additions & 0 deletions docs/iraf.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.. include:: references.txt

.. _iraf:

****
IRAF
****

Contents
========

* :ref:`iraf-down`
* :ref:`iraf-prep`
* :ref:`iraf-reduce`

.. _iraf-down:

Downloading and installing AstroConda with IRAF
-----------------------------------------------
Go to the `AstroConda installation page <http://astroconda.readthedocs.io/en/latest/installation.html?highlight=iraf#legacy-software-stack-with-iraf>`_,
and follow the instructions to download AstroConda with IRAF. Unfortunately this only works with Python 2.7.

.. _iraf-prep:

Preparing your data
-------------------

``ReduceARCES`` will expect your flats in the red to start with "redflat",
your flats in the blue to start with "blueflat", your biases to start with "bias", and your ThAr lamp exposures to start
with "ThAr".

.. _iraf-reduce:

Reducing your data
------------------
First, make sure your iraf27 (or whatever you named it when installing AstroConda with IRAF) environment is activated by
doing ::

source activate iraf27

from a bash terminal.

Copy all of the files in the ``aesop/iraf`` directory into the directory where your raw data and cals are. From that
directory, do ::

mkiraf

which will create ``login.cl`` in that directory. If prompted to specify a terminal, say ``xgterm``.
Edit ``login.cl`` to include the following imports ::

imred
ccdred
echelle
crutil
astutil
images
imgeom
twodspec
apextract
onedspec

Next, open an xgterm by doing ``xgterm``, and do ::

cl
cl < ReduceARCES.cl

This will extract the spectrum from your data.

Now in order to use ``aesop``, follow the tutorial in :ref:`getting_started`

0 comments on commit dc3c206

Please sign in to comment.