Metadata-Version: 2.4
Name: jdaviz
Version: 5.1.0
Summary: Astronomical data analysis development leveraging the Jupyter platform
Author: JDADF Developers
Project-URL: Homepage, https://jdaviz.readthedocs.io/en/latest/
Requires-Python: >=3.12
Description-Content-Type: text/x-rst
License-File: LICENSE.rst
License-File: licenses/IPYFILECHOOSER_LICENSE.rst
License-File: licenses/IMEXAM_LICENSE.txt
License-File: licenses/GINGA_LICENSE.txt
License-File: licenses/TEMPLATE_LICENCE.rst
Requires-Dist: packaging
Requires-Dist: astropy>=7.2
Requires-Dist: matplotlib>=3.6
Requires-Dist: traitlets>=5.0.5
Requires-Dist: bqplot<0.13,>=0.12.45
Requires-Dist: glue-core>=1.24.0
Requires-Dist: glue-jupyter>=0.30.0
Requires-Dist: echo>=0.15.0
Requires-Dist: ipykernel>=7.1.0
Requires-Dist: ipyvuetify>=3.0.0
Requires-Dist: ipywidgets>=8.0.6
Requires-Dist: solara>=1.61.0
Requires-Dist: pyyaml>=5.4.1
Requires-Dist: specutils>=2.0.0
Requires-Dist: specreduce>=1.6.0
Requires-Dist: photutils>=2.2
Requires-Dist: glue-astronomy>=0.12.0
Requires-Dist: asteval>=0.9.23
Requires-Dist: idna
Requires-Dist: vispy>=0.6.5
Requires-Dist: asdf>=2.14.3
Requires-Dist: stdatamodels>=1.3
Requires-Dist: gwcs>=0.16.1
Requires-Dist: regions>=0.6
Requires-Dist: scikit-image
Requires-Dist: sidecar>=0.5.2
Requires-Dist: ipypopout>=2.1.0
Requires-Dist: astroquery
Requires-Dist: requests
Requires-Dist: nbclassic
Requires-Dist: pyvo>=1.5.3
Requires-Dist: s3fs>=2024.10.0
Requires-Dist: joblib>=1.3.0
Requires-Dist: spherical-geometry
Requires-Dist: pytest<9.2,>=9.1.1
Provides-Extra: all
Requires-Dist: opencv-python; extra == "all"
Requires-Dist: pysiaf; extra == "all"
Requires-Dist: strauss; extra == "all"
Requires-Dist: qtpy; extra == "all"
Requires-Dist: PySide6; extra == "all"
Requires-Dist: roman_datamodels>=0.26.0; extra == "all"
Provides-Extra: test
Requires-Dist: pytest-astropy; extra == "test"
Requires-Dist: pytest-tornasync; extra == "test"
Requires-Dist: pytest-xdist>=3.6; extra == "test"
Requires-Dist: pytest-split; extra == "test"
Provides-Extra: docs
Requires-Dist: sphinx-astropy[confv2]>=1.9.1; extra == "docs"
Requires-Dist: sphinx_design; extra == "docs"
Requires-Dist: sphinx-guidestar<0.3.0,>=0.2.0; extra == "docs"
Requires-Dist: sphinx-favicon; extra == "docs"
Provides-Extra: roman
Requires-Dist: roman_datamodels>=0.26.0; extra == "roman"
Provides-Extra: strauss
Requires-Dist: strauss; extra == "strauss"
Provides-Extra: qt
Requires-Dist: qtpy; extra == "qt"
Requires-Dist: PySide6; extra == "qt"
Dynamic: license-file

.. image:: https://raw.githubusercontent.com/spacetelescope/jdaviz/refs/heads/main/docs/logos/jdaviz.svg
    :width: 400
    :alt: Jdaviz logo
    :align: center

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5513927.svg
    :target: https://doi.org/10.5281/zenodo.5513927
    :alt: Zenodo DOI

.. image:: https://github.com/spacetelescope/jdaviz/workflows/CI/badge.svg
    :target: https://github.com/spacetelescope/jdaviz/actions
    :alt: GitHub Actions CI Status

.. image:: https://codecov.io/gh/spacetelescope/jdaviz/branch/main/graph/badge.svg
    :target: https://codecov.io/gh/spacetelescope/jdaviz

.. image:: https://readthedocs.org/projects/jdaviz/badge/?version=latest
    :target: https://jdaviz.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

.. image:: https://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
    :target: https://www.astropy.org
    :alt: Powered by Astropy

``jdaviz`` is a package of astronomical data analysis visualization tools based
on the Jupyter platform. It is one tool that is a part of STScI's
larger `Data Analysis Tools Ecosystem <https://jwst-docs.stsci.edu/jwst-post-pipeline-data-analysis>`_.
This GUI-based tool links data visualization and interactive analysis.
It is designed to work within a Jupyter notebook cell, as a standalone desktop
application, or as embedded windows within a website -- all with nearly-identical
user interfaces. ``jdaviz`` is under active development, and users who
encounter bugs in existing features are encouraged to open issues in this
repository.

``jdaviz`` provides data viewers and analysis plugins that can be flexibly
combined as desired to create interactive applications that fit your workflow.
In the most recent release (5.0), ``jdaviz`` has been refactored to combine what
were previously separate 'configurations' (Cubeviz, Specviz, Specviz2D, and
Imviz) into a single, flexible application that supports mixed viewer
types.

**Image viewers** support 2D images, and include tools for panning, zooming, and
aperture photometry, catalogs, and other quick-look analysis. **Spectrum viewers** support
1D and 2D spectra, and include tools for extraction, measuring spectral features,
fitting lines, among other analysis and quick-look tasks. **Cube viewers** provide a
view of spectroscopic data cubes (like those to be produced by JWST MIRI), along
with 1D spectra extracted from the cube. **Table viewers**, **Scatter viewers**
and **Histogram viewers** allow for interactive exploration of tabular data,
including source catalogs.

