From 17ca3604ee87a0db2fb28d3755dbb70435bf8b5f Mon Sep 17 00:00:00 2001
From: Jackie Brown <120489030+Jackie-Brown@users.noreply.github.com>
Date: Tue, 10 Dec 2024 14:25:23 -0500
Subject: [PATCH] Change readme (#334)
* updating readme.md
* updating readme table to include html links
* fix typos
---------
Co-authored-by: Hatice Karatay <66814693+haticekaratay@users.noreply.github.com>
---
notebooks/STIS/README.md | 60 ++++++++++++++++++++++------------------
1 file changed, 33 insertions(+), 27 deletions(-)
diff --git a/notebooks/STIS/README.md b/notebooks/STIS/README.md
index a868d7496..8b0780cd8 100644
--- a/notebooks/STIS/README.md
+++ b/notebooks/STIS/README.md
@@ -1,34 +1,38 @@
# STIS-Notebooks
-## Jupyter Notebook Tutorials for Working with Space Telescope Imaging Spectrograph (STIS) Data and observation planning.
+## Jupyter Notebook Tutorials for Working with Space Telescope Imaging Spectrograph (STIS) Data and Observation Planning.
The [Space Telescope Imaging Spectrograph](https://www.stsci.edu/hst/instrumentation/stis) (STIS) is an instrument on board the [Hubble Space Telescope](https://www.stsci.edu/hst/about) (HST). This is a repository of interactive tutorials for working with STIS data and planning observations. A complete list of available tools can be found on the [STIS data and software tools website](https://www.stsci.edu/hst/instrumentation/stis/data-analysis-and-software-tools).
+#### [Currently Operational Notebooks](#ch1)
+#### [Basic Requirements](#ch2)
+#### [Notes for those new to `Python`/`Jupyter` Coding](#ch3)
+#### [Getting Help](#ch4)
+
+---
+
+## Currently Operational Notebooks
+
The current operational notebooks with a short description:
-### STIS Coronagraphic Visualization Tool (CoronagraphyViz)
-Jupyter Notebook that assists users in planning and preparing STIS coronagraphic observations.
-### STIS Coronagraphic Observation Feasibility (constrast_sensitivity)
-A complimentary notebook to the Coronagraphic Visualization Tool, that acts as a guide to assess the feasibility of high-contrast imaging observations of point sources (i.e. exoplanets, brown dwarf companions) and/or disks around stars for a given expected contrast at the 1, 3 and 5 $\sigma$ level with STIS coronagraphy.
-### STIS DrizzlePac Tutorial (drizpac_notebook)
-Jupyter Notebook for aligning and combining STIS images with [DrizzlePac](https://www.stsci.edu/scientific-community/software/drizzlepac.html).
-### Viewing STIS Data (view_data)
-The tutorial introduces handling STIS Data extensions, including examining Data Quality Flags. Several strategies explore how to visually examine STIS Data within a notebook to reproduce plots and tables. A section on using TIME-TAG mode data shows how to construct a flux plot and generate ACCUM images from TIME-TAG data with the stistools with the int_tag tool. A section on the STIS Gratings Echelle mode data shows how to display the echelle image and plot echelles by spectral order.
-### 1D Spectra Extraction (extraction)
-An introductory Jupyter Notebook that shows how to visualize the 1-D extraction. This is useful for cases where a user may want to do a custom extraction or background subtraction. It shows how to find the important keywords and plot the extraction and background regions used for the extraction to generate x1d data. The notebook contains an example with a first order spectrum and with echelle data.
-### Calstis 2D CCD Calibration Steps (calstis)
-An introductory Jupyter Notebook that provides background for the different calibration steps for the CCD from the raw fits file to the flat fielded (flt) file. This also shows why there is often negative counts (or flux) values in STIS data. The six calibration steps shown are initializing the data quality array, large scale bias and overscale subtraction, small scale bias subtraction, cosmic ray correction, dark signal subtraction, and flat field correction.
-### Custom CCD Darks (custom_ccd_darks)
-An introductory Jupyter Notebook showing how to create a custom CCD dark reference file by making the baseline dark and then the week dark using the refstis package.
-### Evaluating STIS Target Acquisitions (target_acquisition)
-An introductory Jupyter Notebook that shows how to visualize and obtain information about a target acquisition. It provides examples for a successful acquisition and several typical failure cases.
-### Correcting for Missing Wavecals with Cross-Correlation (cross-correlation)
-A complementary Jupyter Notebook to the Acquisition Notebook, that shows how to find and correct the zero point spectral shift using cross-correlation.
-### Low Count Uncertainties in STIS (low_count_uncertainties)
-A Jupyter Notebook exploring how uncertainties are calculated in the STIS pipeline. This also shows how certain approximations break down in the low flux regime (e.g., dim FUV continua), and demonstrates how users can calculate more robust uncertainties when dealing with low flux data. Lastly, this explores a known bug in calculation of uncertainties when using INTTAG to split exposures into sub-exposures in TIME-TAG files.
-
-
-Each folder has a HTML file that can be opened in a browser after cloning this repository. The HTML file is identical to the notebook, except they contain output plots and tables.
+| Name | Title | Topic | Notebook file (`ipynb`) | Rendered file (`html`) |
+| - | - | - | - | - |
+| calstis | Calstis 2D CCD Calibration Steps | An introductory Jupyter Notebook that provides background for the different calibration steps for the CCD from the RAW FITS file to the flat fielded (FLT) file. This also shows why there is often negative counts (or flux) values in STIS data. The six calibration steps shown are initializing the data quality array, large scale bias and overscale subtraction, small scale bias subtraction, cosmic ray correction, dark signal subtraction, and flat field correction. | [calstis_2d_ccd.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/calstis) | [calstis_2d_ccd.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/calstis/calstis_2d_ccd.html) |
+| contrast_sensitivity | STIS Coronagraphic Observation Feasibility | A complementary notebook to the Coronagraphic Visualization Tool, that acts as a guide to assess the feasibility of high-contrast imaging observations of point sources (i.e. exoplanets, brown dwarf companions) and/or disks around stars for a given expected contrast at the 1, 3 and 5 $\sigma$ level with STIS coronagraphy. | [contrast_sensitivity.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/contrast_sensitivity) | [contrast_sensitivity.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/contrast_sensitivity/STIS_Coronagraphic_Observation_Feasibility.html) |
+| CoronagraphyViz | STIS Coronagraphic Visualization Tool | Jupyter Notebook that assists users in planning and preparing STIS coronagraphic observations. | [CoronagraphyViz.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/CoronagraphyViz) | [CoronagraphyViz.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/CoronagraphyViz/STIS_Coronagraphy_Visualization_v2.html) |
+| cross-correlation | Correcting for Missing Wavecals with Cross-Correlation | A complementary notebook to the target_acquisition notebook, that shows how to find and correct the zero point spectral shift using cross-correlation. | [cross-correlation.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/cross-correlation) | [cross-correlation.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/cross-correlation/cross-correlation.html) |
+| custom_ccd_darks | Custom CCD Darks | An introductory Jupyter Notebook showing how to create a custom CCD dark reference file by making the baseline dark and then the week dark using the refstis package. | [custom_ccd_darks.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/custom_ccd_darks) | [custom_ccd_darks.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/custom_ccd_darks/custom_ccd_darks.html) |
+| drizpac_notebook | STIS DrizzlePac Tutorial | Jupyter Notebook for aligning and combining STIS images with [DrizzlePac](https://www.stsci.edu/scientific-community/software/drizzlepac.html). | [STIS_DrizzlePac_Tutorial.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/drizpac_notebook) | [STIS_DrizzlePac_Tutorial.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/drizpac_notebook/STIS_DrizzlePac_Tutorial.html) |
+| extraction | 1D Spectra Extraction | An introductory Jupyter Notebook that shows how to visualize the 1-D extraction. This is useful for cases where a user may want to do a custom extraction or background subtraction. It shows how to find the important keywords and plot the extraction and background regions used for the extraction to generate X1D data. The notebook contains an example with a first order spectrum and with echelle data. | [1D_Extraction.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/extraction) | [1D_Extraction.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/extraction/1D_Extraction.html) |
+| low_count_uncertainties | Low Count Uncertainties in STIS | A Jupyter Notebook exploring how uncertainties are calculated in the STIS pipeline. This also shows how certain approximations break down in the low flux regime (e.g., dim FUV continua), and demonstrates how users can calculate more robust uncertainties when dealing with low flux data. Lastly, this explores a known bug in calculation of uncertainties when using INTTAG to split exposures into sub-exposures in TIME-TAG files. | [Low_Count_Uncertainties.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/low_count_uncertainties) | [Low_Count_Uncertainties.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/low_count_uncertainties/Low_Count_Uncertainties.html) |
+| target_acquisition | Evaluating STIS Target Acquisitions | An introductory Jupyter Notebook that shows how to visualize and obtain information about a target acquisition. It provides examples for a successful acquisition and several typical failure cases. | [target_acquisition.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/target_acquisition) | [target_acquisition.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/target_acquisition/target_acquisition.html) |
+| view_data | Viewing STIS Data | The tutorial introduces handling STIS Data extensions, including examining Data Quality Flags. Several strategies explore how to visually examine STIS Data within a notebook to reproduce plots and tables. A section on using TIME-TAG mode data shows how to construct a flux plot and generate ACCUM images from TIME-TAG data with the stistools with the int_tag tool. A section on the STIS Gratings Echelle mode data shows how to display the echelle image and plot echelles by spectral order. | [view_data.ipynb](https://github.com/spacetelescope/hst_notebooks/tree/main/notebooks/STIS/view_data) | [view_data.html](https://spacetelescope.github.io/hst_notebooks/notebooks/STIS/view_data/view_data.html) |
+
+
+Each folder has an `HTML` file that can be opened in a browser after cloning this repository. The `HTML` file is identical to the notebook, except they contain output plots and tables.
+
+---
+
## Basic Requirements
The following sections are based on and have been adapted from the [COS-Notebooks README](https://github.com/spacetelescope/hst_notebooks/blob/main/notebooks/COS/README.md).
@@ -79,16 +83,18 @@ Either of the previous commands should open up a new window in your default web
If you don't have experience installing packages, you should begin with the **COS introductory Notebook** [Setup.ipynb](https://github.com/spacetelescope/hst_notebooks/blob/master/notebooks/COS/Setup/Setup.ipynb) on setting up an environment for running astronomical Python code. If you do not yet have Jupyter up-and-running, you can read the pre-rendered (`.html`) version [here](https://spacetelescope.github.io/hst_notebooks/notebooks/COS/Setup/Setup.html).
+---
-## Notes for those new to `Python`/`Jupyter`/Coding:
+## Notes for those new to `Python`/`Jupyter` Coding:
Tips are from COS-Notebooks.
- You will frequently see exclamation points (**\!**) or dollar signs (**\$**) at the beginning of a line of code. These are not part of the actual commands. The exclamation points tell a Jupyter Notebook to pass the following line to the command line, and the dollar sign merely indicates the start of a terminal prompt.
- Similarly, when a variable or argument in a line of code is surrounded by sharp brackets, like \, this is an indication that the variable or argument is something which you should change to suit your data.
- If you install the full Anaconda distribution with the [*Anaconda Navigator* tool](https://docs.anaconda.com/anaconda/navigator/), (see Section 1 of the `Setup.ipynb` COS Notebook) you will also have access to a graphical interface (AKA a way to use windows and a point-and-click interface instead of the terminal for installing packages and managing environments).
-
+
+---
## Getting Help
-If you have an issue using these Notebooks, believe you have discovered an error in a Notebook or have suggestions for future Notebooks, please reach out to the [HST Help Desk](https://stsci.service-now.com/hst).
+If you have an issue using these Notebooks, believe you have discovered an error in a Notebook, or have suggestions for future Notebooks, please reach out to the [HST Help Desk](https://stsci.service-now.com/hst).