Skip to content

Commit

Permalink
Merge pull request #3170 from bmorris3/rampviz-docs-update
Browse files Browse the repository at this point in the history
Rampviz docs update
  • Loading branch information
bmorris3 authored Aug 27, 2024
2 parents c3d0c81 + baeb4bf commit ca0b107
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 9 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@
'skimage': ('https://scikit-image.org/docs/stable/', None),
'specreduce': ('https://specreduce.readthedocs.io/en/stable/', None),
'specutils': ('https://specutils.readthedocs.io/en/stable/', None),
'stdatamodels': ('https://stdatamodels.readthedocs.io/en/latest/', None),
'traitlets': ('https://traitlets.readthedocs.io/en/stable/', None)})

# Options for linkcheck
Expand Down
3 changes: 1 addition & 2 deletions docs/imviz/import_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ Roman datamodels
You can also load Nancy Grace Roman Space Telescope (hereafter, Roman) data products, which are
provided as ASDF files. If an ASDF file has a ``roman`` attribute, Jdaviz will
open it with `roman-datamodels <https://github.com/spacetelescope/roman_datamodels>`_.
You must run ``pip install roman-datamodels`` separately as it is not automatically installed
by Jdaviz.
In order to load Roman files, you will need to install the :ref:`optional-deps-roman`.

.. code-block:: python
Expand Down
5 changes: 4 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ Jdaviz
Jump to Mosviz

.. grid-item-card::
:img-top: logos/cube.svg

.. note::

New and in development. Logo coming soon!

.. button-ref:: rampviz/index
:expand:
Expand Down
16 changes: 16 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,22 @@ You might also want to enable the ``ipywidgets`` notebook extension, as follows:
jupyter nbextension enable --py widgetsnbextension
.. _optional-deps-roman:

Optional Dependencies for Roman
-------------------------------

Dependencies for working with data products from the Roman Space Telescope
are available for optional installation from PyPI with::

pip install -U jdaviz[roman]

or while building from source with::

pip install -U .[roman]


Developer Installation
----------------------

Expand Down
19 changes: 19 additions & 0 deletions docs/rampviz/import_data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.. _rampviz-import-api:

***************************
Importing Data into Rampviz
***************************


Level 1 ramp products loaded into Rampviz with
:py:meth:`~jdaviz.configs.rampviz.helper.Rampviz.load_data`. Rampviz loads
Level 1 ramp cubes from:

- JWST when given as paths to "_uncal.fits" files
or :py:class:`~stdatamodels.jwst.datamodels.Level1bModel` data models, or

- Roman Level 1 ramp files in asdf format or
:py:class:`~roman_datamodels.datamodels.RampModel` data models.

In order to load Roman files, you will need to install the :ref:`optional-deps-roman`.

14 changes: 8 additions & 6 deletions docs/rampviz/index.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
.. |cubeviz_logo| image:: ../logos/cube.svg
:height: 42px

.. _rampviz:

######################
|cubeviz_logo| Rampviz
######################

#######
Rampviz
#######

.. warning::

Heads up: Rampviz is new, and in active development.

Rampviz is a visualization and analysis toolbox for ramp cubes from
infrared detectors. It is built on top of the
Expand All @@ -18,4 +19,5 @@ with ramp files from the Roman Space Telescope and JWST.
.. toctree::
:maxdepth: 2

import_data
plugins
1 change: 1 addition & 0 deletions docs/rampviz/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ Slice
Ramp Extraction
===============

Coming soon.


0 comments on commit ca0b107

Please sign in to comment.