Skip to content

Commit

Permalink
Major documentation upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
justincely committed Jun 2, 2016
1 parent f34c549 commit e2a43de
Show file tree
Hide file tree
Showing 16 changed files with 120 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ dist
refstis.egg-info/
refstis/anneal_info.db
pipeline_data/config.yaml

docs/_build/

.DS_Store
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
Replacement pipeline for the STIS superdarks and superbiases
---
STIS superdark and superbiase reference file creation routines
--------------------------------------------------------------

Build Status
============
[![Build Status](https://travis-ci.org/spacetelescope/refstis.svg?branch=master)](https://travis-ci.org/spacetelescope/refstis)
Contribute
----------

[![Documentation Status](https://readthedocs.org/projects/refstis/badge/?version=latest)](http://refstis.readthedocs.io/en/latest/?badge=latest)
This library primarily serves the internal needs of the STIS instrument team at
STScI, and as such not all requested changes will be able to be accommodated.
Still, we'd love to know what issues and modifications are out there, so please
don't be shy!

For bugs, issues, suggestions, please use the github issue tracker.
For code, please *fork* the repo, make your changes, and issue a pull request.

Build Status and things
-----------------------

Travis-ci: [![Build Status](https://travis-ci.org/spacetelescope/refstis.svg?branch=master)](https://travis-ci.org/spacetelescope/refstis)

Documentation: [![Documentation Status](https://readthedocs.org/projects/refstis/badge/?version=latest)](http://refstis.readthedocs.io/en/latest/?badge=latest)

Conda install: [![Anaconda-Server Badge](https://anaconda.org/justincely/refstis/badges/installer/conda.svg)](https://conda.anaconda.org/justincely)
Binary file added docs/STIS_logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions docs/api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Api
---

.. toctree::
:maxdepth: 2

weekdark
basedark
weekbias
refbias
basejoint
pipeline
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/command_line.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Command-line usage
==================

comming soon to documentation near you!
49 changes: 38 additions & 11 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,53 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to refstis's documentation!
===================================
Contents:
Refstis: Superdarks and Superbiases for STIS
============================================

Refstis is a collection of tasks and pipeline processes to create the superdark
and superbias reference files for the Space Telescope Imaging Spectrograph (STIS)
on board the Hubble Space Telescope (HST).

.. image:: STIS_logo.png
:scale: 50 %
:alt: alternate text
:align: center

.. note::

These routines, and particularly the pipeline, are designed to regularly create
and deliver the reference files that are applied in the MAST archive. As such,
everything is geared particularly to the needs of the STIS instrument team at
STScI.

Installation
------------

.. toctree::
:maxdepth: 2

installation

Usage
-----

.. toctree::
:maxdepth: 2

basedark
basejoint
refbias
weekbias
weekdark
pipeline
command_line
scripting

Api
---

.. toctree::
:maxdepth: 2

api/index

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

36 changes: 36 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Installation Instructions
=========================

.. warning::

This package has a lingering dependency on an IRAF task that is accessed
through PyRAF. IRAF/PyRAF can be obtained through
`Astroconda <http://astroconda.readthedocs.io/en/latest/>`_. Though many
tasks will work without IRAF installed, some will fail under certain
circumstances. This depencency will be removed in a future release as
resources permit.

Install via Anaconda
--------------------

.. note::
If you do not have Anaconda, please follow the `instructions here
<https://www.continuum.io/downloads>`_ to install it, or scroll down for
manual installation of SpecViz.

After you have anaconda setup, then you can install refstis by
specifying the channel in your install command::

$ conda install --channel justincely refstis

If you do not yet have IRAF or PyRAF installed, you can install them via the
STScI supplied `AstroConda channel. <http://astroconda.readthedocs.io/>`_

Install from source
-------------------

Refstis can also be installed manually using the source code::

$ git clone https://github.com/spacetelescope/refstis.git
$ cd refstis
$ python setup.py install
4 changes: 4 additions & 0 deletions docs/scripting.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Examples in code
================

comming soon to documentation near you!
2 changes: 1 addition & 1 deletion refstis/weekbias.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def make_weekbias(input_list, refbias_name, basebias):
Update ERR extension of new superbias by assigning the ERR values of the
baseline superbias except for the new hot pixels that are updated from
the weekly superbias, for which the error extension of the weekly
ssuperbias is taken. Put the result in temporary ERR image.
superbias is taken. Put the result in temporary ERR image.
Parameters:
-----------
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Libraries :: Python Modules'],
scripts = glob.glob('scripts/*'),
install_requires = ['setuptools',
'pyyaml',
install_requires = ['pyyaml',
'numpy>=1.10',
'astropy>=1.0.1',
'stistools>=1.0.2'],
Expand Down

0 comments on commit e2a43de

Please sign in to comment.