Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add comcam #2

Merged
merged 1 commit into from
Nov 20, 2024
Merged
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
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
Loading