diff --git a/notebooks/AP_Data_Quality_Report.ipynb b/notebooks/AP_Data_Quality_Report.ipynb index 4d59e30..acf4c8f 100644 --- a/notebooks/AP_Data_Quality_Report.ipynb +++ b/notebooks/AP_Data_Quality_Report.ipynb @@ -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\"" ] }, { @@ -39,6 +39,9 @@ "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", @@ -46,7 +49,7 @@ " sal_index = 3\n", " n_detector = 9\n", " case _:\n", - " logger.error(f\"Unknown instrument {instrument}\")" + " raise ValueError(f\"Unknown instrument {instrument}\")" ] }, { @@ -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": [ @@ -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": [ @@ -206,7 +238,7 @@ }, { "cell_type": "markdown", - "id": "15", + "id": "17", "metadata": {}, "source": [ "## Photometric Zeropoint vs. Time, by Filter" @@ -215,7 +247,7 @@ { "cell_type": "code", "execution_count": null, - "id": "16", + "id": "18", "metadata": {}, "outputs": [], "source": [ @@ -224,7 +256,7 @@ }, { "cell_type": "markdown", - "id": "17", + "id": "19", "metadata": {}, "source": [ "## Sky Brightness vs. Time, by Filter" @@ -233,7 +265,7 @@ { "cell_type": "code", "execution_count": null, - "id": "18", + "id": "20", "metadata": {}, "outputs": [], "source": [ @@ -243,7 +275,7 @@ { "cell_type": "code", "execution_count": null, - "id": "19", + "id": "21", "metadata": {}, "outputs": [], "source": [ @@ -252,7 +284,7 @@ }, { "cell_type": "markdown", - "id": "20", + "id": "22", "metadata": {}, "source": [ "## Seeing vs. Time, by Filter" @@ -261,7 +293,7 @@ { "cell_type": "code", "execution_count": null, - "id": "21", + "id": "23", "metadata": {}, "outputs": [], "source": [ @@ -270,7 +302,7 @@ }, { "cell_type": "markdown", - "id": "22", + "id": "24", "metadata": {}, "source": [ "## PSF Parameters vs. Time, by Filter" @@ -279,7 +311,7 @@ { "cell_type": "code", "execution_count": null, - "id": "23", + "id": "25", "metadata": {}, "outputs": [], "source": [ @@ -289,7 +321,7 @@ { "cell_type": "code", "execution_count": null, - "id": "24", + "id": "26", "metadata": {}, "outputs": [], "source": [ @@ -299,7 +331,7 @@ { "cell_type": "code", "execution_count": null, - "id": "25", + "id": "27", "metadata": {}, "outputs": [], "source": [ @@ -309,7 +341,7 @@ { "cell_type": "code", "execution_count": null, - "id": "26", + "id": "28", "metadata": {}, "outputs": [], "source": [ @@ -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": {