2023-04-24 13:03:23 +02:00
|
|
|
{
|
|
|
|
"cells": [
|
2023-05-04 13:47:33 +02:00
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Import supporting package"
|
|
|
|
]
|
|
|
|
},
|
2023-04-24 13:03:23 +02:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 19:16:35 +02:00
|
|
|
"execution_count": 1,
|
2023-04-24 13:03:23 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 13:47:33 +02:00
|
|
|
"import xarray as xr\n",
|
|
|
|
"import numpy as np\n",
|
|
|
|
"\n",
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
"\n",
|
|
|
|
"from DataContainer.ReadData import read_hdf5_file\n",
|
|
|
|
"from Analyser.ImagingAnalyser import ImageAnalyser\n",
|
|
|
|
"from Analyser.FitAnalyser import FitAnalyser\n",
|
|
|
|
"\n",
|
|
|
|
"imageAnalyser = ImageAnalyser()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Start a client for parallel computing"
|
2023-04-24 13:03:23 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 19:16:35 +02:00
|
|
|
"execution_count": 2,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
2023-05-04 19:16:35 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/html": [
|
|
|
|
"<div>\n",
|
|
|
|
" <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
|
|
|
|
" <div style=\"margin-left: 48px;\">\n",
|
|
|
|
" <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
|
|
|
|
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-1a44c769-ea9b-11ed-88cc-80e82ce2fa8e</p>\n",
|
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
"\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
|
|
|
|
" <td style=\"text-align: left;\"><strong>Cluster type:</strong> distributed.LocalCluster</td>\n",
|
|
|
|
" \n",
|
|
|
|
" </tr>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </table>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
" <details>\n",
|
|
|
|
" <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
|
|
|
|
" <div class=\"jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-output\">\n",
|
|
|
|
" <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\">\n",
|
|
|
|
" </div>\n",
|
|
|
|
" <div style=\"margin-left: 48px;\">\n",
|
|
|
|
" <h3 style=\"margin-bottom: 0px; margin-top: 0px;\">LocalCluster</h3>\n",
|
|
|
|
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">b16f0063</p>\n",
|
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Workers:</strong> 6\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total threads:</strong> 60\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total memory:</strong> 55.88 GiB\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\"><strong>Status:</strong> running</td>\n",
|
|
|
|
" <td style=\"text-align: left;\"><strong>Using processes:</strong> True</td>\n",
|
|
|
|
"</tr>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
" </table>\n",
|
|
|
|
"\n",
|
|
|
|
" <details>\n",
|
|
|
|
" <summary style=\"margin-bottom: 20px;\">\n",
|
|
|
|
" <h3 style=\"display: inline;\">Scheduler Info</h3>\n",
|
|
|
|
" </summary>\n",
|
|
|
|
"\n",
|
|
|
|
" <div style=\"\">\n",
|
|
|
|
" <div>\n",
|
|
|
|
" <div style=\"width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;\"> </div>\n",
|
|
|
|
" <div style=\"margin-left: 48px;\">\n",
|
|
|
|
" <h3 style=\"margin-bottom: 0px;\">Scheduler</h3>\n",
|
|
|
|
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-8571d7e2-e6e5-4263-a9ed-50018e90379b</p>\n",
|
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Comm:</strong> tcp://127.0.0.1:55356\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Workers:</strong> 6\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total threads:</strong> 60\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Started:</strong> Just now\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total memory:</strong> 55.88 GiB\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" </div>\n",
|
|
|
|
"\n",
|
|
|
|
" <details style=\"margin-left: 48px;\">\n",
|
|
|
|
" <summary style=\"margin-bottom: 20px;\">\n",
|
|
|
|
" <h3 style=\"display: inline;\">Workers</h3>\n",
|
|
|
|
" </summary>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
" <div style=\"margin-bottom: 20px;\">\n",
|
|
|
|
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
|
|
|
|
" <div style=\"margin-left: 48px;\">\n",
|
|
|
|
" <details>\n",
|
|
|
|
" <summary>\n",
|
|
|
|
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 0</h4>\n",
|
|
|
|
" </summary>\n",
|
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:55387\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total threads: </strong> 10\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55388/status\" target=\"_blank\">http://127.0.0.1:55388/status</a>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Memory: </strong> 9.31 GiB\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55359\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-646bafev\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </details>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" \n",
|
|
|
|
" <div style=\"margin-bottom: 20px;\">\n",
|
|
|
|
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
|
|
|
|
" <div style=\"margin-left: 48px;\">\n",
|
|
|
|
" <details>\n",
|
|
|
|
" <summary>\n",
|
|
|
|
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 1</h4>\n",
|
|
|
|
" </summary>\n",
|
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:55374\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total threads: </strong> 10\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55385/status\" target=\"_blank\">http://127.0.0.1:55385/status</a>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Memory: </strong> 9.31 GiB\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55360\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-i7cnpql6\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </details>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" \n",
|
|
|
|
" <div style=\"margin-bottom: 20px;\">\n",
|
|
|
|
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
|
|
|
|
" <div style=\"margin-left: 48px;\">\n",
|
|
|
|
" <details>\n",
|
|
|
|
" <summary>\n",
|
|
|
|
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 2</h4>\n",
|
|
|
|
" </summary>\n",
|
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:55390\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total threads: </strong> 10\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55392/status\" target=\"_blank\">http://127.0.0.1:55392/status</a>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Memory: </strong> 9.31 GiB\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55361\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-cm12p6g3\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </details>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" \n",
|
|
|
|
" <div style=\"margin-bottom: 20px;\">\n",
|
|
|
|
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
|
|
|
|
" <div style=\"margin-left: 48px;\">\n",
|
|
|
|
" <details>\n",
|
|
|
|
" <summary>\n",
|
|
|
|
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 3</h4>\n",
|
|
|
|
" </summary>\n",
|
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:55391\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total threads: </strong> 10\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55393/status\" target=\"_blank\">http://127.0.0.1:55393/status</a>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Memory: </strong> 9.31 GiB\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55362\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-ift1r1_n\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </details>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" \n",
|
|
|
|
" <div style=\"margin-bottom: 20px;\">\n",
|
|
|
|
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
|
|
|
|
" <div style=\"margin-left: 48px;\">\n",
|
|
|
|
" <details>\n",
|
|
|
|
" <summary>\n",
|
|
|
|
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 4</h4>\n",
|
|
|
|
" </summary>\n",
|
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:55396\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total threads: </strong> 10\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55397/status\" target=\"_blank\">http://127.0.0.1:55397/status</a>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Memory: </strong> 9.31 GiB\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55363\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-n0ircagt\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </details>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" \n",
|
|
|
|
" <div style=\"margin-bottom: 20px;\">\n",
|
|
|
|
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
|
|
|
|
" <div style=\"margin-left: 48px;\">\n",
|
|
|
|
" <details>\n",
|
|
|
|
" <summary>\n",
|
|
|
|
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 5</h4>\n",
|
|
|
|
" </summary>\n",
|
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:55399\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Total threads: </strong> 10\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55400/status\" target=\"_blank\">http://127.0.0.1:55400/status</a>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Memory: </strong> 9.31 GiB\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55364\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
|
|
|
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-tym7j5xi\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </details>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" </div>\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </details>\n",
|
|
|
|
"</div>\n",
|
|
|
|
"\n",
|
|
|
|
" </details>\n",
|
|
|
|
" </div>\n",
|
|
|
|
"</div>\n",
|
|
|
|
" </details>\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </div>\n",
|
|
|
|
"</div>"
|
|
|
|
],
|
|
|
|
"text/plain": [
|
|
|
|
"<Client: 'tcp://127.0.0.1:55356' processes=6 threads=60, memory=55.88 GiB>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 2,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
2023-05-04 13:47:33 +02:00
|
|
|
"source": [
|
|
|
|
"from dask.distributed import Client\n",
|
|
|
|
"client = Client(n_workers=6, threads_per_worker=10, processes=True, memory_limit='10GB')\n",
|
|
|
|
"client"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Read data"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Set file path"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 19:16:35 +02:00
|
|
|
"execution_count": 3,
|
2023-04-24 13:03:23 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 18:32:17 +02:00
|
|
|
"# filepath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/05/03/0043/*.h5\"\n",
|
2023-04-24 13:03:23 +02:00
|
|
|
"# filepath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/04/18/0003/2023-04-18_0003_Evaporative_Cooling_000.h5\"\n",
|
|
|
|
"\n",
|
2023-05-04 18:32:17 +02:00
|
|
|
"filepath = \"//DyLabNAS/Data/Repetition_scan/2023/04/21/0002/*.h5\"\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
"\n",
|
2023-05-04 18:32:17 +02:00
|
|
|
"# filepath = r\"./testData/0000/*.h5\"\n",
|
2023-04-24 13:03:23 +02:00
|
|
|
"\n",
|
2023-05-04 18:32:17 +02:00
|
|
|
"# filepath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/04/18/0003/*.h5\""
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 19:16:35 +02:00
|
|
|
"execution_count": 4,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-04-24 13:03:23 +02:00
|
|
|
"groupList = [\n",
|
|
|
|
" \"images/MOT_3D_Camera/in_situ_absorption\",\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
" # \"images/ODT_1_Axis_Camera/in_situ_absorption\",\n",
|
2023-04-24 13:03:23 +02:00
|
|
|
"]\n",
|
|
|
|
"\n",
|
|
|
|
"dskey = {\n",
|
|
|
|
" \"images/MOT_3D_Camera/in_situ_absorption\": \"camera_1\",\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
" # \"images/ODT_1_Axis_Camera/in_situ_absorption\": \"camera_2\",\n",
|
2023-04-24 13:03:23 +02:00
|
|
|
"}\n",
|
|
|
|
"\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"dataSetDict = {\n",
|
2023-04-24 13:03:23 +02:00
|
|
|
" dskey[groupList[i]]: read_hdf5_file(filepath, groupList[i])\n",
|
|
|
|
" for i in range(len(groupList))\n",
|
|
|
|
"}"
|
|
|
|
]
|
|
|
|
},
|
2023-05-04 19:16:35 +02:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 37,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "stdout",
|
|
|
|
"output_type": "stream",
|
|
|
|
"text": [
|
|
|
|
"Today's date: 2023-05-04\n",
|
|
|
|
"d3 = 23/05/04\n",
|
|
|
|
"True\n"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"from datetime import date\n",
|
|
|
|
"\n",
|
|
|
|
"today = date.today()\n",
|
|
|
|
"print(\"Today's date:\", today)\n",
|
|
|
|
"\n",
|
|
|
|
"d3 = today.strftime(\"%y/%m/%d\")\n",
|
|
|
|
"print(\"d3 =\", d3)\n",
|
|
|
|
"print(isinstance(d3, str))"
|
|
|
|
]
|
|
|
|
},
|
2023-05-04 13:47:33 +02:00
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Rechunk the data for parallel computing"
|
|
|
|
]
|
|
|
|
},
|
2023-04-24 13:03:23 +02:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 19:16:35 +02:00
|
|
|
"execution_count": 5,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 19:16:35 +02:00
|
|
|
"dataSet = dataSetDict[\"camera_1\"]\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
"\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"scanAxis = dataSet.scanAxis\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
"\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"# dataSet = dataSet.chunk(\n",
|
2023-05-04 18:32:17 +02:00
|
|
|
"# {\n",
|
|
|
|
"# # \"compZ_current_sg\": \"auto\",\n",
|
|
|
|
"# \"sin_mod_freq\": \"auto\",\n",
|
|
|
|
"# \"runs\": 2,\n",
|
|
|
|
"# \"x\": \"auto\",\n",
|
|
|
|
"# \"y\": \"auto\",\n",
|
|
|
|
"# }\n",
|
|
|
|
"# )"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
2023-05-04 19:16:35 +02:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 27,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "stdout",
|
|
|
|
"output_type": "stream",
|
|
|
|
"text": [
|
|
|
|
"final_amp\n",
|
|
|
|
"runs\n",
|
|
|
|
"x\n",
|
|
|
|
"y\n"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"for key in dataset.dims.keys():\n",
|
|
|
|
" print(key)"
|
|
|
|
]
|
|
|
|
},
|
2023-05-04 13:47:33 +02:00
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Calculate absorption imaging"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## get OD images"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 19:16:35 +02:00
|
|
|
"execution_count": 13,
|
2023-04-24 13:03:23 +02:00
|
|
|
"metadata": {},
|
2023-05-04 19:16:35 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/html": [
|
|
|
|
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
|
|
|
|
"<defs>\n",
|
|
|
|
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
|
|
|
|
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
|
|
|
|
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
|
|
|
|
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
|
|
|
|
"</symbol>\n",
|
|
|
|
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
|
|
|
|
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
|
|
|
|
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
|
|
|
|
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
|
|
|
|
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
|
|
|
|
"</symbol>\n",
|
|
|
|
"</defs>\n",
|
|
|
|
"</svg>\n",
|
|
|
|
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
|
|
|
|
" *\n",
|
|
|
|
" */\n",
|
|
|
|
"\n",
|
|
|
|
":root {\n",
|
|
|
|
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
|
|
|
|
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
|
|
|
|
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
|
|
|
|
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
|
|
|
|
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
|
|
|
|
" --xr-background-color: var(--jp-layout-color0, white);\n",
|
|
|
|
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
|
|
|
|
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
"html[theme=dark],\n",
|
|
|
|
"body[data-theme=dark],\n",
|
|
|
|
"body.vscode-dark {\n",
|
|
|
|
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
|
|
|
|
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
|
|
|
|
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
|
|
|
|
" --xr-border-color: #1F1F1F;\n",
|
|
|
|
" --xr-disabled-color: #515151;\n",
|
|
|
|
" --xr-background-color: #111111;\n",
|
|
|
|
" --xr-background-color-row-even: #111111;\n",
|
|
|
|
" --xr-background-color-row-odd: #313131;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-wrap {\n",
|
|
|
|
" display: block !important;\n",
|
|
|
|
" min-width: 300px;\n",
|
|
|
|
" max-width: 700px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-text-repr-fallback {\n",
|
|
|
|
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
|
|
|
|
" display: none;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-header {\n",
|
|
|
|
" padding-top: 6px;\n",
|
|
|
|
" padding-bottom: 6px;\n",
|
|
|
|
" margin-bottom: 4px;\n",
|
|
|
|
" border-bottom: solid 1px var(--xr-border-color);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-header > div,\n",
|
|
|
|
".xr-header > ul {\n",
|
|
|
|
" display: inline;\n",
|
|
|
|
" margin-top: 0;\n",
|
|
|
|
" margin-bottom: 0;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-obj-type,\n",
|
|
|
|
".xr-array-name {\n",
|
|
|
|
" margin-left: 2px;\n",
|
|
|
|
" margin-right: 10px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-obj-type {\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-sections {\n",
|
|
|
|
" padding-left: 0 !important;\n",
|
|
|
|
" display: grid;\n",
|
|
|
|
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item {\n",
|
|
|
|
" display: contents;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item input {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item input + label {\n",
|
|
|
|
" color: var(--xr-disabled-color);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item input:enabled + label {\n",
|
|
|
|
" cursor: pointer;\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item input:enabled + label:hover {\n",
|
|
|
|
" color: var(--xr-font-color0);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary {\n",
|
|
|
|
" grid-column: 1;\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
" font-weight: 500;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary > span {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" padding-left: 0.5em;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:disabled + label {\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in + label:before {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" content: 'â–º';\n",
|
|
|
|
" font-size: 11px;\n",
|
|
|
|
" width: 15px;\n",
|
|
|
|
" text-align: center;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:disabled + label:before {\n",
|
|
|
|
" color: var(--xr-disabled-color);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:checked + label:before {\n",
|
|
|
|
" content: 'â–¼';\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:checked + label > span {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary,\n",
|
|
|
|
".xr-section-inline-details {\n",
|
|
|
|
" padding-top: 4px;\n",
|
|
|
|
" padding-bottom: 4px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-inline-details {\n",
|
|
|
|
" grid-column: 2 / -1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-details {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
" grid-column: 1 / -1;\n",
|
|
|
|
" margin-bottom: 5px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:checked ~ .xr-section-details {\n",
|
|
|
|
" display: contents;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-wrap {\n",
|
|
|
|
" grid-column: 1 / -1;\n",
|
|
|
|
" display: grid;\n",
|
|
|
|
" grid-template-columns: 20px auto;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-wrap > label {\n",
|
|
|
|
" grid-column: 1;\n",
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-preview {\n",
|
|
|
|
" color: var(--xr-font-color3);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-preview,\n",
|
|
|
|
".xr-array-data {\n",
|
|
|
|
" padding: 0 5px !important;\n",
|
|
|
|
" grid-column: 2;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-data,\n",
|
|
|
|
".xr-array-in:checked ~ .xr-array-preview {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-in:checked ~ .xr-array-data,\n",
|
|
|
|
".xr-array-preview {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list {\n",
|
|
|
|
" display: inline-block !important;\n",
|
|
|
|
" list-style: none;\n",
|
|
|
|
" padding: 0 !important;\n",
|
|
|
|
" margin: 0;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list li {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" padding: 0;\n",
|
|
|
|
" margin: 0;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list:before {\n",
|
|
|
|
" content: '(';\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list:after {\n",
|
|
|
|
" content: ')';\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list li:not(:last-child):after {\n",
|
|
|
|
" content: ',';\n",
|
|
|
|
" padding-right: 5px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-has-index {\n",
|
|
|
|
" font-weight: bold;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-list,\n",
|
|
|
|
".xr-var-item {\n",
|
|
|
|
" display: contents;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-item > div,\n",
|
|
|
|
".xr-var-item label,\n",
|
|
|
|
".xr-var-item > .xr-var-name span {\n",
|
|
|
|
" background-color: var(--xr-background-color-row-even);\n",
|
|
|
|
" margin-bottom: 0;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-item > .xr-var-name:hover span {\n",
|
|
|
|
" padding-right: 5px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-list > li:nth-child(odd) > div,\n",
|
|
|
|
".xr-var-list > li:nth-child(odd) > label,\n",
|
|
|
|
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
|
|
|
|
" background-color: var(--xr-background-color-row-odd);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-name {\n",
|
|
|
|
" grid-column: 1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-dims {\n",
|
|
|
|
" grid-column: 2;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-dtype {\n",
|
|
|
|
" grid-column: 3;\n",
|
|
|
|
" text-align: right;\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-preview {\n",
|
|
|
|
" grid-column: 4;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-index-preview {\n",
|
|
|
|
" grid-column: 2 / 5;\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-name,\n",
|
|
|
|
".xr-var-dims,\n",
|
|
|
|
".xr-var-dtype,\n",
|
|
|
|
".xr-preview,\n",
|
|
|
|
".xr-attrs dt {\n",
|
|
|
|
" white-space: nowrap;\n",
|
|
|
|
" overflow: hidden;\n",
|
|
|
|
" text-overflow: ellipsis;\n",
|
|
|
|
" padding-right: 10px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-name:hover,\n",
|
|
|
|
".xr-var-dims:hover,\n",
|
|
|
|
".xr-var-dtype:hover,\n",
|
|
|
|
".xr-attrs dt:hover {\n",
|
|
|
|
" overflow: visible;\n",
|
|
|
|
" width: auto;\n",
|
|
|
|
" z-index: 1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-attrs,\n",
|
|
|
|
".xr-var-data,\n",
|
|
|
|
".xr-index-data {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
" background-color: var(--xr-background-color) !important;\n",
|
|
|
|
" padding-bottom: 5px !important;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
|
|
|
|
".xr-var-data-in:checked ~ .xr-var-data,\n",
|
|
|
|
".xr-index-data-in:checked ~ .xr-index-data {\n",
|
|
|
|
" display: block;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-data > table {\n",
|
|
|
|
" float: right;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-name span,\n",
|
|
|
|
".xr-var-data,\n",
|
|
|
|
".xr-index-name div,\n",
|
|
|
|
".xr-index-data,\n",
|
|
|
|
".xr-attrs {\n",
|
|
|
|
" padding-left: 25px !important;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs,\n",
|
|
|
|
".xr-var-attrs,\n",
|
|
|
|
".xr-var-data,\n",
|
|
|
|
".xr-index-data {\n",
|
|
|
|
" grid-column: 1 / -1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
"dl.xr-attrs {\n",
|
|
|
|
" padding: 0;\n",
|
|
|
|
" margin: 0;\n",
|
|
|
|
" display: grid;\n",
|
|
|
|
" grid-template-columns: 125px auto;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs dt,\n",
|
|
|
|
".xr-attrs dd {\n",
|
|
|
|
" padding: 0;\n",
|
|
|
|
" margin: 0;\n",
|
|
|
|
" float: left;\n",
|
|
|
|
" padding-right: 10px;\n",
|
|
|
|
" width: auto;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs dt {\n",
|
|
|
|
" font-weight: normal;\n",
|
|
|
|
" grid-column: 1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs dt:hover span {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" background: var(--xr-background-color);\n",
|
|
|
|
" padding-right: 10px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs dd {\n",
|
|
|
|
" grid-column: 2;\n",
|
|
|
|
" white-space: pre-wrap;\n",
|
|
|
|
" word-break: break-all;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-icon-database,\n",
|
|
|
|
".xr-icon-file-text2,\n",
|
|
|
|
".xr-no-icon {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
" width: 1em;\n",
|
|
|
|
" height: 1.5em !important;\n",
|
|
|
|
" stroke-width: 0;\n",
|
|
|
|
" stroke: currentColor;\n",
|
|
|
|
" fill: currentColor;\n",
|
|
|
|
"}\n",
|
|
|
|
"</style><pre class='xr-text-repr-fallback'><xarray.Dataset>\n",
|
|
|
|
"Dimensions: (final_amp: 11, runs: 3, x: 1200, y: 1920)\n",
|
|
|
|
"Coordinates:\n",
|
|
|
|
" * final_amp (final_amp) float64 3e-05 5.5e-05 8e-05 ... 0.000255 0.00028\n",
|
|
|
|
" * runs (runs) float64 0.0 1.0 2.0\n",
|
|
|
|
"Dimensions without coordinates: x, y\n",
|
|
|
|
"Data variables:\n",
|
|
|
|
" atoms (final_amp, runs, x, y) uint16 dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" background (final_amp, runs, x, y) uint16 dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" dark (final_amp, runs, x, y) uint16 dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" shotNum (final_amp, runs) <U2 '00' '11' '22' '01' ... '10' '21' '32'\n",
|
|
|
|
" OD (final_amp, runs, x, y) float64 dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
"Attributes: (12/96)\n",
|
|
|
|
" TOF_free: 0.01\n",
|
|
|
|
" abs_img_freq: 110.858\n",
|
|
|
|
" absorption_imaging_flag: True\n",
|
|
|
|
" backup_data: True\n",
|
|
|
|
" blink_off_time: nan\n",
|
|
|
|
" blink_on_time: nan\n",
|
|
|
|
" ... ...\n",
|
|
|
|
" z_offset: 0.189\n",
|
|
|
|
" z_offset_img: 0.189\n",
|
|
|
|
" final_amp: [3.00e-05 5.50e-05 8.00e-05 1.05e-04 1...\n",
|
|
|
|
" runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
|
|
|
|
" scanAxis: ['final_amp', 'runs']\n",
|
|
|
|
" scanAxisLength: [33. 33.]</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-75ba97bc-9621-4afe-b001-9bb26271bdf6' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-75ba97bc-9621-4afe-b001-9bb26271bdf6' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>final_amp</span>: 11</li><li><span class='xr-has-index'>runs</span>: 3</li><li><span>x</span>: 1200</li><li><span>y</span>: 1920</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-3a3dd7c7-b998-45be-a8f0-0220e70ec50d' class='xr-section-summary-in' type='checkbox' checked><label for='section-3a3dd7c7-b998-45be-a8f0-0220e70ec50d' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>final_amp</span></div><div class='xr-var-dims'>(final_amp)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>3e-05 5.5e-05 ... 0.000255 0.00028</div><input id='attrs-e71aec16-37c8-4d15-92f7-7c07c453ad84' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e71aec16-37c8-4d15-92f7-7c07c453ad84' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3a6b0497-eb5e-474c-9305-57ffee605bc6' class='xr-var-data-in' type='checkbox'><label for='data-3a6b0497-eb5e-474c-9305-57ffee605bc6' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([3.00e-05, 5.50e-05, 8.00e-05, 1.05e-04, 1.30e-04, 1.55e-04, 1.80e-04,\n",
|
|
|
|
" 2.05e-04, 2.30e-04, 2.55e-04, 2.80e-04])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>runs</span></div><div class='xr-var-dims'>(runs)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 1.0 2.0</div><input id='attrs-6c4aa9f0-4255-4b50-bb8a-21ee59b1441c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6c4aa9f0-4255-4b50-bb8a-21ee59b1441c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f0717a66-9cd5-4966-9c5e-4c9016b6a6b1' class='xr-var-data-in' type='checkbox'><label for='data-f0717a66-9cd5-4966-9c5e-4c9016b6a6b1' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([0., 1., 2.])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-fe5868c3-08f4-4277-8d31-22daf965bb08' class='xr-section-summary-in' type='checkbox' checked><label for='section-fe5868c3-08f4-4277-8d31-22daf965bb08' class='xr-section-summary' >Data variables: <span>(5)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>atoms</span></div><div class='xr-var-dims'>(final_amp, runs, x, y)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray></div><input id='attrs-ad01a2dd-abb1-4af8-a0e6-8b9aae6d9ab6' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-ad01a2dd-abb1-4af8-a0e6-8b9aae6d9ab6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ad2a2aa9-5b3e-4033-aebb-ab888342a38d' class='xr-var-data-in' type='checkbox'><label for='data-ad2a2aa9-5b3e-4033-aebb-ab888342a38d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>IMAGE_SUBCLASS :</span></dt><dd>IMAGE_GRAYSCALE</dd><dt><span>IMAGE_VERSION :</span></dt><dd>1.2</dd><dt><span>IMAGE_WHITE_IS_ZERO :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><table>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td>\n",
|
|
|
|
" <table style=\"border-collapse: collapse;\">\n",
|
|
|
|
" <thead>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td> </td>\n",
|
|
|
|
" <th> Array </th>\n",
|
|
|
|
" <th> Chunk </th>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </thead>\n",
|
|
|
|
" <tbody>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Bytes </th>\n",
|
|
|
|
" <td> 145.02 MiB </td>\n",
|
|
|
|
" <td> 4.39 MiB </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Shape </th>\n",
|
|
|
|
" <td> (11, 3, 1200, 1920) </td>\n",
|
|
|
|
" <td> (1, 1, 1200, 1920) </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Dask graph </th>\n",
|
|
|
|
" <td colspan=\"2\"> 33 chunks in 103 graph layers </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Data type </th>\n",
|
|
|
|
" <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </tbody>\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td>\n",
|
|
|
|
" <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"2\" y1=\"0\" x2=\"2\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"4\" y1=\"0\" x2=\"4\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"6\" y1=\"0\" x2=\"6\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"9\" y1=\"0\" x2=\"9\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"11\" y1=\"0\" x2=\"11\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"13\" y1=\"0\" x2=\"13\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"16\" y1=\"0\" x2=\"16\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"18\" y1=\"0\" x2=\"18\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"20\" y1=\"0\" x2=\"20\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"23\" y1=\"0\" x2=\"23\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
|
|
|
" <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
|
|
|
|
" <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"99\" y1=\"4\" x2=\"99\" y2=\"79\" />\n",
|
|
|
|
" <line x1=\"104\" y1=\"9\" x2=\"104\" y2=\"84\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"99\" y1=\"4\" x2=\"219\" y2=\"4\" />\n",
|
|
|
|
" <line x1=\"104\" y1=\"9\" x2=\"224\" y2=\"9\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
|
|
|
" <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
|
|
|
|
" <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
|
|
|
|
" <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">3</text>\n",
|
|
|
|
"</svg>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>background</span></div><div class='xr-var-dims'>(final_amp, runs, x, y)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray></div><input id='attrs-7f990b55-74eb-473d-b057-540175d70c36' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-7f990b55-74eb-473d-b057-540175d70c36' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-19cd02f2-1428-4001-bf12-f6d83730534c' class='xr-var-data-in' type='checkbox'><label for='data-19cd02f2-1428-4001-bf12-f6d83730534c' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>IMAGE_SUBCLASS :</span></dt><dd>IMAGE_GRAYSCALE</dd><dt><span>IMAGE_VERSION :</span></dt><dd>1.2</dd><dt><span>IMAGE_WHITE_IS_ZERO :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><table>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td>\n",
|
|
|
|
" <table style=\"border-collapse: collapse;\">\n",
|
|
|
|
" <thead>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td> </td>\n",
|
|
|
|
" <th> Array </th>\n",
|
|
|
|
" <th> Chunk </th>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </thead>\n",
|
|
|
|
" <tbody>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Bytes </th>\n",
|
|
|
|
" <td> 145.02 MiB </td>\n",
|
|
|
|
" <td> 4.39 MiB </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Shape </th>\n",
|
|
|
|
" <td> (11, 3, 1200, 1920) </td>\n",
|
|
|
|
" <td> (1, 1, 1200, 1920) </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Dask graph </th>\n",
|
|
|
|
" <td colspan=\"2\"> 33 chunks in 103 graph layers </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Data type </th>\n",
|
|
|
|
" <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </tbody>\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td>\n",
|
|
|
|
" <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"2\" y1=\"0\" x2=\"2\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"4\" y1=\"0\" x2=\"4\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"6\" y1=\"0\" x2=\"6\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"9\" y1=\"0\" x2=\"9\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"11\" y1=\"0\" x2=\"11\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"13\" y1=\"0\" x2=\"13\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"16\" y1=\"0\" x2=\"16\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"18\" y1=\"0\" x2=\"18\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"20\" y1=\"0\" x2=\"20\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"23\" y1=\"0\" x2=\"23\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
|
|
|
" <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
|
|
|
|
" <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"99\" y1=\"4\" x2=\"99\" y2=\"79\" />\n",
|
|
|
|
" <line x1=\"104\" y1=\"9\" x2=\"104\" y2=\"84\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"99\" y1=\"4\" x2=\"219\" y2=\"4\" />\n",
|
|
|
|
" <line x1=\"104\" y1=\"9\" x2=\"224\" y2=\"9\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
|
|
|
" <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
|
|
|
|
" <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
|
|
|
|
" <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">3</text>\n",
|
|
|
|
"</svg>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>dark</span></div><div class='xr-var-dims'>(final_amp, runs, x, y)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray></div><input id='attrs-a3eec3e7-22da-4327-8647-bd055e8908e0' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a3eec3e7-22da-4327-8647-bd055e8908e0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7ccb27a6-7565-40d6-a576-7c171d70e71f' class='xr-var-data-in' type='checkbox'><label for='data-7ccb27a6-7565-40d6-a576-7c171d70e71f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>IMAGE_SUBCLASS :</span></dt><dd>IMAGE_GRAYSCALE</dd><dt><span>IMAGE_VERSION :</span></dt><dd>1.2</dd><dt><span>IMAGE_WHITE_IS_ZERO :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><table>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td>\n",
|
|
|
|
" <table style=\"border-collapse: collapse;\">\n",
|
|
|
|
" <thead>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td> </td>\n",
|
|
|
|
" <th> Array </th>\n",
|
|
|
|
" <th> Chunk </th>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </thead>\n",
|
|
|
|
" <tbody>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Bytes </th>\n",
|
|
|
|
" <td> 145.02 MiB </td>\n",
|
|
|
|
" <td> 4.39 MiB </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Shape </th>\n",
|
|
|
|
" <td> (11, 3, 1200, 1920) </td>\n",
|
|
|
|
" <td> (1, 1, 1200, 1920) </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Dask graph </th>\n",
|
|
|
|
" <td colspan=\"2\"> 33 chunks in 103 graph layers </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Data type </th>\n",
|
|
|
|
" <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </tbody>\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td>\n",
|
|
|
|
" <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"2\" y1=\"0\" x2=\"2\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"4\" y1=\"0\" x2=\"4\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"6\" y1=\"0\" x2=\"6\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"9\" y1=\"0\" x2=\"9\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"11\" y1=\"0\" x2=\"11\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"13\" y1=\"0\" x2=\"13\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"16\" y1=\"0\" x2=\"16\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"18\" y1=\"0\" x2=\"18\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"20\" y1=\"0\" x2=\"20\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"23\" y1=\"0\" x2=\"23\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
|
|
|
" <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
|
|
|
|
" <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"99\" y1=\"4\" x2=\"99\" y2=\"79\" />\n",
|
|
|
|
" <line x1=\"104\" y1=\"9\" x2=\"104\" y2=\"84\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"99\" y1=\"4\" x2=\"219\" y2=\"4\" />\n",
|
|
|
|
" <line x1=\"104\" y1=\"9\" x2=\"224\" y2=\"9\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
|
|
|
" <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
|
|
|
|
" <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
|
|
|
|
" <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">3</text>\n",
|
|
|
|
"</svg>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>shotNum</span></div><div class='xr-var-dims'>(final_amp, runs)</div><div class='xr-var-dtype'><U2</div><div class='xr-var-preview xr-preview'>'00' '11' '22' ... '10' '21' '32'</div><input id='attrs-aac69133-eeeb-4bcb-b436-29ba648315ec' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-aac69133-eeeb-4bcb-b436-29ba648315ec' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ea86048c-b8bb-46af-b789-5720b5f7a2ae' class='xr-var-data-in' type='checkbox'><label for='data-ea86048c-b8bb-46af-b789-5720b5f7a2ae' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([['00', '11', '22'],\n",
|
|
|
|
" ['01', '12', '23'],\n",
|
|
|
|
" ['02', '13', '24'],\n",
|
|
|
|
" ['03', '14', '25'],\n",
|
|
|
|
" ['04', '15', '26'],\n",
|
|
|
|
" ['05', '16', '27'],\n",
|
|
|
|
" ['06', '17', '28'],\n",
|
|
|
|
" ['07', '18', '29'],\n",
|
|
|
|
" ['08', '19', '30'],\n",
|
|
|
|
" ['09', '20', '31'],\n",
|
|
|
|
" ['10', '21', '32']], dtype='<U2')</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>OD</span></div><div class='xr-var-dims'>(final_amp, runs, x, y)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray></div><input id='attrs-b3ee6014-c7ee-4af7-845f-b46e64cd1569' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-b3ee6014-c7ee-4af7-845f-b46e64cd1569' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-60b7a8f5-d7a9-4222-bd5d-4a9a02fd8c10' class='xr-var-data-in' type='checkbox'><label for='data-60b7a8f5-d7a9-4222-bd5d-4a9a02fd8c10' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>IMAGE_SUBCLASS :</span></dt><dd>IMAGE_GRAYSCALE</dd><dt><span>IMAGE_VERSION :</span></dt><dd>1.2</dd><dt><span>IMAGE_WHITE_IS_ZERO :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><table>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td>\n",
|
|
|
|
" <table style=\"border-collapse: collapse;\">\n",
|
|
|
|
" <thead>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td> </td>\n",
|
|
|
|
" <th> Array </th>\n",
|
|
|
|
" <th> Chunk </th>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </thead>\n",
|
|
|
|
" <tbody>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Bytes </th>\n",
|
|
|
|
" <td> 580.08 MiB </td>\n",
|
|
|
|
" <td> 17.58 MiB </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Shape </th>\n",
|
|
|
|
" <td> (11, 3, 1200, 1920) </td>\n",
|
|
|
|
" <td> (1, 1, 1200, 1920) </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Dask graph </th>\n",
|
|
|
|
" <td colspan=\"2\"> 33 chunks in 319 graph layers </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Data type </th>\n",
|
|
|
|
" <td colspan=\"2\"> float64 numpy.ndarray </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" </tbody>\n",
|
|
|
|
" </table>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" <td>\n",
|
|
|
|
" <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"2\" y1=\"0\" x2=\"2\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"4\" y1=\"0\" x2=\"4\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"6\" y1=\"0\" x2=\"6\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"9\" y1=\"0\" x2=\"9\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"11\" y1=\"0\" x2=\"11\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"13\" y1=\"0\" x2=\"13\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"16\" y1=\"0\" x2=\"16\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"18\" y1=\"0\" x2=\"18\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"20\" y1=\"0\" x2=\"20\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"23\" y1=\"0\" x2=\"23\" y2=\"25\" />\n",
|
|
|
|
" <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
|
|
|
" <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
|
|
|
|
" <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
|
|
|
|
"\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"99\" y1=\"4\" x2=\"99\" y2=\"79\" />\n",
|
|
|
|
" <line x1=\"104\" y1=\"9\" x2=\"104\" y2=\"84\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"99\" y1=\"4\" x2=\"219\" y2=\"4\" />\n",
|
|
|
|
" <line x1=\"104\" y1=\"9\" x2=\"224\" y2=\"9\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
|
|
|
" <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
|
|
|
" <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
|
|
|
" <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
|
|
|
|
" <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
|
|
|
|
" <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">3</text>\n",
|
|
|
|
"</svg>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-a8691ec2-70cf-4ce7-939b-1a0edcf62b63' class='xr-section-summary-in' type='checkbox' ><label for='section-a8691ec2-70cf-4ce7-939b-1a0edcf62b63' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>final_amp</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-c1f59893-59e8-47fa-9ca8-62ae68a1c228' class='xr-index-data-in' type='checkbox'/><label for='index-c1f59893-59e8-47fa-9ca8-62ae68a1c228' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 3e-05, 5.5e-05, 8e-05, 0.000105, 0.00013, 0.000155,\n",
|
|
|
|
" 0.00018, 0.000205, 0.00023, 0.000255, 0.00028],\n",
|
|
|
|
" dtype='float64', name='final_amp'))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>runs</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-9b5c6fb7-ac85-4d2d-aa4f-d4b57252c249' class='xr-index-data-in' type='checkbox'/><label for='index-9b5c6fb7-ac85-4d2d-aa4f-d4b57252c249' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([0.0, 1.0, 2.0], dtype='float64', name='runs'))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-4ac9116c-0349-43df-966d-796e1ae85057' class='xr-section-summary-in' type='checkbox' ><label for='section-4ac9116c-0349-43df-966d-796e1ae85057' class='xr-section-summary' >Attributes: <span>(96)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>TOF_free :</span></dt><dd>0.01</dd><dt><span>abs_img_freq :</span></dt><dd>110.858</dd><dt><span>absorption_imaging_flag :</span></dt><dd>True</dd><dt><span>backup_data :</span></dt><dd>True</dd><dt><span>blink_off_time :</span></dt><dd>nan</dd><dt><span>blink_on_time :</span></dt><dd>nan</dd><dt><span>c_duration :</span></dt><dd>0.2</dd><dt><span>cmot_final_current :</span></dt><dd>0.65</dd><dt><span>cmot_hold :</span></dt><dd>0.06</dd><dt><span>cmot_initial_current :</span></dt><dd>0.18</dd><dt><span>compX_current :</span></dt><dd>0.005</dd><dt><span>compX_current_sg :</span></dt><dd>0</dd><dt><span>compX_final_current :</span></dt><dd>0.002</dd><dt><span>compX_initial_current :</span></dt><dd>0.005</dd><dt><span>compY_current :</span></dt><dd>0</dd><dt><span>compY_current_sg :</span></dt><dd>0</dd><dt><span>compY_final_current :</span></dt><dd>0</dd><dt><span>compY_initial_current :</span></dt><dd>0</dd><dt><span>compZ_current :</span></dt><dd>0</dd><dt><span>compZ_current_sg :</span></dt><dd>0.189</dd><dt><span>compZ_final_current :</span></dt><dd>0.285</dd><dt><span>compZ_initial_current :</span></dt><dd>0</dd><dt><span>default_camera :</span></dt><dd>1</dd><dt><span>evap_1_arm_1_final_pow :</span></dt><dd>0.35</dd><dt><span>evap_1_arm_1_mod_depth_final :</span></dt><dd>0</dd><dt><span>evap_1_arm_1_mod_depth_initial :</span></dt><dd>1.0</dd><dt><span>evap_1_arm_1_mod_ramp_duration :</span></dt><dd>1.15</dd><dt><span>evap_1_arm_1_pow_ramp_duration :</span></dt><dd>1.65</dd><dt><span>evap_1_arm_1_start_pow :</span></dt><dd>7</dd><dt><span>evap_1_arm_2_final_pow :</span></dt><dd>5</dd><dt><span>evap_1_arm_2_ramp_duration :</span></dt><dd>0.5</dd><dt><span>evap_1_arm_2_start_pow :</span></dt><dd>0</dd><dt><span>evap_1_mod_ramp_trunc_value :</span></dt><dd>1</dd><dt><span>evap_1_pow_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_1_rate_constant_1 :</span></dt><dd>0.525</dd><dt><span>evap_1_rate_constant_2 :</span></dt><dd>0.51</dd><dt><span>evap_2_arm_1_final_pow :</span></dt><dd>0.037</dd><dt><span>evap_2_arm_1_start_pow :</span></dt><dd>0.35</dd><dt><span>evap_2_arm_2_final_pow :</span></dt><dd>0.09</dd><dt><span>evap_2_arm_2_start_pow :</span></dt><dd>5</dd><dt><span>evap_2_ramp_duration :</span></dt><dd>1.0</dd><dt><span>evap_2_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_2_rate_constant_1 :</span></dt><dd>0.37</dd><dt><span>evap_2_rate_constant_2 :</span></dt><dd>0.71</dd><dt><span>evap_3_arm_1_final_pow :</span></dt><dd>0.1038</dd><dt><span>evap_3_arm_1_mod_depth_final :</span></dt><dd>0.43</dd><dt><span>evap_3_arm_1_mod_depth_initial :</span></dt><dd>0</dd><dt><span>evap_3_arm_1_start_pow :</span></dt><dd>0.037</dd><dt><span>evap_3_ramp_duration :</span></dt><dd>0.1</dd><dt><span>evap_3_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_3_rate_constant_1 :</span></dt><dd>-0.879</dd><dt><span>evap_3_rate_constant_2 :</span></dt><dd>-0.297</dd><dt><span>final_freq :</span></dt><dd>104</dd><dt><span>gradCoil_current :</span></dt><dd>0.18</dd><dt><span>gradCoil_current_sg :</span></dt><dd>0</dd>
|
|
|
|
" 2.30e-04 2.55e-04 2.80e-04 3.00e-05 5.50e-05 8.00e-05 1.05e-04 1.30e-04\n",
|
|
|
|
" 1.55e-04 1.80e-04 2.05e-04 2.30e-04 2.55e-04 2.80e-04 3.00e-05 5.50e-05\n",
|
|
|
|
" 8.00e-05 1.05e-04 1.30e-04 1.55e-04 1.80e-04 2.05e-04 2.30e-04 2.55e-04\n",
|
|
|
|
" 2.80e-04]</dd><dt><span>runs :</span></dt><dd>[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 2. 2.\n",
|
|
|
|
" 2. 2. 2. 2. 2. 2. 2. 2. 2.]</dd><dt><span>scanAxis :</span></dt><dd>['final_amp', 'runs']</dd><dt><span>scanAxisLength :</span></dt><dd>[33. 33.]</dd></dl></div></li></ul></div></div>"
|
|
|
|
],
|
|
|
|
"text/plain": [
|
|
|
|
"<xarray.Dataset>\n",
|
|
|
|
"Dimensions: (final_amp: 11, runs: 3, x: 1200, y: 1920)\n",
|
|
|
|
"Coordinates:\n",
|
|
|
|
" * final_amp (final_amp) float64 3e-05 5.5e-05 8e-05 ... 0.000255 0.00028\n",
|
|
|
|
" * runs (runs) float64 0.0 1.0 2.0\n",
|
|
|
|
"Dimensions without coordinates: x, y\n",
|
|
|
|
"Data variables:\n",
|
|
|
|
" atoms (final_amp, runs, x, y) uint16 dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" background (final_amp, runs, x, y) uint16 dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" dark (final_amp, runs, x, y) uint16 dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" shotNum (final_amp, runs) <U2 '00' '11' '22' '01' ... '10' '21' '32'\n",
|
|
|
|
" OD (final_amp, runs, x, y) float64 dask.array<chunksize=(1, 1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
"Attributes: (12/96)\n",
|
|
|
|
" TOF_free: 0.01\n",
|
|
|
|
" abs_img_freq: 110.858\n",
|
|
|
|
" absorption_imaging_flag: True\n",
|
|
|
|
" backup_data: True\n",
|
|
|
|
" blink_off_time: nan\n",
|
|
|
|
" blink_on_time: nan\n",
|
|
|
|
" ... ...\n",
|
|
|
|
" z_offset: 0.189\n",
|
|
|
|
" z_offset_img: 0.189\n",
|
|
|
|
" final_amp: [3.00e-05 5.50e-05 8.00e-05 1.05e-04 1...\n",
|
|
|
|
" runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
|
|
|
|
" scanAxis: ['final_amp', 'runs']\n",
|
|
|
|
" scanAxisLength: [33. 33.]"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 13,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
|
|
|
|
"\n",
|
|
|
|
"dataSet"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 18,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/html": [
|
|
|
|
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
|
|
|
|
"<defs>\n",
|
|
|
|
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
|
|
|
|
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
|
|
|
|
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
|
|
|
|
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
|
|
|
|
"</symbol>\n",
|
|
|
|
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
|
|
|
|
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
|
|
|
|
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
|
|
|
|
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
|
|
|
|
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
|
|
|
|
"</symbol>\n",
|
|
|
|
"</defs>\n",
|
|
|
|
"</svg>\n",
|
|
|
|
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
|
|
|
|
" *\n",
|
|
|
|
" */\n",
|
|
|
|
"\n",
|
|
|
|
":root {\n",
|
|
|
|
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
|
|
|
|
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
|
|
|
|
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
|
|
|
|
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
|
|
|
|
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
|
|
|
|
" --xr-background-color: var(--jp-layout-color0, white);\n",
|
|
|
|
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
|
|
|
|
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
"html[theme=dark],\n",
|
|
|
|
"body[data-theme=dark],\n",
|
|
|
|
"body.vscode-dark {\n",
|
|
|
|
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
|
|
|
|
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
|
|
|
|
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
|
|
|
|
" --xr-border-color: #1F1F1F;\n",
|
|
|
|
" --xr-disabled-color: #515151;\n",
|
|
|
|
" --xr-background-color: #111111;\n",
|
|
|
|
" --xr-background-color-row-even: #111111;\n",
|
|
|
|
" --xr-background-color-row-odd: #313131;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-wrap {\n",
|
|
|
|
" display: block !important;\n",
|
|
|
|
" min-width: 300px;\n",
|
|
|
|
" max-width: 700px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-text-repr-fallback {\n",
|
|
|
|
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
|
|
|
|
" display: none;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-header {\n",
|
|
|
|
" padding-top: 6px;\n",
|
|
|
|
" padding-bottom: 6px;\n",
|
|
|
|
" margin-bottom: 4px;\n",
|
|
|
|
" border-bottom: solid 1px var(--xr-border-color);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-header > div,\n",
|
|
|
|
".xr-header > ul {\n",
|
|
|
|
" display: inline;\n",
|
|
|
|
" margin-top: 0;\n",
|
|
|
|
" margin-bottom: 0;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-obj-type,\n",
|
|
|
|
".xr-array-name {\n",
|
|
|
|
" margin-left: 2px;\n",
|
|
|
|
" margin-right: 10px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-obj-type {\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-sections {\n",
|
|
|
|
" padding-left: 0 !important;\n",
|
|
|
|
" display: grid;\n",
|
|
|
|
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item {\n",
|
|
|
|
" display: contents;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item input {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item input + label {\n",
|
|
|
|
" color: var(--xr-disabled-color);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item input:enabled + label {\n",
|
|
|
|
" cursor: pointer;\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-item input:enabled + label:hover {\n",
|
|
|
|
" color: var(--xr-font-color0);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary {\n",
|
|
|
|
" grid-column: 1;\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
" font-weight: 500;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary > span {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" padding-left: 0.5em;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:disabled + label {\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in + label:before {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" content: 'â–º';\n",
|
|
|
|
" font-size: 11px;\n",
|
|
|
|
" width: 15px;\n",
|
|
|
|
" text-align: center;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:disabled + label:before {\n",
|
|
|
|
" color: var(--xr-disabled-color);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:checked + label:before {\n",
|
|
|
|
" content: 'â–¼';\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:checked + label > span {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary,\n",
|
|
|
|
".xr-section-inline-details {\n",
|
|
|
|
" padding-top: 4px;\n",
|
|
|
|
" padding-bottom: 4px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-inline-details {\n",
|
|
|
|
" grid-column: 2 / -1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-details {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
" grid-column: 1 / -1;\n",
|
|
|
|
" margin-bottom: 5px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-section-summary-in:checked ~ .xr-section-details {\n",
|
|
|
|
" display: contents;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-wrap {\n",
|
|
|
|
" grid-column: 1 / -1;\n",
|
|
|
|
" display: grid;\n",
|
|
|
|
" grid-template-columns: 20px auto;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-wrap > label {\n",
|
|
|
|
" grid-column: 1;\n",
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-preview {\n",
|
|
|
|
" color: var(--xr-font-color3);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-preview,\n",
|
|
|
|
".xr-array-data {\n",
|
|
|
|
" padding: 0 5px !important;\n",
|
|
|
|
" grid-column: 2;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-data,\n",
|
|
|
|
".xr-array-in:checked ~ .xr-array-preview {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-array-in:checked ~ .xr-array-data,\n",
|
|
|
|
".xr-array-preview {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list {\n",
|
|
|
|
" display: inline-block !important;\n",
|
|
|
|
" list-style: none;\n",
|
|
|
|
" padding: 0 !important;\n",
|
|
|
|
" margin: 0;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list li {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" padding: 0;\n",
|
|
|
|
" margin: 0;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list:before {\n",
|
|
|
|
" content: '(';\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list:after {\n",
|
|
|
|
" content: ')';\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-dim-list li:not(:last-child):after {\n",
|
|
|
|
" content: ',';\n",
|
|
|
|
" padding-right: 5px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-has-index {\n",
|
|
|
|
" font-weight: bold;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-list,\n",
|
|
|
|
".xr-var-item {\n",
|
|
|
|
" display: contents;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-item > div,\n",
|
|
|
|
".xr-var-item label,\n",
|
|
|
|
".xr-var-item > .xr-var-name span {\n",
|
|
|
|
" background-color: var(--xr-background-color-row-even);\n",
|
|
|
|
" margin-bottom: 0;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-item > .xr-var-name:hover span {\n",
|
|
|
|
" padding-right: 5px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-list > li:nth-child(odd) > div,\n",
|
|
|
|
".xr-var-list > li:nth-child(odd) > label,\n",
|
|
|
|
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
|
|
|
|
" background-color: var(--xr-background-color-row-odd);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-name {\n",
|
|
|
|
" grid-column: 1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-dims {\n",
|
|
|
|
" grid-column: 2;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-dtype {\n",
|
|
|
|
" grid-column: 3;\n",
|
|
|
|
" text-align: right;\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-preview {\n",
|
|
|
|
" grid-column: 4;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-index-preview {\n",
|
|
|
|
" grid-column: 2 / 5;\n",
|
|
|
|
" color: var(--xr-font-color2);\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-name,\n",
|
|
|
|
".xr-var-dims,\n",
|
|
|
|
".xr-var-dtype,\n",
|
|
|
|
".xr-preview,\n",
|
|
|
|
".xr-attrs dt {\n",
|
|
|
|
" white-space: nowrap;\n",
|
|
|
|
" overflow: hidden;\n",
|
|
|
|
" text-overflow: ellipsis;\n",
|
|
|
|
" padding-right: 10px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-name:hover,\n",
|
|
|
|
".xr-var-dims:hover,\n",
|
|
|
|
".xr-var-dtype:hover,\n",
|
|
|
|
".xr-attrs dt:hover {\n",
|
|
|
|
" overflow: visible;\n",
|
|
|
|
" width: auto;\n",
|
|
|
|
" z-index: 1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-attrs,\n",
|
|
|
|
".xr-var-data,\n",
|
|
|
|
".xr-index-data {\n",
|
|
|
|
" display: none;\n",
|
|
|
|
" background-color: var(--xr-background-color) !important;\n",
|
|
|
|
" padding-bottom: 5px !important;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
|
|
|
|
".xr-var-data-in:checked ~ .xr-var-data,\n",
|
|
|
|
".xr-index-data-in:checked ~ .xr-index-data {\n",
|
|
|
|
" display: block;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-data > table {\n",
|
|
|
|
" float: right;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-var-name span,\n",
|
|
|
|
".xr-var-data,\n",
|
|
|
|
".xr-index-name div,\n",
|
|
|
|
".xr-index-data,\n",
|
|
|
|
".xr-attrs {\n",
|
|
|
|
" padding-left: 25px !important;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs,\n",
|
|
|
|
".xr-var-attrs,\n",
|
|
|
|
".xr-var-data,\n",
|
|
|
|
".xr-index-data {\n",
|
|
|
|
" grid-column: 1 / -1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
"dl.xr-attrs {\n",
|
|
|
|
" padding: 0;\n",
|
|
|
|
" margin: 0;\n",
|
|
|
|
" display: grid;\n",
|
|
|
|
" grid-template-columns: 125px auto;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs dt,\n",
|
|
|
|
".xr-attrs dd {\n",
|
|
|
|
" padding: 0;\n",
|
|
|
|
" margin: 0;\n",
|
|
|
|
" float: left;\n",
|
|
|
|
" padding-right: 10px;\n",
|
|
|
|
" width: auto;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs dt {\n",
|
|
|
|
" font-weight: normal;\n",
|
|
|
|
" grid-column: 1;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs dt:hover span {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" background: var(--xr-background-color);\n",
|
|
|
|
" padding-right: 10px;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-attrs dd {\n",
|
|
|
|
" grid-column: 2;\n",
|
|
|
|
" white-space: pre-wrap;\n",
|
|
|
|
" word-break: break-all;\n",
|
|
|
|
"}\n",
|
|
|
|
"\n",
|
|
|
|
".xr-icon-database,\n",
|
|
|
|
".xr-icon-file-text2,\n",
|
|
|
|
".xr-no-icon {\n",
|
|
|
|
" display: inline-block;\n",
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
" width: 1em;\n",
|
|
|
|
" height: 1.5em !important;\n",
|
|
|
|
" stroke-width: 0;\n",
|
|
|
|
" stroke: currentColor;\n",
|
|
|
|
" fill: currentColor;\n",
|
|
|
|
"}\n",
|
|
|
|
"</style><pre class='xr-text-repr-fallback'><xarray.Dataset>\n",
|
|
|
|
"Dimensions: (final_amp: 11, runs: 3, x: 1200, y: 1920)\n",
|
|
|
|
"Coordinates:\n",
|
|
|
|
" * final_amp (final_amp) float64 3e-05 5.5e-05 8e-05 ... 0.000255 0.00028\n",
|
|
|
|
" * runs (runs) float64 0.0 1.0 2.0\n",
|
|
|
|
"Dimensions without coordinates: x, y\n",
|
|
|
|
"Data variables:\n",
|
|
|
|
" atoms (final_amp, runs, x, y) uint16 98 101 109 106 ... 146 140 140\n",
|
|
|
|
" background (final_amp, runs, x, y) uint16 99 101 113 103 ... 147 137 137\n",
|
|
|
|
" dark (final_amp, runs, x, y) uint16 50 51 51 50 50 ... 50 51 50 49 49\n",
|
|
|
|
" shotNum (final_amp, runs) <U2 '00' '11' '22' '01' ... '10' '21' '32'\n",
|
|
|
|
" OD (final_amp, runs, x, y) float64 nan nan ... -0.03352 -0.03352\n",
|
|
|
|
"Attributes: (12/96)\n",
|
|
|
|
" TOF_free: 0.01\n",
|
|
|
|
" abs_img_freq: 110.858\n",
|
|
|
|
" absorption_imaging_flag: True\n",
|
|
|
|
" backup_data: True\n",
|
|
|
|
" blink_off_time: nan\n",
|
|
|
|
" blink_on_time: nan\n",
|
|
|
|
" ... ...\n",
|
|
|
|
" z_offset: 0.189\n",
|
|
|
|
" z_offset_img: 0.189\n",
|
|
|
|
" final_amp: [3.00e-05 5.50e-05 8.00e-05 1.05e-04 1...\n",
|
|
|
|
" runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
|
|
|
|
" scanAxis: ['final_amp', 'runs']\n",
|
|
|
|
" scanAxisLength: [33. 33.]</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-949b61aa-ea36-4d24-8d4f-b6898b8e2d9b' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-949b61aa-ea36-4d24-8d4f-b6898b8e2d9b' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>final_amp</span>: 11</li><li><span class='xr-has-index'>runs</span>: 3</li><li><span>x</span>: 1200</li><li><span>y</span>: 1920</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-c525ebef-92d9-46c0-a695-037daf75006e' class='xr-section-summary-in' type='checkbox' checked><label for='section-c525ebef-92d9-46c0-a695-037daf75006e' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>final_amp</span></div><div class='xr-var-dims'>(final_amp)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>3e-05 5.5e-05 ... 0.000255 0.00028</div><input id='attrs-a0f1df42-d3fc-4497-9a56-3144d491e584' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a0f1df42-d3fc-4497-9a56-3144d491e584' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-94fedd00-d478-4658-8bf9-325195aad768' class='xr-var-data-in' type='checkbox'><label for='data-94fedd00-d478-4658-8bf9-325195aad768' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([3.00e-05, 5.50e-05, 8.00e-05, 1.05e-04, 1.30e-04, 1.55e-04, 1.80e-04,\n",
|
|
|
|
" 2.05e-04, 2.30e-04, 2.55e-04, 2.80e-04])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>runs</span></div><div class='xr-var-dims'>(runs)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 1.0 2.0</div><input id='attrs-17b013fa-a779-4807-878c-e27156cae06e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-17b013fa-a779-4807-878c-e27156cae06e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-24a8a50b-5b08-433c-814f-ff80937dd051' class='xr-var-data-in' type='checkbox'><label for='data-24a8a50b-5b08-433c-814f-ff80937dd051' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([0., 1., 2.])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-06679ba1-8da3-4bae-835a-ef2f929da44c' class='xr-section-summary-in' type='checkbox' checked><label for='section-06679ba1-8da3-4bae-835a-ef2f929da44c' class='xr-section-summary' >Data variables: <span>(5)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>atoms</span></div><div class='xr-var-dims'>(final_amp, runs, x, y)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>98 101 109 106 ... 146 146 140 140</div><input id='attrs-ef7376b6-d6d5-496c-aee3-899aecd26ae4' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-ef7376b6-d6d5-496c-aee3-899aecd26ae4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-68e15cbf-1931-48f0-a223-bc56634d11af' class='xr-var-data-in' type='checkbox'><label for='data-68e15cbf-1931-48f0-a223-bc56634d11af' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>IMAGE_SUBCLASS :</span></dt><dd>IMAGE_GRAYSCALE</dd><dt><span>IMAGE_VERSION :</span></dt><dd>1.2</dd><dt><span>IMAGE_WHITE_IS_ZERO :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>array([[[[ 98, 101, 109, ..., 150, 147, 156],\n",
|
|
|
|
" [102, 105, 106, ..., 142, 145, 143],\n",
|
|
|
|
" [ 95, 97, 106, ..., 147, 133, 146],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [106, 112, 111, ..., 159, 153, 152],\n",
|
|
|
|
" [112, 117, 115, ..., 161, 159, 148],\n",
|
|
|
|
" [110, 117, 116, ..., 144, 150, 135]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[ 97, 99, 105, ..., 147, 142, 150],\n",
|
|
|
|
" [ 96, 97, 103, ..., 148, 142, 144],\n",
|
|
|
|
" [ 93, 100, 105, ..., 139, 136, 141],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [112, 113, 112, ..., 160, 157, 145],\n",
|
|
|
|
" [112, 124, 116, ..., 157, 149, 144],\n",
|
|
|
|
" [117, 113, 112, ..., 142, 134, 143]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[105, 98, 109, ..., 143, 144, 145],\n",
|
|
|
|
" [ 96, 99, 104, ..., 150, 137, 157],\n",
|
|
|
|
" [ 96, 92, 105, ..., 142, 138, 141],\n",
|
|
|
|
" ...,\n",
|
|
|
|
"...\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [111, 109, 110, ..., 158, 159, 145],\n",
|
|
|
|
" [113, 110, 114, ..., 151, 155, 144],\n",
|
|
|
|
" [115, 118, 115, ..., 141, 143, 138]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[106, 105, 105, ..., 154, 143, 145],\n",
|
|
|
|
" [101, 100, 102, ..., 148, 143, 151],\n",
|
|
|
|
" [ 95, 95, 106, ..., 141, 143, 143],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [110, 107, 109, ..., 159, 156, 148],\n",
|
|
|
|
" [113, 113, 119, ..., 154, 154, 140],\n",
|
|
|
|
" [112, 120, 114, ..., 140, 139, 140]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[108, 99, 107, ..., 142, 147, 148],\n",
|
|
|
|
" [ 94, 95, 106, ..., 138, 139, 142],\n",
|
|
|
|
" [ 93, 101, 105, ..., 136, 140, 138],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [107, 111, 115, ..., 149, 158, 152],\n",
|
|
|
|
" [105, 118, 111, ..., 152, 149, 138],\n",
|
|
|
|
" [117, 123, 117, ..., 146, 140, 140]]]], dtype=uint16)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>background</span></div><div class='xr-var-dims'>(final_amp, runs, x, y)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>99 101 113 103 ... 145 147 137 137</div><input id='attrs-3795a5e3-2346-4f40-8168-6c28f529863f' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-3795a5e3-2346-4f40-8168-6c28f529863f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-970db8a1-e319-4f63-981c-1b8a6d167dcd' class='xr-var-data-in' type='checkbox'><label for='data-970db8a1-e319-4f63-981c-1b8a6d167dcd' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>IMAGE_SUBCLASS :</span></dt><dd>IMAGE_GRAYSCALE</dd><dt><span>IMAGE_VERSION :</span></dt><dd>1.2</dd><dt><span>IMAGE_WHITE_IS_ZERO :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>array([[[[ 99, 101, 113, ..., 146, 143, 146],\n",
|
|
|
|
" [ 97, 103, 104, ..., 145, 140, 154],\n",
|
|
|
|
" [ 97, 103, 110, ..., 146, 132, 139],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [112, 112, 114, ..., 155, 152, 147],\n",
|
|
|
|
" [112, 119, 117, ..., 154, 150, 149],\n",
|
|
|
|
" [112, 111, 112, ..., 143, 142, 137]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[ 98, 100, 107, ..., 141, 150, 146],\n",
|
|
|
|
" [100, 97, 106, ..., 147, 146, 142],\n",
|
|
|
|
" [ 91, 97, 102, ..., 140, 139, 137],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [108, 114, 110, ..., 153, 153, 147],\n",
|
|
|
|
" [114, 116, 115, ..., 150, 148, 143],\n",
|
|
|
|
" [111, 111, 119, ..., 136, 138, 140]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[ 99, 97, 111, ..., 144, 140, 150],\n",
|
|
|
|
" [ 96, 98, 107, ..., 142, 141, 154],\n",
|
|
|
|
" [ 94, 100, 102, ..., 149, 140, 141],\n",
|
|
|
|
" ...,\n",
|
|
|
|
"...\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [109, 118, 108, ..., 158, 148, 152],\n",
|
|
|
|
" [111, 117, 111, ..., 155, 152, 138],\n",
|
|
|
|
" [120, 120, 120, ..., 144, 129, 134]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[103, 102, 111, ..., 148, 146, 148],\n",
|
|
|
|
" [ 98, 105, 103, ..., 151, 149, 150],\n",
|
|
|
|
" [ 99, 99, 100, ..., 143, 140, 144],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [112, 107, 113, ..., 152, 164, 151],\n",
|
|
|
|
" [114, 118, 118, ..., 153, 152, 147],\n",
|
|
|
|
" [117, 114, 116, ..., 145, 139, 141]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[103, 100, 111, ..., 142, 150, 147],\n",
|
|
|
|
" [100, 98, 106, ..., 141, 140, 143],\n",
|
|
|
|
" [ 98, 98, 102, ..., 143, 140, 144],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [109, 107, 112, ..., 154, 157, 146],\n",
|
|
|
|
" [116, 117, 113, ..., 151, 150, 145],\n",
|
|
|
|
" [111, 113, 114, ..., 147, 137, 137]]]], dtype=uint16)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>dark</span></div><div class='xr-var-dims'>(final_amp, runs, x, y)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>50 51 51 50 50 ... 50 51 50 49 49</div><input id='attrs-080cd5a3-797b-43c4-bad3-7f581574ef2b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-080cd5a3-797b-43c4-bad3-7f581574ef2b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4130f6a3-a596-48c9-ba65-891169a01b84' class='xr-var-data-in' type='checkbox'><label for='data-4130f6a3-a596-48c9-ba65-891169a01b84' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>IMAGE_SUBCLASS :</span></dt><dd>IMAGE_GRAYSCALE</dd><dt><span>IMAGE_VERSION :</span></dt><dd>1.2</dd><dt><span>IMAGE_WHITE_IS_ZERO :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>array([[[[50, 51, 51, ..., 51, 52, 51],\n",
|
|
|
|
" [49, 50, 49, ..., 51, 50, 49],\n",
|
|
|
|
" [51, 49, 49, ..., 51, 50, 50],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [50, 51, 51, ..., 50, 50, 51],\n",
|
|
|
|
" [51, 50, 52, ..., 50, 51, 51],\n",
|
|
|
|
" [51, 50, 51, ..., 50, 50, 49]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[51, 51, 51, ..., 48, 50, 52],\n",
|
|
|
|
" [50, 51, 52, ..., 49, 52, 50],\n",
|
|
|
|
" [51, 51, 51, ..., 50, 49, 51],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [50, 50, 50, ..., 49, 49, 52],\n",
|
|
|
|
" [51, 50, 50, ..., 50, 51, 50],\n",
|
|
|
|
" [51, 51, 50, ..., 50, 50, 51]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[50, 50, 51, ..., 51, 51, 49],\n",
|
|
|
|
" [52, 50, 50, ..., 51, 51, 51],\n",
|
|
|
|
" [50, 50, 49, ..., 51, 50, 50],\n",
|
|
|
|
" ...,\n",
|
|
|
|
"...\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [50, 50, 50, ..., 50, 50, 50],\n",
|
|
|
|
" [48, 51, 50, ..., 50, 49, 49],\n",
|
|
|
|
" [52, 50, 51, ..., 50, 49, 50]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[50, 50, 49, ..., 52, 50, 51],\n",
|
|
|
|
" [52, 50, 50, ..., 50, 49, 49],\n",
|
|
|
|
" [49, 50, 50, ..., 50, 51, 49],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [49, 51, 52, ..., 52, 50, 50],\n",
|
|
|
|
" [51, 51, 51, ..., 51, 50, 50],\n",
|
|
|
|
" [50, 50, 50, ..., 50, 50, 51]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[50, 49, 51, ..., 50, 50, 50],\n",
|
|
|
|
" [51, 51, 50, ..., 51, 51, 52],\n",
|
|
|
|
" [51, 51, 52, ..., 51, 49, 51],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [50, 50, 50, ..., 50, 50, 50],\n",
|
|
|
|
" [50, 51, 51, ..., 51, 50, 50],\n",
|
|
|
|
" [50, 50, 48, ..., 50, 49, 49]]]], dtype=uint16)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>shotNum</span></div><div class='xr-var-dims'>(final_amp, runs)</div><div class='xr-var-dtype'><U2</div><div class='xr-var-preview xr-preview'>'00' '11' '22' ... '10' '21' '32'</div><input id='attrs-af436924-4f7b-4c52-a631-6815c461f586' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-af436924-4f7b-4c52-a631-6815c461f586' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4ac60779-6750-40d4-a34a-438d6f5325b5' class='xr-var-data-in' type='checkbox'><label for='data-4ac60779-6750-40d4-a34a-438d6f5325b5' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([['00', '11', '22'],\n",
|
|
|
|
" ['01', '12', '23'],\n",
|
|
|
|
" ['02', '13', '24'],\n",
|
|
|
|
" ['03', '14', '25'],\n",
|
|
|
|
" ['04', '15', '26'],\n",
|
|
|
|
" ['05', '16', '27'],\n",
|
|
|
|
" ['06', '17', '28'],\n",
|
|
|
|
" ['07', '18', '29'],\n",
|
|
|
|
" ['08', '19', '30'],\n",
|
|
|
|
" ['09', '20', '31'],\n",
|
|
|
|
" ['10', '21', '32']], dtype='<U2')</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>OD</span></div><div class='xr-var-dims'>(final_amp, runs, x, y)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>nan nan nan ... -0.03352 -0.03352</div><input id='attrs-a2fdb871-0347-4b10-bf56-ead2eda88f59' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a2fdb871-0347-4b10-bf56-ead2eda88f59' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a6f314ea-3e80-46a4-998a-15628b22bb86' class='xr-var-data-in' type='checkbox'><label for='data-a6f314ea-3e80-46a4-998a-15628b22bb86' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>IMAGE_SUBCLASS :</span></dt><dd>IMAGE_GRAYSCALE</dd><dt><span>IMAGE_VERSION :</span></dt><dd>1.2</dd><dt><span>IMAGE_WHITE_IS_ZERO :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>array([[[[ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
"...\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan],\n",
|
|
|
|
" [ nan, nan, nan, ..., nan,\n",
|
|
|
|
" nan, nan]],\n",
|
|
|
|
"\n",
|
|
|
|
" [[-0.0901511 , 0.01980263, 0.06899287, ..., -0. ,\n",
|
|
|
|
" 0.03045921, -0.0102565 ],\n",
|
|
|
|
" [ 0.13062018, 0.06595797, -0. , ..., 0.03390155,\n",
|
|
|
|
" 0.01129956, 0.01104984],\n",
|
|
|
|
" [ 0.11247798, -0.0618754 , -0.05826891, ..., 0.07913732,\n",
|
|
|
|
" -0. , 0.06669137],\n",
|
|
|
|
" ...,\n",
|
|
|
|
" [ 0.03448618, -0.0678226 , -0.04725288, ..., 0.04927105,\n",
|
|
|
|
" -0.00930239, -0.06062462],\n",
|
|
|
|
" [ 0.18232156, -0.01503788, 0.03278982, ..., -0.00995033,\n",
|
|
|
|
" 0.01005034, 0.07654008],\n",
|
|
|
|
" [-0.09381876, -0.14732471, -0.04445176, ..., 0.01036279,\n",
|
|
|
|
" -0.03352269, -0.03352269]]]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-93d409dc-6e21-4170-9c26-e3a694c72f0f' class='xr-section-summary-in' type='checkbox' ><label for='section-93d409dc-6e21-4170-9c26-e3a694c72f0f' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>final_amp</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-6881df01-c250-40f5-970f-bcce451a1f40' class='xr-index-data-in' type='checkbox'/><label for='index-6881df01-c250-40f5-970f-bcce451a1f40' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 3e-05, 5.5e-05, 8e-05, 0.000105, 0.00013, 0.000155,\n",
|
|
|
|
" 0.00018, 0.000205, 0.00023, 0.000255, 0.00028],\n",
|
|
|
|
" dtype='float64', name='final_amp'))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>runs</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-db489bc8-fca3-4858-9833-95bbd94b728c' class='xr-index-data-in' type='checkbox'/><label for='index-db489bc8-fca3-4858-9833-95bbd94b728c' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([0.0, 1.0, 2.0], dtype='float64', name='runs'))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-499916ad-c41c-451f-a8d8-a778d08b5bc5' class='xr-section-summary-in' type='checkbox' ><label for='section-499916ad-c41c-451f-a8d8-a778d08b5bc5' class='xr-section-summary' >Attributes: <span>(96)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>TOF_free :</span></dt><dd>0.01</dd><dt><span>abs_img_freq :</span></dt><dd>110.858</dd><dt><span>absorption_imaging_flag :</span></dt><dd>True</dd><dt><span>backup_data :</span></dt><dd>True</dd><dt><span>blink_off_time :</span></dt><dd>nan</dd><dt><span>blink_on_time :</span></dt><dd>nan</dd><dt><span>c_duration :</span></dt><dd>0.2</dd><dt><span>cmot_final_current :</span></dt><dd>0.65</dd><dt><span>cmot_hold :</span></dt><dd>0.06</dd><dt><span>cmot_initial_current :</span></dt><dd>0.18</dd><dt><span>compX_current :</span></dt><dd>0.005</dd><dt><span>compX_current_sg :</span></dt><dd>0</dd><dt><span>compX_final_current :</span></dt><dd>0.002</dd><dt><span>compX_initial_current :</span></dt><dd>0.005</dd><dt><span>compY_current :</span></dt><dd>0</dd><dt><span>compY_current_sg :</span></dt><dd>0</dd><dt><span>compY_final_current :</span></dt><dd>0</dd><dt><span>compY_initial_current :</span></dt><dd>0</dd><dt><span>compZ_current :</span></dt><dd>0</dd><dt><span>compZ_current_sg :</span></dt><dd>0.189</dd><dt><span>compZ_final_current :</span></dt><dd>0.285</dd><dt><span>compZ_initial_current :</span></dt><dd>0</dd><dt><span>default_camera :</span></dt><dd>1</dd><dt><span>evap_1_arm_1_final_pow :</span></dt><dd>0.35</dd><dt><span>evap_1_arm_1_mod_depth_final :</span></dt><dd>0</dd><dt><span>evap_1_arm_1_mod_depth_initial :</span></dt><dd>1.0</dd><dt><span>evap_1_arm_1_mod_ramp_duration :</span></dt><dd>1.15</dd><dt><span>evap_1_arm_1_pow_ramp_duration :</span></dt><dd>1.65</dd><dt><span>evap_1_arm_1_start_pow :</span></dt><dd>7</dd><dt><span>evap_1_arm_2_final_pow :</span></dt><dd>5</dd><dt><span>evap_1_arm_2_ramp_duration :</span></dt><dd>0.5</dd><dt><span>evap_1_arm_2_start_pow :</span></dt><dd>0</dd><dt><span>evap_1_mod_ramp_trunc_value :</span></dt><dd>1</dd><dt><span>evap_1_pow_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_1_rate_constant_1 :</span></dt><dd>0.525</dd><dt><span>evap_1_rate_constant_2 :</span></dt><dd>0.51</dd><dt><span>evap_2_arm_1_final_pow :</span></dt><dd>0.037</dd><dt><span>evap_2_arm_1_start_pow :</span></dt><dd>0.35</dd><dt><span>evap_2_arm_2_final_pow :</span></dt><dd>0.09</dd><dt><span>evap_2_arm_2_start_pow :</span></dt><dd>5</dd><dt><span>evap_2_ramp_duration :</span></dt><dd>1.0</dd><dt><span>evap_2_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_2_rate_constant_1 :</span></dt><dd>0.37</dd><dt><span>evap_2_rate_constant_2 :</span></dt><dd>0.71</dd><dt><span>evap_3_arm_1_final_pow :</span></dt><dd>0.1038</dd><dt><span>evap_3_arm_1_mod_depth_final :</span></dt><dd>0.43</dd><dt><span>evap_3_arm_1_mod_depth_initial :</span></dt><dd>0</dd><dt><span>evap_3_arm_1_start_pow :</span></dt><dd>0.037</dd><dt><span>evap_3_ramp_duration :</span></dt><dd>0.1</dd><dt><span>evap_3_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_3_rate_constant_1 :</span></dt><dd>-0.879</dd><dt><span>evap_3_rate_constant_2 :</span></dt><dd>-0.297</dd><dt><span>final_freq :</span></dt><dd>104</dd><dt><span>gradCoil_current :</span></dt><dd>0.18</dd><dt><span>gradCoil_current_sg :</span></dt><dd>0</dd>
|
|
|
|
" 2.30e-04 2.55e-04 2.80e-04 3.00e-05 5.50e-05 8.00e-05 1.05e-04 1.30e-04\n",
|
|
|
|
" 1.55e-04 1.80e-04 2.05e-04 2.30e-04 2.55e-04 2.80e-04 3.00e-05 5.50e-05\n",
|
|
|
|
" 8.00e-05 1.05e-04 1.30e-04 1.55e-04 1.80e-04 2.05e-04 2.30e-04 2.55e-04\n",
|
|
|
|
" 2.80e-04]</dd><dt><span>runs :</span></dt><dd>[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 2. 2.\n",
|
|
|
|
" 2. 2. 2. 2. 2. 2. 2. 2. 2.]</dd><dt><span>scanAxis :</span></dt><dd>['final_amp', 'runs']</dd><dt><span>scanAxisLength :</span></dt><dd>[33. 33.]</dd></dl></div></li></ul></div></div>"
|
|
|
|
],
|
|
|
|
"text/plain": [
|
|
|
|
"<xarray.Dataset>\n",
|
|
|
|
"Dimensions: (final_amp: 11, runs: 3, x: 1200, y: 1920)\n",
|
|
|
|
"Coordinates:\n",
|
|
|
|
" * final_amp (final_amp) float64 3e-05 5.5e-05 8e-05 ... 0.000255 0.00028\n",
|
|
|
|
" * runs (runs) float64 0.0 1.0 2.0\n",
|
|
|
|
"Dimensions without coordinates: x, y\n",
|
|
|
|
"Data variables:\n",
|
|
|
|
" atoms (final_amp, runs, x, y) uint16 98 101 109 106 ... 146 140 140\n",
|
|
|
|
" background (final_amp, runs, x, y) uint16 99 101 113 103 ... 147 137 137\n",
|
|
|
|
" dark (final_amp, runs, x, y) uint16 50 51 51 50 50 ... 50 51 50 49 49\n",
|
|
|
|
" shotNum (final_amp, runs) <U2 '00' '11' '22' '01' ... '10' '21' '32'\n",
|
|
|
|
" OD (final_amp, runs, x, y) float64 nan nan ... -0.03352 -0.03352\n",
|
|
|
|
"Attributes: (12/96)\n",
|
|
|
|
" TOF_free: 0.01\n",
|
|
|
|
" abs_img_freq: 110.858\n",
|
|
|
|
" absorption_imaging_flag: True\n",
|
|
|
|
" backup_data: True\n",
|
|
|
|
" blink_off_time: nan\n",
|
|
|
|
" blink_on_time: nan\n",
|
|
|
|
" ... ...\n",
|
|
|
|
" z_offset: 0.189\n",
|
|
|
|
" z_offset_img: 0.189\n",
|
|
|
|
" final_amp: [3.00e-05 5.50e-05 8.00e-05 1.05e-04 1...\n",
|
|
|
|
" runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
|
|
|
|
" scanAxis: ['final_amp', 'runs']\n",
|
|
|
|
" scanAxisLength: [33. 33.]"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 18,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
2023-05-04 13:47:33 +02:00
|
|
|
"source": [
|
2023-05-04 19:16:35 +02:00
|
|
|
"from ToolFunction.ToolFunction import *\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
"\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"remove_bad_shots(dataSet['OD'], runs=0)"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Select region of interests"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 18:32:17 +02:00
|
|
|
"imageAnalyser.center = (529, 962)\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
"imageAnalyser.span = (100,100)\n",
|
|
|
|
"imageAnalyser.fraction = (0.1, 0.1)\n",
|
|
|
|
"\n",
|
|
|
|
"# imageAnalyser.center = (890, 1150)\n",
|
|
|
|
"# imageAnalyser.span = (600,600)\n",
|
|
|
|
"# imageAnalyser.fraction = (0.1, 0.1)\n",
|
|
|
|
"\n",
|
|
|
|
"# imageAnalyser.center = (890, 950)\n",
|
|
|
|
"# imageAnalyser.span = (100,100)\n",
|
|
|
|
"# imageAnalyser.fraction = (0.1, 0.1)\n",
|
|
|
|
"\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"dataSet_crop = imageAnalyser.crop_image(dataSet)"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
2023-05-04 18:32:17 +02:00
|
|
|
"outputs": [],
|
2023-04-24 13:03:23 +02:00
|
|
|
"source": [
|
2023-05-04 19:16:35 +02:00
|
|
|
"dataSet_crop.OD.isel(runs=[0]).plot.pcolormesh(cmap='jet', vmin=0, col=scanAxis[0], row=scanAxis[1])\n",
|
|
|
|
"# dataSet_crop.OD.plot()"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Remove the background"
|
2023-04-24 13:03:23 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-04-24 13:03:23 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 19:16:35 +02:00
|
|
|
"dataSet_crop['OD'] = dataSet_crop['OD'] + 500"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 19:16:35 +02:00
|
|
|
"dataSet_crop['OD'] = imageAnalyser.substract_offset(dataSet_crop['OD'])"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Test Fit"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 18:32:17 +02:00
|
|
|
"fitAnalyser = FitAnalyser(\"Two Gaussian-2D\", fitDim=2)\n",
|
2023-04-24 13:03:23 +02:00
|
|
|
"\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"params = fitAnalyser.guess(dataSet_crop.OD, dask=\"parallelized\")"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 19:16:35 +02:00
|
|
|
"fitResult = fitAnalyser.fit(dataSet_crop.OD, params, dask=\"parallelized\")"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 18:32:17 +02:00
|
|
|
"fitCurve = fitAnalyser.eval(fitResult, x=np.arange(100), y=np.arange(100)).load()"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
2023-05-04 18:32:17 +02:00
|
|
|
"outputs": [],
|
2023-05-04 13:47:33 +02:00
|
|
|
"source": [
|
2023-05-04 19:16:35 +02:00
|
|
|
"fitCurve.isel(**{scanAxis[0]:np.arange(30), 'runs':range(dataSet_crop.OD['runs'].size)}).plot.pcolormesh(cmap='jet', vmin=0, col=scanAxis[0], row=scanAxis[1])"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Get the Ncount"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-04 19:16:35 +02:00
|
|
|
"Ncount = dataSet_crop.OD.sum(dim=(scanAxis[1], 'x', 'y'))"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-04 18:32:17 +02:00
|
|
|
"execution_count": null,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
2023-05-04 18:32:17 +02:00
|
|
|
"outputs": [],
|
2023-05-04 13:47:33 +02:00
|
|
|
"source": [
|
2023-05-04 18:32:17 +02:00
|
|
|
"fig = plt.figure()\n",
|
|
|
|
"Ncount.plot(fig=fig)"
|
2023-04-24 13:03:23 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
2023-05-04 13:47:33 +02:00
|
|
|
"display_name": "env",
|
2023-04-24 13:03:23 +02:00
|
|
|
"language": "python",
|
|
|
|
"name": "python3"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 3
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython3",
|
2023-05-04 18:32:17 +02:00
|
|
|
"version": "3.9.13"
|
2023-04-24 13:03:23 +02:00
|
|
|
},
|
2023-05-04 13:47:33 +02:00
|
|
|
"orig_nbformat": 4,
|
|
|
|
"vscode": {
|
|
|
|
"interpreter": {
|
|
|
|
"hash": "c05913ad4f24fdc6b2418069394dc5835b1981849b107c9ba6df693aafd66650"
|
|
|
|
}
|
|
|
|
}
|
2023-04-24 13:03:23 +02:00
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 2
|
|
|
|
}
|