Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Jul 14, 2021
1 parent cc29e3d commit 650d13c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions notebooks/ImvizExample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@
},
{
"cell_type": "markdown",
"id": "ee3e07b9",
"metadata": {},
"source": [
"It is also possible to programatically pass a `regions` shape, a `photutils` aperture shape, or a Numpy mask into Imviz."
Expand All @@ -299,18 +300,19 @@
{
"cell_type": "code",
"execution_count": null,
"id": "56d11528",
"metadata": {},
"outputs": [],
"source": [
"c = SkyCoord(ra=266.670575, dec=-29.038362, unit='deg')\n",
"c = SkyCoord('00h24m07.33s -71d52m50.71s')\n",
"\n",
"# photutils aperture\n",
"my_aper = CircularAperture((600, 400), r=10)\n",
"my_aper_sky = SkyCircularAperture(c, 50 * u.arcsec)\n",
"my_aper_sky = SkyCircularAperture(c, 1 * u.arcsec)\n",
"\n",
"# regions shape\n",
"my_reg = CirclePixelRegion(center=PixCoord(x=600, y=200), radius=20)\n",
"my_reg_sky = CircleSkyRegion(c, Angle(100, u.arcsec))\n",
"my_reg_sky = CircleSkyRegion(c, Angle(2, u.arcsec))\n",
"\n",
"# Numpy mask\n",
"idx = (np.array([350, 350, 350, 350, 350, 350, 351, 351, 351, 351, 352, 352, 352,\n",
Expand Down

0 comments on commit 650d13c

Please # to comment.