Skip to content

Commit

Permalink
Update file name
Browse files Browse the repository at this point in the history
  • Loading branch information
Camilla Pacifici committed Nov 17, 2024
1 parent 8e4eade commit 4b603cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions notebooks/NIRSpec/galaxy_redshift/redshift_fitting.ipynb
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",
Expand All @@ -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"
]
},
{
Expand Down Expand Up @@ -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)"
Expand Down Expand Up @@ -656,7 +662,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion notebooks/NIRSpec/galaxy_redshift/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
jdaviz
jdaviz>=4.0

0 comments on commit 4b603cb

Please sign in to comment.