1118 lines
50 KiB
Plaintext
1118 lines
50 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"# Import supporting package"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"import xarray as xr\n",
|
|
"import numpy as np\n",
|
|
"import copy\n",
|
|
"\n",
|
|
"from uncertainties import ufloat\n",
|
|
"from uncertainties import unumpy as unp\n",
|
|
"from uncertainties import umath\n",
|
|
"import random\n",
|
|
"import matplotlib.pyplot as plt\n",
|
|
"plt.rcParams['font.size'] = 12\n",
|
|
"\n",
|
|
"from DataContainer.ReadData import read_hdf5_file\n",
|
|
"from Analyser.ImagingAnalyser import ImageAnalyser\n",
|
|
"from Analyser.FitAnalyser import FitAnalyser\n",
|
|
"from Analyser.FitAnalyser import NewFitModel, DensityProfileBEC2dModel\n",
|
|
"from ToolFunction.ToolFunction import *\n",
|
|
"\n",
|
|
"from scipy.optimize import curve_fit\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",
|
|
"\n",
|
|
"imageAnalyser = ImageAnalyser()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## Start a client for parallel computing"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 2,
|
|
"metadata": {},
|
|
"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-be5159fc-7966-11ee-8da4-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;\">b1b8bfb1</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> 8\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total threads:</strong> 128\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total memory:</strong> 149.01 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-1a8ed394-5c75-449a-b545-c4822cc75da8</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:55431\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Workers:</strong> 8\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> 128\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> 149.01 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:55487\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total threads: </strong> 16\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55488/status\" target=\"_blank\">http://127.0.0.1:55488/status</a>\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Memory: </strong> 18.63 GiB\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55434\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-scratch-space\\worker-5wy91m_d\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:55478\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total threads: </strong> 16\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55479/status\" target=\"_blank\">http://127.0.0.1:55479/status</a>\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Memory: </strong> 18.63 GiB\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55435\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-scratch-space\\worker-vwtk8h1j\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:55466\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total threads: </strong> 16\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55467/status\" target=\"_blank\">http://127.0.0.1:55467/status</a>\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Memory: </strong> 18.63 GiB\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55436\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-scratch-space\\worker-kguu_neb\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:55475\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total threads: </strong> 16\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55476/status\" target=\"_blank\">http://127.0.0.1:55476/status</a>\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Memory: </strong> 18.63 GiB\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55437\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-scratch-space\\worker-08ars8w1\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:55481\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total threads: </strong> 16\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55482/status\" target=\"_blank\">http://127.0.0.1:55482/status</a>\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Memory: </strong> 18.63 GiB\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55438\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-scratch-space\\worker-ojwo9s13\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:55469\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total threads: </strong> 16\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55470/status\" target=\"_blank\">http://127.0.0.1:55470/status</a>\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Memory: </strong> 18.63 GiB\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55439\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-scratch-space\\worker-beoodyjd\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: 6</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:55472\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total threads: </strong> 16\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55473/status\" target=\"_blank\">http://127.0.0.1:55473/status</a>\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Memory: </strong> 18.63 GiB\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55440\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-scratch-space\\worker-7wqwq9j5\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: 7</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:55484\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Total threads: </strong> 16\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55485/status\" target=\"_blank\">http://127.0.0.1:55485/status</a>\n",
|
|
" </td>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Memory: </strong> 18.63 GiB\n",
|
|
" </td>\n",
|
|
" </tr>\n",
|
|
" <tr>\n",
|
|
" <td style=\"text-align: left;\">\n",
|
|
" <strong>Nanny: </strong> tcp://127.0.0.1:55441\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-scratch-space\\worker-kx75am_o\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:55431' processes=8 threads=128, memory=149.01 GiB>"
|
|
]
|
|
},
|
|
"execution_count": 2,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"from dask.distributed import Client\n",
|
|
"client = Client(n_workers=8, threads_per_worker=16, processes=True, memory_limit='20GB')\n",
|
|
"client"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## Start a client for Mongo DB"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 3,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"import pymongo\n",
|
|
"import xarray_mongodb\n",
|
|
"\n",
|
|
"from DataContainer.MongoDB import MongoDB\n",
|
|
"\n",
|
|
"mongoClient = pymongo.MongoClient('mongodb://control:DyLab2021@127.0.0.1:27017/?authMechanism=DEFAULT')"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## Set global path for experiment"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 4,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"groupList = [\n",
|
|
" \"images/MOT_3D_Camera/in_situ_absorption\",\n",
|
|
" \"images/ODT_1_Axis_Camera/in_situ_absorption\",\n",
|
|
" \"images/ODT_2_Axis_Camera/in_situ_absorption\",\n",
|
|
" \"images/Horizontal_Axis_Camera/in_situ_absorption\",\n",
|
|
" \"images/Vertical_Axis_Camera/in_situ_absorption\",\n",
|
|
"]\n",
|
|
"\n",
|
|
"dskey = {\n",
|
|
" \"images/MOT_3D_Camera/in_situ_absorption\": \"camera_0\",\n",
|
|
" \"images/ODT_1_Axis_Camera/in_situ_absorption\": \"camera_1\",\n",
|
|
" \"images/ODT_2_Axis_Camera/in_situ_absorption\": \"camera_2\",\n",
|
|
" \"images/Horizontal_Axis_Camera/in_situ_absorption\": \"camera_3\",\n",
|
|
" \"images/Vertical_Axis_Camera/in_situ_absorption\": \"camera_4\"\n",
|
|
"}\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"# Evaporative Cooling"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 5,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"# # img_dir = 'C:/Users/control/DyLab/Experiments/DyBEC/'\n",
|
|
"# img_dir = '//DyLabNAS/Data/'\n",
|
|
"# SequenceName = \"Repetition_scan\"\n",
|
|
"# folderPath = img_dir + SequenceName + \"/\" + '2023/06/14' # get_date()\n",
|
|
"\n",
|
|
"# mongoDB = mongoClient[SequenceName]\n",
|
|
"\n",
|
|
"# DB = MongoDB(mongoClient, mongoDB, date=get_date())"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 6,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"# img_dir = 'C:/Users/control/DyLab/Experiments/DyBEC/'\n",
|
|
"img_dir = '//DyLabNAS/Data/'\n",
|
|
"SequenceName = \"Evaporative_Cooling\"\n",
|
|
"folderPath = img_dir + SequenceName + \"/\" + '2023/04/21' # get_date()\n",
|
|
"\n",
|
|
"mongoDB = mongoClient[SequenceName]\n",
|
|
"\n",
|
|
"DB = MongoDB(mongoClient, mongoDB, date=get_date())"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 7,
|
|
"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: (runs: 3, x: 1200, y: 1920)\n",
|
|
"Coordinates:\n",
|
|
" * runs (runs) float64 0.0 1.0 2.0\n",
|
|
"Dimensions without coordinates: x, y\n",
|
|
"Data variables:\n",
|
|
" OD (runs, x, y) float64 0.05407 0.08224 -0.0 ... -0.0 0.04581 -0.0</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-a8be1da9-7a08-411b-880b-a1ae044df371' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-a8be1da9-7a08-411b-880b-a1ae044df371' 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-4057c3ec-eb7c-41f4-a6ac-74975fe2aa5d' class='xr-section-summary-in' type='checkbox' checked><label for='section-4057c3ec-eb7c-41f4-a6ac-74975fe2aa5d' 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-d42cf5a6-8753-449c-82cf-7c670c7306d6' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d42cf5a6-8753-449c-82cf-7c670c7306d6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9f32a016-6eae-43e4-b421-18183a211f87' class='xr-var-data-in' type='checkbox'><label for='data-9f32a016-6eae-43e4-b421-18183a211f87' 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-ae41161b-59d5-4705-9a4a-dafefbb0b831' class='xr-section-summary-in' type='checkbox' checked><label for='section-ae41161b-59d5-4705-9a4a-dafefbb0b831' class='xr-section-summary' >Data variables: <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>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'>0.05407 0.08224 ... 0.04581 -0.0</div><input id='attrs-d0bda9e5-50fc-489e-be80-cdcaf09f720e' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-d0bda9e5-50fc-489e-be80-cdcaf09f720e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bfe90cd3-9250-4667-8149-960d0900d1de' class='xr-var-data-in' type='checkbox'><label for='data-bfe90cd3-9250-4667-8149-960d0900d1de' 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([[[ 0.05406722, 0.0822381 , -0. , ..., 0.10863384,\n",
|
|
" 0.04445176, -0.09798041],\n",
|
|
" [ 0.08961216, 0.08701138, -0.20763936, ..., -0.07522342,\n",
|
|
" -0.04725288, 0.09381876],\n",
|
|
" [ 0.12921173, 0.05556985, -0.04652002, ..., -0.06155789,\n",
|
|
" -0.06155789, 0.10697212],\n",
|
|
" ...,\n",
|
|
" [ 0.05264373, -0.1502822 , 0.07410797, ..., 0.02739897,\n",
|
|
" 0.0402739 , -0.09937247],\n",
|
|
" [ 0.11247798, -0. , -0.11247798, ..., 0.02777956,\n",
|
|
" 0.06899287, 0.04652002],\n",
|
|
" [ 0.02150621, 0.04255961, -0.01941809, ..., -0.08576682,\n",
|
|
" 0.06062462, 0.01574836]],\n",
|
|
"\n",
|
|
" [[-0.05715841, -0.05129329, 0.06453852, ..., -0. ,\n",
|
|
" 0.04317217, -0.0145988 ],\n",
|
|
" [-0. , -0.09237332, 0.09763847, ..., -0. ,\n",
|
|
" -0.04879016, -0. ],\n",
|
|
" [ 0.08961216, -0.0588405 , 0.05264373, ..., 0.01503788,\n",
|
|
" 0.14197026, 0.03030535],\n",
|
|
"...\n",
|
|
" [ 0.11506933, -0. , 0.07061757, ..., 0.04138522,\n",
|
|
" 0.05406722, -0. ],\n",
|
|
" [ 0.04445176, 0.0631789 , 0.04348511, ..., -0.01273903,\n",
|
|
" -0. , 0.01574836],\n",
|
|
" [-0.08701138, -0.19845094, 0.10318424, ..., 0.02941389,\n",
|
|
" -0.05971923, 0.0165293 ]],\n",
|
|
"\n",
|
|
" [[ 0.08455739, 0.10821358, 0.0235305 , ..., 0.01600034,\n",
|
|
" -0.01526747, -0. ],\n",
|
|
" [ 0.13720112, -0.08455739, -0. , ..., -0.04800922,\n",
|
|
" 0.06453852, 0.09937247],\n",
|
|
" [ 0.06062462, 0.05556985, 0.07232066, ..., 0.14197026,\n",
|
|
" 0.10536052, -0.04512044],\n",
|
|
" ...,\n",
|
|
" [-0.07410797, -0.04762805, -0. , ..., -0.04380262,\n",
|
|
" -0.02564243, 0.06899287],\n",
|
|
" [-0.06595797, -0. , 0.0235305 , ..., 0.02739897,\n",
|
|
" -0.02857337, -0. ],\n",
|
|
" [ 0.02197891, 0.12516314, -0. , ..., -0. ,\n",
|
|
" 0.04580954, -0. ]]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-6abadd96-ce85-4c09-ab1e-fd007cf82052' class='xr-section-summary-in' type='checkbox' ><label for='section-6abadd96-ce85-4c09-ab1e-fd007cf82052' 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-fdfb96cf-d783-4fc1-9f2e-9abfa4241ff4' class='xr-index-data-in' type='checkbox'/><label for='index-fdfb96cf-d783-4fc1-9f2e-9abfa4241ff4' 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(Index([0.0, 1.0, 2.0], dtype='float64', name='runs'))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-c9dde0b7-62f1-4ede-90c9-c297cae5f9e0' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-c9dde0b7-62f1-4ede-90c9-c297cae5f9e0' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
|
|
],
|
|
"text/plain": [
|
|
"<xarray.Dataset>\n",
|
|
"Dimensions: (runs: 3, x: 1200, y: 1920)\n",
|
|
"Coordinates:\n",
|
|
" * runs (runs) float64 0.0 1.0 2.0\n",
|
|
"Dimensions without coordinates: x, y\n",
|
|
"Data variables:\n",
|
|
" OD (runs, x, y) float64 0.05407 0.08224 -0.0 ... -0.0 0.04581 -0.0"
|
|
]
|
|
},
|
|
"execution_count": 7,
|
|
"metadata": {},
|
|
"output_type": "execute_result"
|
|
}
|
|
],
|
|
"source": [
|
|
"res = DB.load_data(shotNum='0002', date='2023/04/21')\n",
|
|
"res['Side_Camera_OD_Image']"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"# plt.figure()\n",
|
|
"\n",
|
|
"# res['OD'].OD.plot.pcolormesh(col='compZ_final_current', cmap='jet', vmin=0, vmax=1)\n",
|
|
"\n",
|
|
"# plt.show()"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "venv",
|
|
"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",
|
|
"version": "3.9.13"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|