Skip to content

Commit 46241a9

Browse files
authored
Merge pull request #55 from lsst/u/jcarlin/patch_105_3
Update 105_3 to work with newer weeklies
2 parents 886d5b5 + 492d8f0 commit 46241a9

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

DP1/100_How_to_Use_RSP_Tools/105_Image_reprocessing/105_3_Forced_Photometry.ipynb

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"Data Release: <a href=\"https://dp1.lsst.io/\">Data Preview 1</a> <br>\n",
2020
"Container Size: large <br>\n",
2121
"LSST Science Pipelines version: Release r29.1.1 <br>\n",
22-
"Last verified to run: 2025-06-20 <br>\n",
22+
"Last verified to run: 2025-08-28 <br>\n",
2323
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2424
]
2525
},
@@ -83,6 +83,7 @@
8383
"outputs": [],
8484
"source": [
8585
"import numpy as np\n",
86+
"import astropy.units as u\n",
8687
"from lsst.daf.butler import Butler\n",
8788
"from lsst.pipe.tasks.measurementDriver import (\n",
8889
" ForcedMeasurementDriverConfig,\n",
@@ -222,6 +223,25 @@
222223
"table"
223224
]
224225
},
226+
{
227+
"cell_type": "markdown",
228+
"id": "25a36031-e614-4cf0-a2fd-9197196150cb",
229+
"metadata": {},
230+
"source": [
231+
"The forced measurement driver requires the input coordinates to have units attached. Attach units to the RA, Dec columns."
232+
]
233+
},
234+
{
235+
"cell_type": "code",
236+
"execution_count": null,
237+
"id": "76cd8d9f-d354-4c3c-a042-5707fc25e1e7",
238+
"metadata": {},
239+
"outputs": [],
240+
"source": [
241+
"table['coord_ra'].unit = u.degree\n",
242+
"table['coord_dec'].unit = u.degree"
243+
]
244+
},
225245
{
226246
"cell_type": "markdown",
227247
"id": "0abd209b-d6b2-4ec5-95d5-7171bb1465fc",
@@ -331,14 +351,6 @@
331351
"\n",
332352
"This functionality is limited to a handful of measurement plugins (for example, model-fitting algorithms will not work with this task because they require more ancillary information than it is set up to receive). Nonetheless, it offers a quick and easy way to extract measurements at arbitrary positions."
333353
]
334-
},
335-
{
336-
"cell_type": "code",
337-
"execution_count": null,
338-
"id": "b1f77da3-481b-4cf3-9466-eefff1a43bbf",
339-
"metadata": {},
340-
"outputs": [],
341-
"source": []
342354
}
343355
],
344356
"metadata": {

0 commit comments

Comments
 (0)