forked from spacetelescope/hst_notebooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WFC3 notebook 'wfc3_image_displayer_analyzer.ipynb' (spacetelesco…
…pe#105) * updated _toc.yml and _config.yml files * added trailing spaces to display_image.py, row_column_stats.py * updated notebook-level requirements.txt file. * wfc3_image_displayer_analyzer.ipynb: cleared notebook outputs. * Update display_image.py edits for PEP8 compliance and removing `ginga.util` dependence * Update row_column_stats.py changes for PEP8 compliance * Update row_column_stats.py last missing PEP8 changes * Update requirements.txt removing version pins and adding jupyter * Update wfc3_image_displayer_analyzer.ipynb changes for PEP8 compliance and some minor formatting * Update README.md changes for new information about creating a virtual environment * Update wfc3_image_displayer_analyzer.ipynb missed some PEP8 stuff; hopefully the last commit 🫠 --------- Co-authored-by: bjkuhn <[email protected]>
- Loading branch information
Showing
7 changed files
with
305 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
In this tutorial, we present `display_image`, a tool for displaying full images with metadata, individual WFC3/UVIS chip images, a section of an image with various colormaps/scaling, and individual WFC3/IR `ima` reads. In addition, we present `row_column_stats`, a tool for computing row and column statistics for the types of WFC3 images previously mentioned. | ||
In this tutorial, we present `display_image`, a tool for displaying full images with metadata, individual WFC3/UVIS chip images, | ||
a section of an image with various colormaps/scaling, and individual WFC3/IR `ima` reads. In addition, we present | ||
`row_column_stats`, a tool for computing row and column statistics for the types of WFC3 images previously mentioned. | ||
|
||
This directory, once unzipped, should contain this `README.md`, | ||
the image displayer tool `display_image.py`, the row and column statistic | ||
tool `row_column_stats.py`, and the Jupyter Notebook tutorial | ||
`wfc3_imageanalysis.ipynb`. Both of these tools are meant to be used inside of | ||
a Jupyter Notebook. | ||
tool `row_column_stats.py`, a `requirements.txt` file for creating a virtual | ||
environment, and the Jupyter Notebook tutorial `wfc3_imageanalysis.ipynb`. | ||
These tools are meant to be used inside a Jupyter Notebook. | ||
|
||
In order to run the Jupyter Notebook you must create the virtual | ||
environment in [WFC3 Library's](https://github.com/spacetelescope/WFC3Library) | ||
installation instructions. No additional packages are required to run this | ||
Jupyter Notebook. | ||
To run this Jupyter Notebook, you must have created a virtual environment that contains (at minimum) the packages listed in the | ||
requirements.txt file that is included within the repository. We recommend creating a new conda environment using the requirements file: | ||
|
||
These tools (specifically `display_image`) look much better in Jupyter Lab | ||
rather than the classic Jupyter Notebook. If your environment has Jupyter Lab | ||
installed it's recommended you use that to run the `.ipynb` file. If you're | ||
interested in adding Jupyter Lab to your environment see the install | ||
instructions on the [Jupyter website](https://jupyter.org/install). | ||
``` | ||
$ conda create -n img_disp python=3.11 | ||
$ conda activate img_disp | ||
$ pip install -r requirements.txt | ||
``` | ||
|
||
Questions or concerns should be sent to the [HST Help Desk](https://stsci.service-now.com/hst). | ||
The tools in this notebook (specifically `display_image`) look much | ||
better in Jupyter Lab rather than in the classic Jupyter Notebook. If your | ||
environment has Jupyter Lab installed it's recommended you use that to run the | ||
.ipynb file. See the [Jupyter website](https://jupyter.org/install) for more info. | ||
|
||
Please submit any questions or comments to the [WFC3 Help Desk](https://stsci.service-now.com/hst). | ||
--------------------------------------------------------------------- |
Oops, something went wrong.