Skip to content

Commit

Permalink
Add a tag "hide-cell" to developer notes metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay committed Dec 15, 2023
1 parent 5f8f0c8 commit a4d36db
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 15 deletions.
56 changes: 50 additions & 6 deletions notebooks/ifu_optimal/ifu_optimal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"source": [
"# NIRSpec IFU Optimal Point Source Extraction"
]
Expand Down Expand Up @@ -310,7 +318,15 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"source": [
"*Developer Note:* The units of the Cubeviz \"Sum\" collapse method (and all other spectra below) need to be multiplied by the pixel area in sr to yield flux units (MJy) instead of surface brightness units (MJy/sr)."
]
Expand Down Expand Up @@ -385,7 +401,15 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"source": [
"*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 @@ -510,7 +534,13 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"outputs": [],
"source": [
"BoxPath = \"https://data.science.stsci.edu/redirect/JWST/jwst-data_analysis_tools/IFU_optimal_extraction/\"\n",
Expand Down Expand Up @@ -538,7 +568,15 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"source": [
"*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 All @@ -559,7 +597,13 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"outputs": [],
"source": [
"# Flip model PSF left-right to match data.\n",
Expand Down
73 changes: 64 additions & 9 deletions notebooks/mos_spectroscopy_advanced/MOSspec_advanced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"# MOS Spectroscopy of Extragalactic Field\n",
"\n",
Expand Down Expand Up @@ -169,7 +175,15 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"source": [
"**Developer note**:<br>\n",
"The download of JWST data could happen directly from MAST, but the observations are organized in separate folders, while Mosviz wants the data in a single folder. So we go with a box download."
Expand Down Expand Up @@ -261,7 +275,15 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"source": [
"**Developer note**<br>\n",
"Is there a way to get out an uncertainty array from the extraction?<br>\n",
Expand Down Expand Up @@ -497,7 +519,15 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"source": [
"**Developer note**<br>\n",
"The line list plugin cannot yet be accessed by the notebook. I can do it in the GUI though."
Expand Down Expand Up @@ -873,7 +903,13 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"outputs": [],
"source": [
"plt.figure(figsize=[10, 6])\n",
Expand Down Expand Up @@ -907,11 +943,30 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"## Find the best-fitting template\n",
"It needs a list of templates and the redshift of the observed galaxy. For the templates, I am using a set of model SEDs generated with Bruzual & Charlot stellar population models, emission lines, and dust attenuation as described in Pacifici et al. (2012).\n",
"\n",
"It needs a list of templates and the redshift of the observed galaxy. For the templates, I am using a set of model SEDs generated with Bruzual & Charlot stellar population models, emission lines, and dust attenuation as described in Pacifici et al. (2012)."
]
},
{
"cell_type": "markdown",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-cell"
]
},
"source": [
"**Developer note**<br>\n",
"Maybe there is a way to speed this up (maybe using astropy model_sets)? This fit is run with 100 models, but ideally, if we want to extract physical parameters from this, we would need at least 10,000 models. A dictionary structure with meaningful keys (which can be, e.g., tuples of the relevant physical parameters) could be better than a list? It could make later analysis much clearer than having to map from the list indices back to the relevant parameters."
]
Expand Down Expand Up @@ -1069,7 +1124,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit a4d36db

Please sign in to comment.