-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Camilla Pacifici
committed
Nov 17, 2024
1 parent
8e4eade
commit 4b603cb
Showing
2 changed files
with
12 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "e5f5559e-f4b3-4118-b3ec-930b787faad9", | ||
"metadata": {}, | ||
"source": [ | ||
"# Redshift and Template Fitting" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "e6c242e1", | ||
"metadata": {}, | ||
"source": [ | ||
"# Redshift and Template Fitting\n", | ||
"\n", | ||
"This notebook covers basic examples on how a user can measure the redshift of a source using the visualization tool [Jdaviz](https://jdaviz.readthedocs.io/en/latest/) or programmatically with [Specutils](https://specutils.readthedocs.io/en/latest/).\n", | ||
"\n", | ||
"**Use case:** measure the redshift of a galaxy from its spectrum using 2 different methods. \n", | ||
|
@@ -27,7 +33,7 @@ | |
" - [Run the cross correlation function](#run_crosscorr)\n", | ||
"\n", | ||
"**Author**: Camilla Pacifici ([email protected])<br>\n", | ||
"**Updated**: September 14, 2023" | ||
"**Updated**: November 18, 2024" | ||
] | ||
}, | ||
{ | ||
|
@@ -174,7 +180,7 @@ | |
"# Select a specific directory on your machine or a temporary directory\n", | ||
"data_dir = tempfile.gettempdir()\n", | ||
"# Get the file from MAST\n", | ||
"fn = \"jw02736-o007_s09239_nirspec_f170lp-g235m_x1d.fits\"\n", | ||
"fn = \"jw02736-o007_s000009239_nirspec_f170lp-g235m_x1d.fits\"\n", | ||
"result = Observations.download_file(f\"mast:JWST/product/{fn}\", local_path=f'{data_dir}/{fn}')\n", | ||
"\n", | ||
"fn_template = download_file('https://stsci.box.com/shared/static/3rkurzwl0l79j70ddemxafhpln7ljle7.dat', cache=True)" | ||
|
@@ -656,7 +662,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.13" | ||
"version": "3.11.10" | ||
} | ||
}, | ||
"nbformat": 4, | ||
|
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 +1 @@ | ||
jdaviz | ||
jdaviz>=4.0 |