Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 38 additions & 2 deletions DP2/200_Data_products/202_Images/202_1_Deep_coadds.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1826,16 +1826,52 @@
"outputs": [],
"source": [
"del ref, dataId, use_tract, use_patch, use_columns, objects, tx\n",
"del dataset_refs, deep_coadd"
"del dataset_refs"
]
},
{
"cell_type": "markdown",
"id": "c06ebdd7-482a-43a6-aed8-4ed053c8d184",
"metadata": {},
"source": [
"## 6. Save `deep_coadd` to file\n",
"`deep_coadd` is a `CellCoadd` object type and has an associated method to write the object to file, as described in the [API](https://images.lsst.io/api/lsst.images.cells.CellCoadd.html#lsst.images.cells.CellCoadd.write). Uncomment the following cell to save `deep_coadd` as a FITS file."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "255b693c-4767-4152-addf-1d98a7276783",
"metadata": {},
"outputs": [],
"source": [
"# deep_coadd.image.write(\n",
"# \"deep_coadd_{}_{}_{}_{}.fits\".format(\n",
"# deep_coadd.skymap,\n",
"# deep_coadd.tract,\n",
"# deep_coadd.patch.id,\n",
"# deep_coadd.band\n",
"# )\n",
"# )"
]
},
{
"cell_type": "markdown",
"id": "8270ac15-73ee-4e87-ab72-f0a12b3c455f",
"metadata": {},
"source": [
"Clean up."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7cf73981-189c-401d-bde8-e6e8fc26b31e",
"metadata": {},
"outputs": [],
"source": []
"source": [
"del deep_coadd"
]
}
],
"metadata": {
Expand Down
Loading