Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update file name #263

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading