Skip to content

Commit

Permalink
Merge pull request #2 from lsst-dm/u/ebellm/add_comcam
Browse files Browse the repository at this point in the history
 add comcam
  • Loading branch information
ebellm authored Nov 20, 2024
2 parents 21225c7 + 3005d17 commit 02fa5db
Showing 1 changed file with 59 additions and 19 deletions.
78 changes: 59 additions & 19 deletions notebooks/AP_Data_Quality_Report.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"source": [
"# Parameters. Set defaults here.\n",
"\n",
"date = \"2024-09-04\"\n",
"instrument = \"LATISS\""
"date = \"2024-11-18\"\n",
"instrument = \"LSSTComCam\""
]
},
{
Expand All @@ -39,14 +39,17 @@
"outputs": [],
"source": [
"match instrument:\n",
" case \"LSSTComCam\":\n",
" sal_index = 1\n",
" n_detector = 9\n",
" case \"LATISS\":\n",
" sal_index = 2\n",
" n_detector = 1\n",
" case \"LSSTComCamSim\":\n",
" sal_index = 3\n",
" n_detector = 9\n",
" case _:\n",
" logger.error(f\"Unknown instrument {instrument}\")"
" raise ValueError(f\"Unknown instrument {instrument}\")"
]
},
{
Expand Down Expand Up @@ -159,17 +162,36 @@
"id": "12",
"metadata": {},
"outputs": [],
"source": [
"# Testing to find instruments\n",
"# query = f\"\"\"SELECT \"instrument\" FROM \"lsst.prompt.prod.initialPviSummaryMetrics\" \"\"\"\n",
"\n",
"# print(query)\n",
"# initialPviSummaryMetrics = await client.influx_client.query(query)\n",
"# set(initialPviSummaryMetrics['instrument'])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "13",
"metadata": {},
"outputs": [],
"source": [
"# Testing to find good dates\n",
"# query = f\"\"\"SELECT * FROM \"lsst.prompt.prod.initialPviSummaryMetrics\" WHERE \"instrument\" = '{instrument}' \"\"\"\n",
"# query = f\"\"\"SELECT \"instrument\" FROM \"lsst.prompt.prod.initialPviSummaryMetrics\" \"\"\"\n",
"\n",
"\n",
"# print(query)\n",
"# initialPviSummaryMetrics = await client.influx_client.query(query)"
"# initialPviSummaryMetrics = await client.influx_client.query(query)\n",
"# set(initialPviSummaryMetrics['instrument'])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "13",
"id": "14",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -181,7 +203,17 @@
{
"cell_type": "code",
"execution_count": null,
"id": "14",
"id": "15",
"metadata": {},
"outputs": [],
"source": [
"# initialPviSummaryMetrics"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "16",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -206,7 +238,7 @@
},
{
"cell_type": "markdown",
"id": "15",
"id": "17",
"metadata": {},
"source": [
"## Photometric Zeropoint vs. Time, by Filter"
Expand All @@ -215,7 +247,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "16",
"id": "18",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -224,7 +256,7 @@
},
{
"cell_type": "markdown",
"id": "17",
"id": "19",
"metadata": {},
"source": [
"## Sky Brightness vs. Time, by Filter"
Expand All @@ -233,7 +265,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "18",
"id": "20",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -243,7 +275,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "19",
"id": "21",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -252,7 +284,7 @@
},
{
"cell_type": "markdown",
"id": "20",
"id": "22",
"metadata": {},
"source": [
"## Seeing vs. Time, by Filter"
Expand All @@ -261,7 +293,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "21",
"id": "23",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -270,7 +302,7 @@
},
{
"cell_type": "markdown",
"id": "22",
"id": "24",
"metadata": {},
"source": [
"## PSF Parameters vs. Time, by Filter"
Expand All @@ -279,7 +311,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "23",
"id": "25",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -289,7 +321,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "24",
"id": "26",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -299,7 +331,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "25",
"id": "27",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -309,7 +341,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "26",
"id": "28",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -318,13 +350,21 @@
},
{
"cell_type": "markdown",
"id": "27",
"id": "29",
"metadata": {},
"source": [
"## Detection efficiency for point sources vs. mag, by filter.\n",
"\n",
"This calculation requires a source injection campaign."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "30",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 02fa5db

Please sign in to comment.