Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 7362f74

Browse files
author
Leanne Guy
committed
WIP
1 parent 3a2e91d commit 7362f74

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

08_Interactive_Image_Visualization.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,15 @@
461461
"outputs": [],
462462
"source": [
463463
"# Use the bokeh plot style\n",
464-
"plot_style = plot_style_bkh\n",
464+
"plot_style = plot_style_bkh"
465+
]
466+
},
467+
{
468+
"cell_type": "code",
469+
"execution_count": null,
470+
"metadata": {},
471+
"outputs": [],
472+
"source": [
465473
"hv.Scatter(data, \n",
466474
" kdims=['gmi'], vdims=['mag_g_cModel']\n",
467475
" ).opts(invert_yaxis=True,\n",
@@ -619,7 +627,7 @@
619627
"cell_type": "markdown",
620628
"metadata": {},
621629
"source": [
622-
"LSST’s image classes (Image, Mask, MaskedImage, and Exposure) use a pixel indexing convention that is different from both the convention used by `numpy.ndarray` objects and the convention used in FITS images. LSST typically labels the center of the lower left pixel of an image (0, 0). Consequently, we need to flip the image data array, "
630+
"LSST’s image classes (Image, Mask, MaskedImage, and Exposure) use a pixel indexing convention that is different from both the convention used by `numpy.ndarray` objects and the convention used in FITS images. LSST typically labels the center of the lower left pixel of an image (0, 0). Consequently, we need to flip the image data array."
623631
]
624632
},
625633
{
@@ -629,7 +637,6 @@
629637
"outputs": [],
630638
"source": [
631639
"scaledImage = np.flipud(scaledImage)\n",
632-
"# bounds_img = (0, calexp.getDimensions()[1], calexp.getDimensions()[0],0)\n",
633640
"bounds_img = (0, 0, calexp.getDimensions()[0], calexp.getDimensions()[1])"
634641
]
635642
},
@@ -750,7 +757,7 @@
750757
"metadata": {},
751758
"outputs": [],
752759
"source": [
753-
"rasterize(img).opts(cmap = 'Greys_r') * detections"
760+
"rasterize(img) * detections"
754761
]
755762
},
756763
{

0 commit comments

Comments
 (0)