**Mosviz** still exists as an standalone configuration and as of v5.0 has not yet
been integrated into the main application. It is a visualization tool for many
astronomical spectra, typically the output of a multi-object spectrograph
(e.g., JWST NIRSpec), and includes viewers for 1D and 2D spectra as well as
contextual information like on-sky views of the spectrograph slit.


This tool is designed with instrument modes from the James Webb Space Telescope
(JWST) in mind, but the tool should be flexible enough to read in data from many
astronomical telescopes.  The documentation provides a complete `table of all supported modes <https://jdaviz.readthedocs.io/en/latest/#jwst-instrument-modes-in-jdaviz>`_.

Installing
----------

You may want to consider installing ``jdaviz`` in a new virtual or conda environment to avoid
version conflicts with other packages you may have installed, for example:

.. code-block:: bash

   conda create -n jdaviz-env python=3.13
   conda activate jdaviz-env

Installing the released version can be done using pip:

.. code-block:: bash

   pip install jdaviz --upgrade

For details on installing and using Jdaviz, see the
`Jdaviz Installation <https://jdaviz.readthedocs.io/en/latest/setup/index.html>`_.

Quick Start
-----------

Once installed, ``jdaviz`` can be run either as a standalone web application or
in a Jupyter notebook.
See `the Jdaviz Quickstart guide <https://jdaviz.readthedocs.io/en/latest/quickstart.html>`_ for more details on installation and usage.

For more information on supported data types for loading data into ``jdaviz``,
see the documentation for `viewers <https://jdaviz.readthedocs.io/en/latest/viewers/index.html>`_,
`data formats <https://jdaviz.readthedocs.io/en/latest/loaders/formats/index.html>`_,
and `data sources <https://jdaviz.readthedocs.io/en/latest/loaders/sources/index.html>`_.

As a Web Application
++++++++++++++++++++

``jdaviz`` provides a command-line tool to start the web application. To see the
syntax and usage, from a terminal, type, for example:

.. code-block:: bash

    jdaviz --help
    jdaviz /path/to/data/spectral_file

For more information on the command line interface, see the
`Jdaviz docs <https://jdaviz.readthedocs.io/en/latest/setup/desktop.html#setup-desktop>`_.


In a Jupyter Notebook
+++++++++++++++++++++

The power of ``jdaviz`` is that it can integrated into your Jupyter notebook workflow:

.. code-block:: python

    import jdaviz as jd

    jd.show()

``jdaviz`` also provides a directory of `sample notebooks <https://jdaviz.readthedocs.io/en/latest/sample_notebooks.html>`_ to test the application, located in the ``notebooks`` sub-directory
of the git repository.  ``CubevizExample.ipynb`` is provided as an example that loads a JWST data cube with the
``Cubeviz`` configuration.  To run the provided example, start the Jupyter kernel with the notebook path:

.. code-block:: bash

    jupyter notebook /path/to/jdaviz/notebooks/CubevizExample.ipynb

Help
----

If you uncover any issues or bugs, you can
`open a GitHub issue <https://github.com/spacetelescope/jdaviz/issues/new/choose>`_
if they are not already reported. For faster responses, however, we encourage you to
submit a `JWST Help Desk Ticket <https://jwsthelp.stsci.edu>`_.

Recordings and instructional notebooks from live Jdaviz tutorials (as part of the JWebbinars series)
can be found at `the JWebbinar website <https://www.stsci.edu/jwst/science-execution/jwebbinars>`_
under the "Materials and Videos" expandable section. Scroll down to the bottom of that section to
find materials from the most recent session (JWebbinar 24, March 2023).

License & Attribution
---------------------

This project is Copyright (c) JDADF Developers and licensed under
the terms of the BSD 3-Clause license. This package is based upon
the `Astropy package template <https://github.com/astropy/package-template>`_
which is licensed under the BSD 3-clause licence. See the
`licenses <https://github.com/spacetelescope/jdaviz/tree/main/licenses>`_
folder for more information.

Cite ``jdaviz`` via our Zenodo record: https://doi.org/10.5281/zenodo.5513927.

Contributing
------------

We love contributions! ``jdaviz`` is open source,
built on open source, and we'd love to have you hang out in our community.

**Imposter syndrome disclaimer**: We want your help. No, really.

There may be a little voice inside your head that is telling you that you're not
ready to be an open source contributor; that your skills aren't nearly good
enough to contribute. What could you possibly offer a project like this one?

We assure you - the little voice in your head is wrong. If you can write code at
all, you can contribute code to open source. Contributing to open source
projects is a fantastic way to advance one's coding skills. Writing perfect code
isn't the measure of a good developer (that would disqualify all of us!); it's
trying to create something, making mistakes, and learning from those
mistakes. That's how we all improve, and we are happy to help others learn.

Being an open source contributor doesn't just mean writing code, either. You can
help out by writing documentation, tests, or even giving feedback about the
project (and yes - that includes giving feedback about the contribution
process). Some of these contributions may be the most valuable to the project as
a whole, because you're coming to the project with fresh eyes, so you can see
the errors and assumptions that seasoned contributors have glossed over.

Note: This disclaimer was originally written by
`Adrienne Lowe <https://github.com/adriennefriend>`_ for a
`PyCon talk <https://www.youtube.com/watch?v=6Uj746j9Heo>`_, and was adapted by
jdaviz based on its use in the README file for the
`MetPy project <https://github.com/Unidata/MetPy>`_.
