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",
|
2023-05-05 18:25:03 +02:00
|
|
|
"from uncertainties import ufloat\n",
|
|
|
|
"from uncertainties import unumpy as unp\n",
|
|
|
|
"from uncertainties import umath\n",
|
|
|
|
"\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
"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",
|
2023-05-05 18:25:03 +02:00
|
|
|
"from ToolFunction.ToolFunction import *\n",
|
|
|
|
"\n",
|
|
|
|
"from ToolFunction.HomeMadeXarrayFunction import errorbar, dataarray_plot_errorbar\n",
|
|
|
|
"xr.plot.dataarray_plot.errorbar = errorbar\n",
|
|
|
|
"xr.plot.accessor.DataArrayPlotAccessor.errorbar = dataarray_plot_errorbar\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
"\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": [
|
2023-05-07 00:38:52 +02:00
|
|
|
{
|
|
|
|
"name": "stderr",
|
|
|
|
"output_type": "stream",
|
|
|
|
"text": [
|
|
|
|
"D:\\Program Files\\Python\\Python38\\Lib\\site-packages\\distributed\\node.py:182: UserWarning: Port 8787 is already in use.\n",
|
|
|
|
"Perhaps you already have a cluster running?\n",
|
|
|
|
"Hosting the HTTP server on port 51109 instead\n",
|
|
|
|
" warnings.warn(\n"
|
|
|
|
]
|
|
|
|
},
|
2023-05-04 19:16:35 +02:00
|
|
|
{
|
|
|
|
"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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-224091e0-ec5e-11ed-addc-9c7bef43b4fb</p>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:51109/status\" target=\"_blank\">http://127.0.0.1:51109/status</a>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
"\n",
|
|
|
|
" </table>\n",
|
|
|
|
"\n",
|
|
|
|
" \n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <button style=\"margin-bottom: 12px;\" data-commandlinker-command=\"dask:populate-and-launch-layout\" data-commandlinker-args='{\"url\": \"http://127.0.0.1:51109/status\" }'>\n",
|
|
|
|
" Launch dashboard in JupyterLab\n",
|
|
|
|
" </button>\n",
|
|
|
|
" \n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">f360131e</p>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:51109/status\" target=\"_blank\">http://127.0.0.1:51109/status</a>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-0e581a89-0733-49c5-8d25-60e26c6ac0bf</p>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <table style=\"width: 100%; text-align: left;\">\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td style=\"text-align: left;\">\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Comm:</strong> tcp://127.0.0.1:51110\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:51109/status\" target=\"_blank\">http://127.0.0.1:51109/status</a>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:51150\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:51155/status\" target=\"_blank\">http://127.0.0.1:51155/status</a>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:51113\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Local directory: </strong> C:\\Users\\Jianshun Gao\\AppData\\Local\\Temp\\dask-worker-space\\worker-2b8gvagb\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:51141\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:51148/status\" target=\"_blank\">http://127.0.0.1:51148/status</a>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:51114\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Local directory: </strong> C:\\Users\\Jianshun Gao\\AppData\\Local\\Temp\\dask-worker-space\\worker-a2ff372r\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:51139\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:51145/status\" target=\"_blank\">http://127.0.0.1:51145/status</a>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:51115\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Local directory: </strong> C:\\Users\\Jianshun Gao\\AppData\\Local\\Temp\\dask-worker-space\\worker-r4y9shfe\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:51140\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:51144/status\" target=\"_blank\">http://127.0.0.1:51144/status</a>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:51116\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Local directory: </strong> C:\\Users\\Jianshun Gao\\AppData\\Local\\Temp\\dask-worker-space\\worker-jcbj2z99\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:51143\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:51153/status\" target=\"_blank\">http://127.0.0.1:51153/status</a>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:51117\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Local directory: </strong> C:\\Users\\Jianshun Gao\\AppData\\Local\\Temp\\dask-worker-space\\worker-3ol5ipx3\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Comm: </strong> tcp://127.0.0.1:51142\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:51151/status\" target=\"_blank\">http://127.0.0.1:51151/status</a>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:51118\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </td>\n",
|
|
|
|
" <td style=\"text-align: left;\"></td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <td colspan=\"2\" style=\"text-align: left;\">\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" <strong>Local directory: </strong> C:\\Users\\Jianshun Gao\\AppData\\Local\\Temp\\dask-worker-space\\worker-0u_6_n9d\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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": [
|
2023-05-07 00:38:52 +02:00
|
|
|
"<Client: 'tcp://127.0.0.1:51110' processes=6 threads=60, memory=55.88 GiB>"
|
2023-05-04 19:16:35 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"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-05 18:25:03 +02:00
|
|
|
"# filepath = \"//DyLabNAS/Data/Repetition_scan/2023/04/21/0002/*.h5\"\n",
|
2023-05-04 13:47:33 +02:00
|
|
|
"\n",
|
2023-05-06 11:23:38 +02:00
|
|
|
"filepath = r\"./testData/0002/*.h5\"\n",
|
2023-04-24 13:03:23 +02:00
|
|
|
"\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
"# filepath = r\"./testData/0002/2023-04-21_0002_Evaporative_Cooling_0.h5\"\n",
|
|
|
|
"\n",
|
|
|
|
"# filepath = r'd:/Jianshun Gao/Simulations/analyseScripts/testData/0002/2023-04-21_0002_Evaporative_Cooling_0.h5'\n",
|
|
|
|
"\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
"# filepath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/04/18/0003/*.h5\"\n",
|
|
|
|
"\n",
|
2023-05-06 11:23:38 +02:00
|
|
|
"# filepath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/05/04/0000/*.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": {},
|
2023-05-07 00:38:52 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "stdout",
|
|
|
|
"output_type": "stream",
|
|
|
|
"text": [
|
|
|
|
"{'unlimited_dims': set(), 'source': 'd:\\\\Jianshun Gao\\\\Simulations\\\\analyseScripts\\\\testData\\\\0002\\\\2023-04-21_0002_Evaporative_Cooling_0.h5'}\n"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2023-05-04 13:47:33 +02:00
|
|
|
"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 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
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Calculate absorption imaging"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## get OD images"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-05 18:25:03 +02:00
|
|
|
"execution_count": 6,
|
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",
|
2023-05-05 18:25:03 +02:00
|
|
|
"Dimensions: (runs: 3, x: 1200, y: 1920)\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"Coordinates:\n",
|
|
|
|
" * runs (runs) float64 0.0 1.0 2.0\n",
|
|
|
|
"Dimensions without coordinates: x, y\n",
|
|
|
|
"Data variables:\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" atoms (runs, x, y) uint16 dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" background (runs, x, y) uint16 dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" dark (runs, x, y) uint16 dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray>\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" shotNum (runs) int64 0 1 2\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" OD (runs, x, y) float64 dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray>\n",
|
2023-05-06 11:23:38 +02:00
|
|
|
"Attributes: (12/96)\n",
|
|
|
|
" TOF_free: 0.02\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" 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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" y_offset_img: 0\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" z_offset: 0.189\n",
|
|
|
|
" z_offset_img: 0.189\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" runs: [0. 1. 2.]\n",
|
|
|
|
" scanAxis: ['runs']\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" scanAxisLength: [3.]</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-562506ba-5de6-455a-868a-eb6a8fd249fd' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-562506ba-5de6-455a-868a-eb6a8fd249fd' 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'>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-f0c323de-b626-49c2-a725-b9d6ebfcc6ea' class='xr-section-summary-in' type='checkbox' checked><label for='section-f0c323de-b626-49c2-a725-b9d6ebfcc6ea' class='xr-section-summary' >Coordinates: <span>(1)</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'>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-b3cad557-e427-4ac5-814c-f06ff668fe16' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b3cad557-e427-4ac5-814c-f06ff668fe16' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-22ea35b3-1774-4e1e-8471-6be1acf96d7a' class='xr-var-data-in' type='checkbox'><label for='data-22ea35b3-1774-4e1e-8471-6be1acf96d7a' 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-e632acb3-d149-4033-a241-5a8d01e14622' class='xr-section-summary-in' type='checkbox' checked><label for='section-e632acb3-d149-4033-a241-5a8d01e14622' 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'>(runs, x, y)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray></div><input id='attrs-934b2987-a0aa-436c-94b9-7830e49b89a2' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-934b2987-a0aa-436c-94b9-7830e49b89a2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e8edce64-be70-4419-9721-78491f3a2f58' class='xr-var-data-in' type='checkbox'><label for='data-e8edce64-be70-4419-9721-78491f3a2f58' 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",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td> 13.18 MiB </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <td> 4.39 MiB </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Shape </th>\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td> (3, 1200, 1920) </td>\n",
|
|
|
|
" <td> (1, 1200, 1920) </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Dask graph </th>\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td colspan=\"2\"> 3 chunks in 10 graph layers </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <svg width=\"194\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"24\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"10\" y1=\"75\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"75\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"79\" />\n",
|
|
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"84\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"10.0,0.0 24.9485979497544,14.948597949754403 24.9485979497544,89.9485979497544 10.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
|
|
|
|
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"24\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"130\" y1=\"0\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 144.9485979497544,14.948597949754403 24.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"89\" x2=\"144\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"144\" y1=\"14\" x2=\"144\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"24.9485979497544,14.948597949754403 144.9485979497544,14.948597949754403 144.9485979497544,89.9485979497544 24.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <text x=\"84.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
|
|
|
|
" <text x=\"164.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,164.948598,52.448598)\">1200</text>\n",
|
|
|
|
" <text x=\"7.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,7.474299,102.474299)\">3</text>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"</svg>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>background</span></div><div class='xr-var-dims'>(runs, x, y)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray></div><input id='attrs-07d4d7cc-da37-4ae1-a441-45f3fad38a94' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-07d4d7cc-da37-4ae1-a441-45f3fad38a94' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-215a7593-22c0-40da-aa4d-26c86f328ecb' class='xr-var-data-in' type='checkbox'><label for='data-215a7593-22c0-40da-aa4d-26c86f328ecb' 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",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td> 13.18 MiB </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <td> 4.39 MiB </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Shape </th>\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td> (3, 1200, 1920) </td>\n",
|
|
|
|
" <td> (1, 1200, 1920) </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Dask graph </th>\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td colspan=\"2\"> 3 chunks in 10 graph layers </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <svg width=\"194\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"24\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"10\" y1=\"75\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"75\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"79\" />\n",
|
|
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"84\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"10.0,0.0 24.9485979497544,14.948597949754403 24.9485979497544,89.9485979497544 10.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
|
|
|
|
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"24\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"130\" y1=\"0\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 144.9485979497544,14.948597949754403 24.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"89\" x2=\"144\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"144\" y1=\"14\" x2=\"144\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"24.9485979497544,14.948597949754403 144.9485979497544,14.948597949754403 144.9485979497544,89.9485979497544 24.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <text x=\"84.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
|
|
|
|
" <text x=\"164.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,164.948598,52.448598)\">1200</text>\n",
|
|
|
|
" <text x=\"7.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,7.474299,102.474299)\">3</text>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"</svg>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>dark</span></div><div class='xr-var-dims'>(runs, x, y)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray></div><input id='attrs-35b57504-4fcd-4871-a3f2-3e90e75c41a4' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-35b57504-4fcd-4871-a3f2-3e90e75c41a4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-19b83311-9d82-4eff-b47a-c280a871a909' class='xr-var-data-in' type='checkbox'><label for='data-19b83311-9d82-4eff-b47a-c280a871a909' 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",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td> 13.18 MiB </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <td> 4.39 MiB </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Shape </th>\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td> (3, 1200, 1920) </td>\n",
|
|
|
|
" <td> (1, 1200, 1920) </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Dask graph </th>\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td colspan=\"2\"> 3 chunks in 10 graph layers </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <svg width=\"194\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"24\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"10\" y1=\"75\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"75\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"79\" />\n",
|
|
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"84\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"10.0,0.0 24.9485979497544,14.948597949754403 24.9485979497544,89.9485979497544 10.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
|
|
|
|
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"24\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"130\" y1=\"0\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 144.9485979497544,14.948597949754403 24.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"89\" x2=\"144\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"144\" y1=\"14\" x2=\"144\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"24.9485979497544,14.948597949754403 144.9485979497544,14.948597949754403 144.9485979497544,89.9485979497544 24.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <text x=\"84.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
|
|
|
|
" <text x=\"164.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,164.948598,52.448598)\">1200</text>\n",
|
|
|
|
" <text x=\"7.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,7.474299,102.474299)\">3</text>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"</svg>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>shotNum</span></div><div class='xr-var-dims'>(runs)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2</div><input id='attrs-ebbdac90-8f1c-4e10-92d4-918979563e58' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-ebbdac90-8f1c-4e10-92d4-918979563e58' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c447a455-2cb8-4f89-affd-5c72e71fbd58' class='xr-var-data-in' type='checkbox'><label for='data-c447a455-2cb8-4f89-affd-5c72e71fbd58' 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], dtype=int64)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>OD</span></div><div class='xr-var-dims'>(runs, x, y)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray></div><input id='attrs-6a481dde-c013-4bc6-afab-441110ae80bb' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-6a481dde-c013-4bc6-afab-441110ae80bb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d538438c-c886-4f97-9401-b4026ba0a3e2' class='xr-var-data-in' type='checkbox'><label for='data-d538438c-c886-4f97-9401-b4026ba0a3e2' 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",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td> 52.73 MiB </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" <td> 17.58 MiB </td>\n",
|
|
|
|
" </tr>\n",
|
|
|
|
" \n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Shape </th>\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td> (3, 1200, 1920) </td>\n",
|
|
|
|
" <td> (1, 1200, 1920) </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </tr>\n",
|
|
|
|
" <tr>\n",
|
|
|
|
" <th> Dask graph </th>\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <td colspan=\"2\"> 3 chunks in 40 graph layers </td>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" </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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <svg width=\"194\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"24\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"10\" y1=\"75\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"75\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"14\" y1=\"4\" x2=\"14\" y2=\"79\" />\n",
|
|
|
|
" <line x1=\"19\" y1=\"9\" x2=\"19\" y2=\"84\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"10.0,0.0 24.9485979497544,14.948597949754403 24.9485979497544,89.9485979497544 10.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"14\" y1=\"4\" x2=\"134\" y2=\"4\" />\n",
|
|
|
|
" <line x1=\"19\" y1=\"9\" x2=\"139\" y2=\"9\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"10\" y1=\"0\" x2=\"24\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"130\" y1=\"0\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"10.0,0.0 130.0,0.0 144.9485979497544,14.948597949754403 24.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Horizontal lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"144\" y2=\"14\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"24\" y1=\"89\" x2=\"144\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Vertical lines -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <line x1=\"24\" y1=\"14\" x2=\"24\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
|
|
|
" <line x1=\"144\" y1=\"14\" x2=\"144\" y2=\"89\" style=\"stroke-width:2\" />\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Colored Rectangle -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <polygon points=\"24.9485979497544,14.948597949754403 144.9485979497544,14.948597949754403 144.9485979497544,89.9485979497544 24.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"\n",
|
|
|
|
" <!-- Text -->\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" <text x=\"84.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
|
|
|
|
" <text x=\"164.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,164.948598,52.448598)\">1200</text>\n",
|
|
|
|
" <text x=\"7.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,7.474299,102.474299)\">3</text>\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"</svg>\n",
|
|
|
|
" </td>\n",
|
|
|
|
" </tr>\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-17ebeb8c-a7a0-4037-ac44-fe69655ac6ed' class='xr-section-summary-in' type='checkbox' ><label for='section-17ebeb8c-a7a0-4037-ac44-fe69655ac6ed' class='xr-section-summary' >Indexes: <span>(1)</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>runs</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-f41ec41f-2dea-477e-b07f-a7cfde093ae5' class='xr-index-data-in' type='checkbox'/><label for='index-f41ec41f-2dea-477e-b07f-a7cfde093ae5' 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-3e608210-b9a0-4e86-8bbc-ae7b8780226b' class='xr-section-summary-in' type='checkbox' ><label for='section-3e608210-b9a0-4e86-8bbc-ae7b8780226b' 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.02</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.283</dd><dt><span>compZ_initial_current :</span></dt><dd>0</dd><dt><span>default_camera :</span></dt><dd>0</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_va
|
2023-05-04 19:16:35 +02:00
|
|
|
],
|
|
|
|
"text/plain": [
|
|
|
|
"<xarray.Dataset>\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
"Dimensions: (runs: 3, x: 1200, y: 1920)\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
"Coordinates:\n",
|
|
|
|
" * runs (runs) float64 0.0 1.0 2.0\n",
|
|
|
|
"Dimensions without coordinates: x, y\n",
|
|
|
|
"Data variables:\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" atoms (runs, x, y) uint16 dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" background (runs, x, y) uint16 dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray>\n",
|
|
|
|
" dark (runs, x, y) uint16 dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray>\n",
|
2023-05-07 00:38:52 +02:00
|
|
|
" shotNum (runs) int64 0 1 2\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" OD (runs, x, y) float64 dask.array<chunksize=(1, 1200, 1920), meta=np.ndarray>\n",
|
2023-05-06 11:23:38 +02:00
|
|
|
"Attributes: (12/96)\n",
|
|
|
|
" TOF_free: 0.02\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" 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",
|
2023-05-05 18:25:03 +02:00
|
|
|
" y_offset_img: 0\n",
|
2023-05-04 19:16:35 +02:00
|
|
|
" z_offset: 0.189\n",
|
|
|
|
" z_offset_img: 0.189\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
" runs: [0. 1. 2.]\n",
|
|
|
|
" scanAxis: ['runs']\n",
|
|
|
|
" scanAxisLength: [3.]"
|
2023-05-04 19:16:35 +02:00
|
|
|
]
|
|
|
|
},
|
2023-05-05 18:25:03 +02:00
|
|
|
"execution_count": 6,
|
2023-05-04 19:16:35 +02:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
|
|
|
|
"\n",
|
|
|
|
"dataSet"
|
|
|
|
]
|
|
|
|
},
|
2023-05-05 18:25:03 +02:00
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"## Select region of interests"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 8,
|
2023-05-05 18:25:03 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-06 11:23:38 +02:00
|
|
|
"# imageAnalyser.center = (529, 962)\n",
|
|
|
|
"# imageAnalyser.span = (100,100)\n",
|
|
|
|
"# imageAnalyser.fraction = (0.1, 0.1)\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
"\n",
|
|
|
|
"# imageAnalyser.center = (890, 1150)\n",
|
|
|
|
"# imageAnalyser.span = (600,600)\n",
|
|
|
|
"# imageAnalyser.fraction = (0.1, 0.1)\n",
|
|
|
|
"\n",
|
2023-05-06 11:23:38 +02:00
|
|
|
"imageAnalyser.center = (890, 950)\n",
|
|
|
|
"imageAnalyser.span = (100,100)\n",
|
|
|
|
"imageAnalyser.fraction = (0.1, 0.1)\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
"\n",
|
|
|
|
"dataSet_crop = imageAnalyser.crop_image(dataSet)"
|
|
|
|
]
|
|
|
|
},
|
2023-05-04 19:16:35 +02:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 9,
|
2023-05-04 19:16:35 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2023-05-07 00:38:52 +02:00
|
|
|
"<xarray.plot.facetgrid.FacetGrid at 0x274c65832e0>"
|
2023-05-04 19:16:35 +02:00
|
|
|
]
|
|
|
|
},
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 9,
|
2023-05-04 19:16:35 +02:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
2023-05-05 18:25:03 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2023-05-06 11:23:38 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAocAAADQCAYAAAB1AMuEAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAC1tUlEQVR4nO29fZhnV1Xn+9npqoQK6TKphG5CJ3YxdiSNdAYCQ4QIRsQRGVFRRh0dxbfLvOioc3VmcN68emeeR+d6dZw7zjiMoOLoAIOA4CBoGIISNDE0mTTSDTTya5MmdJN0YhemSFd1zv3jnFX7e9Ze51R19UtVJfv7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XWz53vot8eXb/WOxoCVdYL8zf0Y18259pV9V5tXtV8i5tRDx73281yQ1jPr++S+Z8KnJY9Jd402ilY3FdBEa8lxd1XsoqQHXSvse3gGduNwCTFz6A0+NhJbjDmsqKioqKioqNi6GJIcVuZw3VDpn10jG4cTxGqgIcnTLHlHYju8yF5EbTc8Zoh3aFE+XsKnO2Qv0VmUMm2XqLukSDJiO6ST7uoR7TYNke2GVxMclvKt31R95qWbEKs/1mLXovDG0QeB53e/TTWhdmKKISlP9J2ib611nA7urRUXkXfG0Tf0U8eQmthD7V1tN6+SO5XGQa77Lkop2gKxhNrSvbK7vr27qi2h1X+BUloSmQEojC6jfh2T1o6pn6dcnaBts6eRk5RSE62Hl4KuZrNp9VHJipeQRONvh7wbSV5tXGi+3sRjnrLvVYqvsD436dR6pCxX0NLE26V+dtU2einTDjLdRra
|
2023-05-05 18:25:03 +02:00
|
|
|
"text/plain": [
|
2023-05-06 11:23:38 +02:00
|
|
|
"<Figure size 720x216 with 4 Axes>"
|
2023-05-05 18:25:03 +02:00
|
|
|
]
|
|
|
|
},
|
2023-05-06 11:23:38 +02:00
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
},
|
2023-05-05 18:25:03 +02:00
|
|
|
"output_type": "display_data"
|
2023-05-04 19:16:35 +02:00
|
|
|
}
|
|
|
|
],
|
2023-05-04 13:47:33 +02:00
|
|
|
"source": [
|
2023-05-05 18:25:03 +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.pcolormesh(cmap='jet', vmin=0, col=scanAxis[0])"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
2023-05-05 18:25:03 +02:00
|
|
|
"## Remove the background"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 10,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-05 18:25:03 +02:00
|
|
|
"dataSet_crop['OD'] = dataSet_crop['OD'] + 500"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 11,
|
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-05 18:25:03 +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": [
|
2023-05-05 18:25:03 +02:00
|
|
|
"# Test Fit"
|
2023-04-24 13:03:23 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 12,
|
2023-04-24 13:03:23 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-05 18:25:03 +02:00
|
|
|
"fitAnalyser = FitAnalyser(\"Two Gaussian-2D\", fitDim=2)\n",
|
|
|
|
"\n",
|
|
|
|
"params = fitAnalyser.guess(dataSet_crop.OD, dask=\"parallelized\")"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 13,
|
2023-05-05 18:25:03 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
2023-05-07 00:38:52 +02:00
|
|
|
"fitResult = fitAnalyser.fit(dataSet_crop.OD, params).load()"
|
2023-05-05 18:25:03 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 14,
|
2023-05-05 18:25:03 +02:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"fitCurve = fitAnalyser.eval(fitResult, x=np.arange(100), y=np.arange(100), dask=\"parallelized\").load()"
|
2023-05-04 13:47:33 +02:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 15,
|
2023-05-04 13:47:33 +02:00
|
|
|
"metadata": {},
|
2023-05-06 11:23:38 +02:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
2023-05-07 00:38:52 +02:00
|
|
|
"<xarray.plot.facetgrid.FacetGrid at 0x274c888b340>"
|
2023-05-06 11:23:38 +02:00
|
|
|
]
|
|
|
|
},
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 15,
|
2023-05-06 11:23:38 +02:00
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAApEAAADQCAYAAABfsDorAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABESElEQVR4nO29fZBeV33n+fmpW2p1Wy23pcZ6Ny2QsXFIMlBeXorZFAPJDmHYOFNhsmRmCSRseSsFE8gkO7zsbrKT2l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Hswxqcmp2F6TlOg3ZXKcclmHc9OFa6kHcPxwDVQpk2Vjk8yLbkiVpypeqztfp6haBElmN5SwY023HzfbTqZAfsY594VEk0eBI9H70prcvTLovbOFEEIIIUSgh72zfeb1x4AHnXMfKGl2F/DLlvFy4KlBxEOCLJFjSp0VbvF88VrVSjW1wo370CpX9EKdJLBUEs00uQVyJnEtsBZdS1koU9bIQFmCWRH9DYgqmlYXKJvDq7xDcZvidVkkN5Rt9JKd/UrgTcC3zew+f+69wA0AzrmPAF8mK+9znKzEz690P9hqpESOFXXjxqrOUThXt8yJXNuiFzpNRVUxvNPRcSZxLj7GrFKtMIZrsWzX/buQYilS9FJdoHitSTmqMmWzruFA9JVgiewC59xf+x6q2jjgbd3doRlSIoUQQgghhkWPMZGjhJTIsaEqiaZqhVt2ro7bI5WYIIukqEOTqadMVotJMzPArH+92x/rWiLj5Ma1kmP8uqxaQRXK7N661PUSlSWGxXN403k6plOSWJ0+RM/0sGPNqCElctPTSXkM7+u4R+LJKUx
|
|
|
|
"text/plain": [
|
|
|
|
"<Figure size 720x216 with 4 Axes>"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"# 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])\n",
|
|
|
|
"\n",
|
|
|
|
"fitCurve.plot.pcolormesh(cmap='jet', vmin=0, col=scanAxis[0])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2023-05-07 00:38:52 +02:00
|
|
|
"execution_count": 16,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"a = fitAnalyser.get_fit_value(fitResult)\n",
|
|
|
|
"b = fitAnalyser.get_fit_std(fitResult)\n",
|
|
|
|
"data = combine_uncertainty(a, b)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attachments": {},
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Get the Ncount"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 17,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"Ncount = dataSet_crop.OD.sum(dim=(scanAxis[0], 'x', 'y'))"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 18,
|
2023-05-06 11:23:38 +02:00
|
|
|
"metadata": {},
|
2023-05-05 18:30:53 +02:00
|
|
|
"outputs": [
|
2023-05-07 00:38:52 +02:00
|
|
|
{
|
|
|
|
"ename": "TypeError",
|
|
|
|
"evalue": "No numeric data to plot.",
|
|
|
|
"output_type": "error",
|
|
|
|
"traceback": [
|
|
|
|
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
|
|
|
|
"\u001b[1;31mTypeError\u001b[0m Traceback (most recent call last)",
|
|
|
|
"\u001b[1;32md:\\Jianshun Gao\\Simulations\\analyseScripts\\test.ipynb Cell 29\u001b[0m in \u001b[0;36m<cell line: 5>\u001b[1;34m()\u001b[0m\n\u001b[0;32m <a href='vscode-notebook-cell://127.0.0.1:8080/d%3A/Jianshun%20Gao/Simulations/analyseScripts/test.ipynb#X40sdnNjb2RlLXJlbW90ZQ%3D%3D?line=2'>3</a>\u001b[0m fig \u001b[39m=\u001b[39m plt\u001b[39m.\u001b[39mfigure()\n\u001b[0;32m <a href='vscode-notebook-cell://127.0.0.1:8080/d%3A/Jianshun%20Gao/Simulations/analyseScripts/test.ipynb#X40sdnNjb2RlLXJlbW90ZQ%3D%3D?line=3'>4</a>\u001b[0m ax \u001b[39m=\u001b[39m fig\u001b[39m.\u001b[39mgca()\n\u001b[1;32m----> <a href='vscode-notebook-cell://127.0.0.1:8080/d%3A/Jianshun%20Gao/Simulations/analyseScripts/test.ipynb#X40sdnNjb2RlLXJlbW90ZQ%3D%3D?line=4'>5</a>\u001b[0m Ncount\u001b[39m.\u001b[39;49mplot(ax\u001b[39m=\u001b[39;49max)\n",
|
|
|
|
"File \u001b[1;32mD:\\Program Files\\Python\\Python38\\Lib\\site-packages\\xarray\\plot\\accessor.py:46\u001b[0m, in \u001b[0;36mDataArrayPlotAccessor.__call__\u001b[1;34m(self, **kwargs)\u001b[0m\n\u001b[0;32m 44\u001b[0m \u001b[39m@functools\u001b[39m\u001b[39m.\u001b[39mwraps(dataarray_plot\u001b[39m.\u001b[39mplot, assigned\u001b[39m=\u001b[39m(\u001b[39m\"\u001b[39m\u001b[39m__doc__\u001b[39m\u001b[39m\"\u001b[39m, \u001b[39m\"\u001b[39m\u001b[39m__annotations__\u001b[39m\u001b[39m\"\u001b[39m))\n\u001b[0;32m 45\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39m__call__\u001b[39m(\u001b[39mself\u001b[39m, \u001b[39m*\u001b[39m\u001b[39m*\u001b[39mkwargs) \u001b[39m-\u001b[39m\u001b[39m>\u001b[39m Any:\n\u001b[1;32m---> 46\u001b[0m \u001b[39mreturn\u001b[39;00m dataarray_plot\u001b[39m.\u001b[39;49mplot(\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_da, \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49mkwargs)\n",
|
|
|
|
"File \u001b[1;32mD:\\Program Files\\Python\\Python38\\Lib\\site-packages\\xarray\\plot\\dataarray_plot.py:285\u001b[0m, in \u001b[0;36mplot\u001b[1;34m(darray, row, col, col_wrap, ax, hue, subplot_kws, **kwargs)\u001b[0m\n\u001b[0;32m 282\u001b[0m plotfunc: Callable\n\u001b[0;32m 284\u001b[0m \u001b[39mif\u001b[39;00m ndims \u001b[39m==\u001b[39m \u001b[39m0\u001b[39m \u001b[39mor\u001b[39;00m darray\u001b[39m.\u001b[39msize \u001b[39m==\u001b[39m \u001b[39m0\u001b[39m:\n\u001b[1;32m--> 285\u001b[0m \u001b[39mraise\u001b[39;00m \u001b[39mTypeError\u001b[39;00m(\u001b[39m\"\u001b[39m\u001b[39mNo numeric data to plot.\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[0;32m 286\u001b[0m \u001b[39mif\u001b[39;00m ndims \u001b[39min\u001b[39;00m (\u001b[39m1\u001b[39m, \u001b[39m2\u001b[39m):\n\u001b[0;32m 287\u001b[0m \u001b[39mif\u001b[39;00m row \u001b[39mor\u001b[39;00m col:\n",
|
|
|
|
"\u001b[1;31mTypeError\u001b[0m: No numeric data to plot."
|
|
|
|
]
|
|
|
|
},
|
2023-05-05 18:30:53 +02:00
|
|
|
{
|
|
|
|
"data": {
|
2023-05-07 00:38:52 +02:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXwAAAD8CAYAAAB0IB+mAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAANT0lEQVR4nO3cYYjkd33H8ffHO1NpjKb0VpC706T00njYQtIlTRFqirZc8uDugUXuIFgleGAbKVWEFEuU+MiGWhCu1ZOKVdAYfSALntwDjQTEC7chNXgXItvTeheFrDHNk6Ax7bcPZtKdrneZf3Zndy/7fb/gYP7/+e3Mlx97752d2ZlUFZKk7e8VWz2AJGlzGHxJasLgS1ITBl+SmjD4ktSEwZekJqYGP8lnkzyZ5PuXuD5JPplkKcmjSW6c/ZiSpPUa8gj/c8CBF7n+VmDf+N9R4F/WP5YkadamBr+qHgR+/iJLDgGfr5FTwNVJXj+rASVJs7FzBrexGzg/cXxhfO6nqxcmOcrotwCuvPLKP7z++utncPeS1MfDDz/8s6qaW8vXziL4g1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nnGzDPg/8oYkDyR5ZPz/5LatmHOjJflskicv9V6ljHxyvE+PJrlx0A1X1Yb9Y/Qi738AvwNcAXwP2L9qzV8BnxpfPgx8eSNn2qp/A/fiT4HfHF9+X+e9GK+7CngQOAXMb/XcW/h9sQ94BPit8fHrtnruLdyL48D7xpf3Az/a6rk3aC/+BLgR+P4lrr8N+AYQ4GbgoSG3u9GP8P1YhhVT96KqHqiqZ8eHpxi952E7GvJ9AfAxRp/L9IvNHG6TDdmL9wLHquppgKp6cpNn3CxD9qKA14wvvxb4ySbOt2mq6kFGf/F4KYeAz9fIKeD
|
2023-05-06 11:23:38 +02:00
|
|
|
"text/plain": [
|
2023-05-07 00:38:52 +02:00
|
|
|
"<Figure size 432x288 with 1 Axes>"
|
2023-05-06 11:23:38 +02:00
|
|
|
]
|
|
|
|
},
|
2023-05-07 00:38:52 +02:00
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
},
|
|
|
|
"output_type": "display_data"
|
2023-05-06 11:23:38 +02:00
|
|
|
}
|
|
|
|
],
|
2023-05-04 13:47:33 +02:00
|
|
|
"source": [
|
2023-05-05 18:25:03 +02:00
|
|
|
"Ncount.load()\n",
|
|
|
|
"\n",
|
2023-05-04 18:32:17 +02:00
|
|
|
"fig = plt.figure()\n",
|
2023-05-05 18:25:03 +02:00
|
|
|
"ax = fig.gca()\n",
|
|
|
|
"Ncount.plot(ax=ax)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"fitAnalyser = FitAnalyser(\"Lorentzian With Offset\")\n",
|
|
|
|
"params = fitAnalyser.guess(Ncount, x='sin_mod_freq', dask=\"parallelized\", guess_kwargs=dict(negative=True))"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"fitResult = fitAnalyser.fit(Ncount, params, x='sin_mod_freq', dask=\"parallelized\")\n",
|
|
|
|
"fitCurve = fitAnalyser.eval(fitResult, x=np.arange(40), dask=\"parallelized\").load()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"fig = plt.figure()\n",
|
|
|
|
"ax = fig.gca()\n",
|
|
|
|
"plt.errorbar([1], [1], yerr=[1])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"fitCurve.plot.errorbar(yerr=fitCurve)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"np.ufunc(fitCurve)"
|
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-06 11:23:38 +02:00
|
|
|
"version": "3.8.10"
|
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
|
|
|
|
}
|