Skip to content

Commit

Permalink
Updates to screenshots and requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Camilla Pacifici committed Jul 10, 2024
1 parent 65068ed commit d1ff04f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
35 changes: 19 additions & 16 deletions notebooks/NIRSpec/ifu_optimal/ifu_optimal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"**Use case:** optimal spectral extraction; method by [Horne (1986)](https://ui.adsabs.harvard.edu/abs/1986PASP...98..609H/abstract).\n",
"\n",
"**Data:** JWST NIRSpec IFU data; point sources.\n",
"\n",
"**Tools:** jwst, webbpsf, matplotlib, scipy, custom functions.\n",
"\n",
"**Cross-intrument:** any spectrograph. \n",
"\n",
"**Use case:** optimal spectral extraction; method by [Horne (1986)](https://ui.adsabs.harvard.edu/abs/1986PASP...98..609H/abstract).</br>\n",
"**Data:** JWST NIRSpec IFU data; point sources.</br>\n",
"**Tools:** jwst, webbpsf, matplotlib, scipy, custom functions.</br>\n",
"**Cross-intrument:** any spectrograph. </br>\n",
"**Documentation:** This notebook is part of a STScI's larger [post-pipeline Data Analysis Tools Ecosystem](https://jwst-docs.stsci.edu/jwst-post-pipeline-data-analysis)."
]
},
Expand Down Expand Up @@ -250,9 +246,7 @@
" \n",
"print(\"\\nGood Data Region\")\n",
"try:\n",
" region2 = cubeviz_data.get_selection_definition(\n",
" \"Subset 2\", format=\"astropy-regions\"\n",
" )\n",
" region2 = cubeviz.get_interactive_regions()['Subset 2']\n",
" print(region2)\n",
" region2_exists = True\n",
" data_xrange = [\n",
Expand Down Expand Up @@ -300,8 +294,8 @@
"\n",
"print(\"\\nSource\")\n",
"try:\n",
" spectrum_subset1 = cubeviz.get_data(cubeviz.data_labels[0].label,\n",
" spatial_subset=\"Subset 1\", function=\"mean\")\n",
" spectrum_subset1 = cubeviz.get_data(cubeviz.data_labels[0],\n",
" spatial_subset=\"Subset 1\", function=\"sum\")\n",
" print(spectrum_subset1)\n",
"except Exception:\n",
" print(\"There is no Subset 1 selected in the spectrum viewer.\")\n",
Expand Down Expand Up @@ -411,7 +405,7 @@
]
},
"source": [
"*Developer Note:* Is there a way to retrieve the coordinates (RA, Dec) of the Subset1 region, for use in a SkyCircularAperture?"
"**Developer Note:** Is there a way to retrieve the coordinates (RA, Dec) of the Subset1 region, for use in a SkyCircularAperture?"
]
},
{
Expand Down Expand Up @@ -578,7 +572,7 @@
]
},
"source": [
"*Developer Note:* The file Webbpsf_ifucube.fits is large (946.3 MB) and takes some time to load from Box.\n",
"**Developer Note:** The file Webbpsf_ifucube.fits is large (946.3 MB) and takes some time to load from Box.\n",
"It might behoove the user to download it to a local directory and retrieve it from there."
]
},
Expand Down Expand Up @@ -747,6 +741,15 @@
"specviz.y_limits(0.0, clip_level / 7)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The viewer looks like this:\n",
"\n",
"<img src=\"sdssj1652_nirspec_ifu_specviz.png\" alt=\"Specviz, an astronomy data analysis viewer, showing the emission lines in the Quasar\" width=\"600\"/>"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -785,7 +788,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.6"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/NIRSpec/ifu_optimal/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy>=1.26.2
scipy>=1.11.4
jdaviz>=3.8.0
numpy>=1.26.4
scipy>=1.13.1
jdaviz>=3.10.2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1ff04f

Please sign in to comment.