Skip to content

Commit 7057dac

Browse files
updating nb 9
1 parent 669f433 commit 7057dac

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

DP1/100_How_to_Use_RSP_Tools/103_Image_access_and_display/103_9_Image_stamps.ipynb

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
"From the `lsst` package, import modules for accessing the Table Access Protocol (TAP) service, image display functions, and the Simple Image Access (SIA) service from the LSST Science Pipelines (<a href=\"https://pipelines.lsst.io/\">pipelines.lsst.io</a>).\n",
8484
"\n",
8585
"Functions from `pyvo` are imported to perform and parse results from Datalink and SODA queries. This is used to obtain image products cutouts from the SIA service.\n",
86-
"\n"
86+
"\n",
87+
"The `reproject` package is an `astropy`-adjacent package that provides access to coordinate transformations between images with world coordinate systems (WCS), and will be used to align visit images with different WCS. "
8788
]
8889
},
8990
{
@@ -193,7 +194,7 @@
193194
"id": "f8f5a54d-96ce-4323-8d20-98ad6b57ddee",
194195
"metadata": {},
195196
"source": [
196-
"#### 1.2.2 Set up the temporary directory\n",
197+
"#### 1.2.2 Set up a temporary directory\n",
197198
"\n",
198199
"The Rubin cutout service allows the user to save cutouts as fits files locally on the Rubin Science Platform (RSP).\n",
199200
"\n",
@@ -267,7 +268,9 @@
267268
"id": "f52f721d-1983-4605-8161-8f29187b5757",
268269
"metadata": {},
269270
"source": [
270-
"#### 1.2.3 make function to generate a gif from png files"
271+
"#### 1.2.3 Generate a gif from pngs\n",
272+
"\n",
273+
"The function below will generate a gif to visualize all of the png cutout files produced in the notebook."
271274
]
272275
},
273276
{
@@ -300,7 +303,7 @@
300303
"id": "82f46573-f165-479a-b94e-1c025fd8bcca",
301304
"metadata": {},
302305
"source": [
303-
"#### 1.2.4. cutouts\n",
306+
"#### 1.2.4. Generate cutouts\n",
304307
"Define a function to get an image cutout from the cutout service."
305308
]
306309
},
@@ -331,7 +334,7 @@
331334
"id": "3d998864-d33a-449d-a28a-42e94607f901",
332335
"metadata": {},
333336
"source": [
334-
"#### 1.2.4. subplots\n",
337+
"#### 1.2.4. Set up subplots\n",
335338
"Define a function to organize the display with matplotlib of many cutouts."
336339
]
337340
},
@@ -432,7 +435,7 @@
432435
"id": "e303cf67-36d1-4d4c-8527-76561dd528b3",
433436
"metadata": {},
434437
"source": [
435-
"### 2.1.1 Query the SIA service for images\n"
438+
"#### 2.1.1 Query the SIA service for images\n"
436439
]
437440
},
438441
{
@@ -853,6 +856,16 @@
853856
"> **Figure 3**: Many cutouts of the science visit images of the DIA object, in chronological order, after being reprojected onto the same WCS as the template image cutout (right). "
854857
]
855858
},
859+
{
860+
"cell_type": "markdown",
861+
"id": "4340da3a-3f25-4007-8615-c204d3ef3e23",
862+
"metadata": {},
863+
"source": [
864+
"## 4. Visualize cutouts with gif\n",
865+
"\n",
866+
"Below, the cell will use the `make_gif` function defined in Section 1.2.3 to make a single gif movie out of all the pngs in the folder from the visit images in chronological order."
867+
]
868+
},
856869
{
857870
"cell_type": "code",
858871
"execution_count": null,

0 commit comments

Comments
 (0)