Skip to content

Commit 5bc44e4

Browse files
authored
Merge pull request #327 from bhilbert4/rgb-carina-reduce-disk-usage
Reduce disk space usage for Carina RGB notebook
2 parents fd733b8 + d49d84d commit 5bc44e4

File tree

2 files changed

+20
-27
lines changed

2 files changed

+20
-27
lines changed
-56.9 KB
Loading

notebooks/cross_instrument/rgb_imviz/imviz_rgb_carina.ipynb

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@
8383
"data_dir = '.'\n",
8484
"\n",
8585
"files = ['jw02731-o001_t017_nircam_clear-f090w_i2d.fits',\n",
86-
" 'jw02731-o001_t017_nircam_clear-f187n_i2d.fits',\n",
87-
" 'jw02731-o001_t017_nircam_clear-f200w_i2d.fits',\n",
88-
" 'jw02731-o001_t017_nircam_clear-f335m_i2d.fits',\n",
8986
" 'jw02731-o001_t017_nircam_clear-f444w_i2d.fits',\n",
9087
" 'jw02731-o001_t017_nircam_f444w-f470n_i2d.fits']\n",
9188
"\n",
@@ -113,7 +110,7 @@
113110
" warnings.simplefilter('ignore')\n",
114111
" with imviz.batch_load():\n",
115112
" for fn in files:\n",
116-
" imviz.load_data(f'{data_dir}/{fn}', data_label=fn[31:36])"
113+
" imviz.load(f'{data_dir}/{fn}', data_label=fn[31:36])"
117114
]
118115
},
119116
{
@@ -249,32 +246,17 @@
249246
"metadata": {},
250247
"outputs": [],
251248
"source": [
252-
"plot_options.layer = 'f090w[SCI,1]'\n",
249+
"plot_options.layer = 'f090w'\n",
253250
"plot_options.stretch_vmin = 4\n",
254251
"plot_options.stretch_vmax = 16\n",
255252
"plot_options.image_bias = 0.39\n",
256253
"\n",
257-
"plot_options.layer = 'f187n[SCI,1]'\n",
258-
"plot_options.stretch_vmin = 10\n",
259-
"plot_options.stretch_vmax = 16\n",
260-
"plot_options.image_bias = 0.74\n",
261-
"\n",
262-
"plot_options.layer = 'f200w[SCI,1]'\n",
263-
"plot_options.stretch_vmin = 1\n",
264-
"plot_options.stretch_vmax = 5\n",
265-
"plot_options.image_bias = 0.66\n",
266-
"\n",
267-
"plot_options.layer = 'f335m[SCI,1]'\n",
268-
"plot_options.stretch_vmin = 4\n",
269-
"plot_options.stretch_vmax = 27\n",
270-
"plot_options.image_bias = 0.67\n",
271-
"\n",
272-
"plot_options.layer = 'f444w[SCI,1]'\n",
254+
"plot_options.layer = 'f444w'\n",
273255
"plot_options.stretch_vmin = 1\n",
274256
"plot_options.stretch_vmax = 14\n",
275257
"plot_options.image_bias = 0.56\n",
276258
"\n",
277-
"plot_options.layer = 'f470n[SCI,1]'\n",
259+
"plot_options.layer = 'f470n'\n",
278260
"plot_options.stretch_vmin = 1\n",
279261
"plot_options.stretch_vmax = 6\n",
280262
"plot_options.image_bias = 0.60"
@@ -308,16 +290,27 @@
308290
"metadata": {},
309291
"outputs": [],
310292
"source": [
311-
"Image('./carina.png')\n",
312-
"# Image('./carina_preset.png')"
293+
"# Look at the image we just created\n",
294+
"#Image('./carina_preset.png') # commented out to avoid CI failures. Uncomment when running locally."
295+
]
296+
},
297+
{
298+
"cell_type": "code",
299+
"execution_count": null,
300+
"id": "36724c95-a24f-4fb7-a88e-7e330424cc23",
301+
"metadata": {},
302+
"outputs": [],
303+
"source": [
304+
"# Look at a previously-created version of the 3-color image\n",
305+
"Image('./carina.png')"
313306
]
314307
},
315308
{
316309
"cell_type": "markdown",
317-
"id": "95de69d3",
310+
"id": "93b4cee3-ba17-46c8-9267-fcbda55c49c4",
318311
"metadata": {},
319312
"source": [
320-
"<img style=\"float: right;\" src=\"https://raw.githubusercontent.com/spacetelescope/notebooks/master/assets/stsci_pri_combo_mark_horizonal_white_bkgd.png\" alt=\"Space Telescope Logo\" width=\"200px\"/>"
313+
"<img style=\"float: right;\" src=\"https://github.com/spacetelescope/jwst-pipeline-notebooks/raw/main/_static/stsci_footer.png\" alt=\"Space Telescope Logo\" width=\"200px\"/>"
321314
]
322315
},
323316
{
@@ -345,7 +338,7 @@
345338
"name": "python",
346339
"nbconvert_exporter": "python",
347340
"pygments_lexer": "ipython3",
348-
"version": "3.12.9"
341+
"version": "3.12.12"
349342
}
350343
},
351344
"nbformat": 4,

0 commit comments

Comments
 (0)