Skip to content

Commit a7262f2

Browse files
author
Craig Jones
authored
Merge pull request #423 from brechmos-stsci/make-markdown
Moved all documentation to markdown from RsT (shiver)
2 parents 99515d0 + e40c218 commit a7262f2

File tree

6 files changed

+55
-98
lines changed

6 files changed

+55
-98
lines changed
Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
CubeViz
2-
--------------------------------
3-
4-
.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
5-
:target: http://www.astropy.org
6-
:alt: Powered by Astropy Badge
1+
# CubeViz
72

3+
![](http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat)
84

95
For documentation see http://cubeviz.readthedocs.io/en/latest/
106

11-
Release 0.2.0
12-
-------------
7+
## Release 0.2.0
138

149
We are pleased to announce the release of CubeViz, a visualization and analysis tool for data cubes from integral field units (IFUs). This is an early release (v0.2.0) and we would appreciate your feedback. It is built on top of the “glue” visualization tool.
1510

16-
.. role:: bash(code)
17-
:language: bash
18-
1911
To install:
20-
* Install minconda3 if it is not on your system
21-
* To install, type: :bash:`$ conda create -n cubeviz020 -c glueviz cubeviz`
12+
* Install [Minconda3](https://conda.io/miniconda.html) if it is not on your system
13+
* To install, type: `$ conda create -n cubeviz020 -c glueviz cubeviz`
2214

2315
To run:
24-
* Activate the environment: :bash:`$ source activate cubeviz020`
25-
* Run cubeviz: :bash:`$ cubeviz`
26-
* Once done, deactivate the environment: :bash:`source deactivate`
16+
* Activate the environment: `$ source activate cubeviz020`
17+
* Run cubeviz: `$ cubeviz`
18+
* Once done, deactivate the environment: `source deactivate`
2719

2820
More installation instructions will be on the RTD page (currently incorrectly displaying the wrong docs and appears to be an RTD bug).
2921

@@ -35,10 +27,9 @@ If you run into any issues or have suggestions for new features, we encourage yo
3527

3628
This release requires Python 3.5 or 3.6.
3729

38-
.. image:: /docs/images/CubeViz_splitviewer.png
30+
![](/docs/images/CubeViz_splitviewer.png)
3931

4032

41-
License
42-
-------
33+
# License
4334

4435
This project is Copyright (c) JDADF Developers and licensed under the terms of the BSD 3-Clause license. See the licenses folder for more information.

docs/functionality.rst renamed to docs/functionality.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Overview of Basic CubeViz Functionality
1+
# Overview of Basic CubeViz Functionality
22

33
CubeViz has two main "modes:" Split Image Viewer and Single Image Viewer.
44
CubeViz starts in the Split Image Viewer which shows the flux, error,
@@ -14,11 +14,9 @@ In addition to the image viewers which display the data cube in
1414
its spatial axes (RA, DEC), a spectrum viewer shows the spectral axis
1515
(wavelength).
1616

17-
.. image:: images/CubeViz_splitviewer.png
18-
:align: center
17+
![](images/CubeViz_splitviewer.png?raw=true)
1918

20-
.. image:: images/CubeViz_singleviewer.png
21-
:align: center
19+
![](images/CubeViz_singleviewer.png?raw=true)
2220

2321
Caption: Screen shots of the split image viewer (top) and single
2422
image viewer (bottom) are shown.
@@ -28,7 +26,7 @@ is displayed in the image viewer, and a spectrum of the entire cube
2826
(collapsed wavelength space using an average) is shown in black in the
2927
spectrum viewer.
3028

31-
##Using the Image Viewers
29+
## Using the Image Viewers
3230

3331
To manipulate an image displayed in an image viewer, the user should
3432
click on that image and then the "Show viewer options" button in the
@@ -41,9 +39,7 @@ The user can hide the control panel again by clicking on the
4139
The user can also interact with the image panels using the menu bar
4240
across the top:
4341

44-
.. figure:: images/upper_panel.png
45-
:align: center
46-
42+
![](images/upper_panel.png?raw=true)
4743

4844
This is below the very top glue menu bar. The left-most part of the menu
4945
bar shows three pull-down menus which list the extension of the loaded
@@ -71,7 +67,7 @@ to hide the coordinate axes and tool bars on the image viewers.
7167
(Finally, there is another button to sync the viewers?)
7268

7369

74-
##Selecting a Region in the Image Viewers
70+
## Selecting a Region in the Image Viewers
7571

7672
Regions can be selected in the image viewers. If they are spatial
7773
regions (RA, DEC), the cube will be collapsed in wavelength space

docs/index.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# CubeViz: Visualization & Analysis Tool for Data Cubes from Integral Field Units (IFUs)
2+
3+
CubeViz is an visualization and analysis toolbox for data cubes from [integral field units (IFUs)](https://jwst-docs.stsci.edu/display/JPP/Introduction+to+IFU+Spectroscopy). It is built as part of the [glue visualiztion tool](http://glueviz.org). CubeViz is designed to work with data cubes from the [NIRSpec](https://jwst-docs.stsci.edu/display/JTI/NIRSpec+IFU+Spectroscopy) and [MIRI](https://jwst-docs.stsci.edu/display/JTI/MIRI+Medium-Resolution+Spectroscopy) instruments on [JWST](https://jwst-docs.stsci.edu/display/HOM/JWST+User+Documentation+Home), and will work with data cubes from any IFU. It uses the [specutils](https://specutils.readthedocs.io/en/latest/) package from [Astropy](http://www.astropy.org).
4+
5+
The core functionality of CubeViz currently includes the ability to:
6+
* view the wavelength slices (RA, DEC) in a data cube,
7+
* view flux, error, and data quality slices simultaneously,
8+
* view spectra from selected spatial (RA, DEC) regions,
9+
* smooth cubes spactially (RA, DEC) and spectrally (wavelength), and
10+
* create and display contour maps.
11+
12+
Future functionality will include the ability to:
13+
* collapse cubes over selected wavelength regions,
14+
* fit spectral lines,
15+
* create moment maps,
16+
* create kinematic maps (rotation velocity and velocity dispersion),
17+
* create RGB images from regions collapsed in wavelength space (i.e., linemaps),
18+
* perform continuum subtraction,
19+
* overlay spectral line lists,
20+
* save edited cubes,
21+
* create publication quality figures,
22+
* output astropy commands,
23+
* match spatial resolution among selected data cubes,
24+
* bin data into constant signal-to-noise regions,
25+
* mock slit observations
26+
* accurate spectro-photometry
27+
28+
# Reference/API
29+
30+
* [Installation](installation.md)
31+
* [Functionality](functionality.md)
32+
* [Reading in Data](readingindata.md)

docs/index.rst

Lines changed: 0 additions & 56 deletions
This file was deleted.

docs/installation.rst renamed to docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CubeViz is packaged in the Conda environment system and therefore requires Minic
44

55
## Installing Miniconda
66

7-
Follow the Miniconda `installation instructions <https://conda.io/miniconda.html>`_ found on the Miniconda website. When asked whether miniconda should be appended to your system PATH, make sure to select yes.
7+
Follow the Miniconda [installation instructions](https://conda.io/miniconda.html) found on the Miniconda website. When asked whether miniconda should be appended to your system PATH, make sure to select yes.
88

99
Note that we have encountered issues with older versions of Miniconda, so if you already have it installed, it might be a good idea to update it.
1010

docs/readingindata.rst renamed to docs/readingindata.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
***************
2-
Reading-in Data
3-
***************
1+
# Reading-in Data
42

53
CubeViz will be able to read in NIRSpec and MIRI IFU data straight from the pipeline or archive. It includes data loaders for many but not all ground-based IFUs.
64

7-
CubeViz uses simple [yaml] (https://learn.getgrav.org/advanced/yaml) files as data loaders. Examples are given below. In short, the yaml file tells CubeViz which axes in the cube are RA, DEC, and wavelength, and the units used, among other things.
5+
CubeViz uses simple [yaml](https://learn.getgrav.org/advanced/yaml) files as data loaders. Examples are given below. In short, the yaml file tells CubeViz which axes in the cube are RA, DEC, and wavelength, and the units used, among other things.
86

9-
If you have trouble loading your data cube into CubeViz, please email [Susan Kassin] (https://www.susankassin.com/contact/). It would be helpfu a link to your data cube is provided.
7+
If you have trouble loading your data cube into CubeViz, please email [Susan Kassin](https://www.susankassin.com/contact/). It would be helpfu a link to your data cube is provided.
108

11-
+++++++++++++++++++++++++++++++++++++++++++++++++++++
12-
Reading in an Example Data Cube
13-
+++++++++++++++++++++++++++++++++++++++++++++++++++++
9+
# Reading in an Example Data Cube
1410

15-
An example data cube from the [MaNGA Survey] (http://www.sdss.org/surveys/manga/) can be found on the bottom of [this website] (http://skyserver.sdss.org/dr13/en/tools/explore/summary.aspx?ra=205.4384&dec=27.004754). To download the data cube, click on "LIN Data Cube" or "LOG Data Cube" to dowload a data cube with a linear or log wavelength axis, respectively.
11+
An example data cube from the [MaNGA Survey](http://www.sdss.org/surveys/manga/) can be found on the bottom of [this website](http://skyserver.sdss.org/dr13/en/tools/explore/summary.aspx?ra=205.4384&dec=27.004754). To download the data cube, click on "LIN Data Cube" or "LOG Data Cube" to dowload a data cube with a linear or log wavelength axis, respectively.
1612

1713
Start up CubeViz by typing "cubeviz" on the command line, following the
1814
installation instructions (:ref:'installation.rst'). CubeViz should start
@@ -22,9 +18,7 @@ should appear. In the dialog box, select the data cube you wish to load and
2218
select the relevant data loader using the drop down menu on the bottom.
2319
For the MaNGA cube, select "manga (*)." The data cube should load.
2420

25-
+++++++++++++++++++++++++++++++++++++++++++++++++++++
26-
Reading in an Unsupported Data Cube
27-
+++++++++++++++++++++++++++++++++++++++++++++++++++++
21+
# Reading in an Unsupported Data Cube
2822

2923
If your data cube does not automatically load with one of the
3024
pre-existing data loaders in the "Open Data" dialog box, you can

0 commit comments

Comments
 (0)