Skip to content

Commit

Permalink
Merge pull request #52 from pllim/change-html-theme
Browse files Browse the repository at this point in the history
Improve doc
  • Loading branch information
pllim committed Nov 24, 2015
2 parents e8fa142 + 6e4a2c1 commit 2f87fac
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 8 deletions.
Binary file added docs/source/_static/backgroundsub_screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/dqinspect_screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
pygments_style = 'sphinx'

# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
modindex_common_prefix = ['stginga.']

# If true, keep warnings as "system message" paragraphs in the built documents.
#keep_warnings = False
Expand All @@ -117,7 +117,7 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'alabaster'
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
3 changes: 1 addition & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Using ``stginga``
.. toctree::
:maxdepth: 2

plugins
ref_api


Expand All @@ -59,5 +60,3 @@ Indices and tables

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

95 changes: 95 additions & 0 deletions docs/source/plugins.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
.. _stginga-plugins:

Plugins
=======

By using ``stginga``, the following plugins (in alphabetical order) are also
available, in addition to the ones that already come with Ginga. Some are
customizable via plugin configuration files, which are available in the
`stginga/examples/configs <https://github.com/spacetelescope/stginga/tree/master/stginga/examples/configs>`_ directory.


.. _local-plugin-backgroundsub:

BackgroundSub
-------------

This plugin is used to calculate and subtract background value. Currently,
it only handles constant background and there is no way to save the subtracted
image. However, subtraction parameters can be saved to a JSON file, which then
can be reloaded as well.

.. image:: _static/backgroundsub_screenshot.png
:width: 800px
:alt: BackgroundSub plugin

It is customizable using ``~/.ginga/plugin_BackgroundSub.cfg``::

#
# BackgroundSub plugin preferences file
#
# Place this in file under ~/.ginga with the name "plugin_BackgroundSub.cfg"

# Color of the background region outline and label
bgsubcolor = 'magenta'

# Default background region properties. Can also be changed in the GUI.
# bgtype can be 'annulus', 'box', or 'constant'
bgtype = 'annulus'
annulus_width = 10

# Default calculation parameters. Can also be changed in the GUI.
# algorithm can be 'mean', 'median', or 'mode'
algorithm = 'median'
sigma = 1.8
niter = 10


.. _local-plugin-dqinspect:

DQInspect
---------

This plugin is used to inspect the associated DQ array of a given image.
It shows the different DQ flags that went into a given pixel (middle right)
and also the overall mask of the selected DQ flag(s) (bottom right).

.. image:: _static/dqinspect_screenshot.png
:width: 800px
:alt: DQInspect plugin

It is customizable using ``~/.ginga/plugin_DQInspect.cfg``::

#
# DQInspect plugin preferences file
#
# Place this in file under ~/.ginga with the name "plugin_DQInspect.cfg"

# Display long or short descriptions
dqstr = 'long'

# DQ definition files (JWST)
dqdict = {'NIRCAM': 'data/dqflags_jwst.txt', 'NIRSPEC': ...}

# Color to mark a single pixel for inspection
pxdqcolor = 'red'

# Color and opacity to mark all affected pixels
imdqcolor = 'blue'
imdqalpha = 1.0


.. _local-plugin-mipick:

MIPick
------

TBD


.. _local-plugin-multiimage:

MultiImage
----------

TBD
8 changes: 4 additions & 4 deletions docs/source/ref_api.rst
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Reference/API
=============

``stginga.gingawrapper``
------------------------
gingawrapper
------------

.. automodule:: stginga.gingawrapper
:members:


``stginga.utils``
-----------------
utils
-----

.. automodule:: stginga.utils
:members:

0 comments on commit 2f87fac

Please sign in to comment.