Skip to content

Commit

Permalink
Test Times Square.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkalmbach committed Mar 6, 2025
1 parent 141b8e8 commit 22574ba
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 0 deletions.
218 changes: 218 additions & 0 deletions notebooks/WET/WET-003/WET-003-ComCam.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "fc2ad8f9-90c0-4b72-9cb5-b9b29eac8678",
"metadata": {},
"source": [
"# WET-003: Donut Vignetting Test\n",
"\n",
"Owner: **Bryce Kalmbach** <br>\n",
"Last Verified to Run: **2025-02-28** <br>\n",
"Software Version:\n",
" - `ts_wep`: **14.0.0** \n",
" - `lsst_distrib`: **w_2025_09**"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a5e0fbcf",
"metadata": {},
"outputs": [],
"source": [
"# Times Square Parameters\n",
"collection_name = 'u/brycek/aosBaseline_tie'"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1dc7ca3a-b9f6-484c-9670-8534617bac0b",
"metadata": {
"execution": {
"iopub.execute_input": "2025-03-04T22:59:44.484135Z",
"iopub.status.busy": "2025-03-04T22:59:44.483907Z",
"iopub.status.idle": "2025-03-04T22:59:45.678409Z",
"shell.execute_reply": "2025-03-04T22:59:45.677979Z",
"shell.execute_reply.started": "2025-03-04T22:59:44.484119Z"
}
},
"outputs": [],
"source": [
"import numpy as np\n",
"from matplotlib import pyplot as plt\n",
"from lsst.daf.butler import Butler\n",
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a5dde02a-da5c-45b6-9a53-4945cfc5d82b",
"metadata": {
"execution": {
"iopub.execute_input": "2025-03-04T22:59:45.679231Z",
"iopub.status.busy": "2025-03-04T22:59:45.679092Z",
"iopub.status.idle": "2025-03-04T22:59:45.892721Z",
"shell.execute_reply": "2025-03-04T22:59:45.892304Z",
"shell.execute_reply.started": "2025-03-04T22:59:45.679218Z"
}
},
"outputs": [],
"source": [
"butler = Butler('/repo/main')"
]
},
{
"cell_type": "markdown",
"id": "3857a4e3-ac08-45de-8b5f-2f5683d7e4fd",
"metadata": {},
"source": [
"## TIE"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0596b008-4095-4e84-85df-ea38f4d8d83d",
"metadata": {
"execution": {
"iopub.execute_input": "2025-03-04T23:28:23.080271Z",
"iopub.status.busy": "2025-03-04T23:28:23.079798Z",
"iopub.status.idle": "2025-03-04T23:28:23.165219Z",
"shell.execute_reply": "2025-03-04T23:28:23.164900Z",
"shell.execute_reply.started": "2025-03-04T23:28:23.080244Z"
}
},
"outputs": [],
"source": [
"aos_visit_tables_raw = butler.query_datasets('aggregateAOSVisitTableRaw', collections=collection_name)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a19ec612-0491-426e-8c39-dc28ec8e8982",
"metadata": {
"execution": {
"iopub.execute_input": "2025-03-04T23:33:33.581322Z",
"iopub.status.busy": "2025-03-04T23:33:33.580954Z",
"iopub.status.idle": "2025-03-04T23:41:22.764339Z",
"shell.execute_reply": "2025-03-04T23:41:22.763906Z",
"shell.execute_reply.started": "2025-03-04T23:33:33.581299Z"
}
},
"outputs": [],
"source": [
"well_sampled_data_ids = []\n",
"for raw_table_ref in butler.registry.queryDatasets('aggregateAOSVisitTableRaw', collections=collection_name):\n",
" raw_table = butler.get(raw_table_ref)\n",
" names, counts = np.unique(raw_table['detector'], return_counts=True)\n",
" if np.min(counts) >= 10:\n",
" well_sampled_data_ids.append(raw_table_ref.dataId)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a79250c7-9a6d-41be-a254-be10f07f40fc",
"metadata": {
"execution": {
"iopub.execute_input": "2025-03-04T23:54:50.038468Z",
"iopub.status.busy": "2025-03-04T23:54:50.038204Z",
"iopub.status.idle": "2025-03-04T23:54:50.041391Z",
"shell.execute_reply": "2025-03-04T23:54:50.041068Z",
"shell.execute_reply.started": "2025-03-04T23:54:50.038451Z"
}
},
"outputs": [],
"source": [
"len(well_sampled_data_ids)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e49e5a5a-fbf8-43ba-8a76-7cea0cad3b13",
"metadata": {
"execution": {
"iopub.execute_input": "2025-03-04T23:55:25.407893Z",
"iopub.status.busy": "2025-03-04T23:55:25.407492Z",
"iopub.status.idle": "2025-03-04T23:55:25.485624Z",
"shell.execute_reply": "2025-03-04T23:55:25.485256Z",
"shell.execute_reply.started": "2025-03-04T23:55:25.407877Z"
}
},
"outputs": [],
"source": [
"raw_table = butler.get('aggregateAOSVisitTableRaw', dataId=well_sampled_data_ids[0], collections=collection_name)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "414287bd-a086-4fe0-a472-0124ca8a6119",
"metadata": {
"execution": {
"iopub.execute_input": "2025-03-04T23:56:53.172972Z",
"iopub.status.busy": "2025-03-04T23:56:53.172770Z",
"iopub.status.idle": "2025-03-04T23:56:53.178372Z",
"shell.execute_reply": "2025-03-04T23:56:53.178033Z",
"shell.execute_reply.started": "2025-03-04T23:56:53.172958Z"
}
},
"outputs": [],
"source": [
"raw_table[:3]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "bd4130e1-c6b7-4a0c-b546-3dfd8e086eb0",
"metadata": {
"execution": {
"iopub.execute_input": "2025-03-04T23:57:40.174628Z",
"iopub.status.busy": "2025-03-04T23:57:40.174066Z",
"iopub.status.idle": "2025-03-04T23:57:40.262826Z",
"shell.execute_reply": "2025-03-04T23:57:40.262419Z",
"shell.execute_reply.started": "2025-03-04T23:57:40.174611Z"
}
},
"outputs": [],
"source": [
"plt.scatter(raw_table['thx_CCS_intra'], raw_table['thy_CCS_intra'], c=raw_table['zk_CCS'][:,5])"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "02714b61-cb35-4ab7-aa40-65aacb6c24f3",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "LSST",
"language": "python",
"name": "lsst"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
13 changes: 13 additions & 0 deletions notebooks/WET/WET-003/WET-003-ComCam.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
title: Date and Datetimes
description: Demonstration of date and datetime parameters.
authors:
- name: Bryce Kalmbach
slack: brycek
tags:
- comcam
- WET
parameters:
collection_name:
type: string
description: Butler collection.
default: "u/brycek/aosBaseline_tie"

0 comments on commit 22574ba

Please sign in to comment.