You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2928 lines
3.8 MiB

1 year ago
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {},
  6. "source": [
  7. "# How to get and plot the absorption imaging"
  8. ]
  9. },
  10. {
  11. "cell_type": "markdown",
  12. "metadata": {},
  13. "source": [
  14. "This is an example to calculate OD from absorption imaging from the loaded data.\n",
  15. "\n",
  16. "Let us start with importing the supporting packages and loading the data. In order to keep things ealier, here we will import all the packages, but not all of them will be used."
  17. ]
  18. },
  19. {
  20. "cell_type": "markdown",
  21. "metadata": {},
  22. "source": [
  23. "## Load some example data"
  24. ]
  25. },
  26. {
  27. "cell_type": "markdown",
  28. "metadata": {},
  29. "source": [
  30. "### Import supporting packages"
  31. ]
  32. },
  33. {
  34. "cell_type": "code",
  35. "execution_count": 1,
  36. "metadata": {},
  37. "outputs": [],
  38. "source": [
  39. "# Set the system path for importing packages\n",
  40. "# This is just because I put all example scripts in another folder\n",
  41. "# You DO NOT need to do this \n",
  42. "# -------------- You do NOT need following part --------------\n",
  43. "import sys\n",
  44. "import os\n",
  45. "sys.path.insert(0, os.path.abspath('..'))\n",
  46. "# -------------- You do NOT need above part --------------\n",
  47. "\n",
  48. "import copy\n",
  49. "import glob\n",
  50. "from datetime import datetime\n",
  51. "\n",
  52. "# The package for data structure\n",
  53. "import xarray as xr\n",
  54. "import pandas as pd\n",
  55. "import numpy as np\n",
  56. "\n",
  57. "# The packages for working with uncertainties\n",
  58. "from uncertainties import ufloat\n",
  59. "from uncertainties import unumpy as unp\n",
  60. "from uncertainties import umath\n",
  61. "\n",
  62. "# The package for plotting\n",
  63. "import matplotlib.pyplot as plt\n",
  64. "plt.rcParams['font.size'] = 18 # Set the global font size\n",
  65. "\n",
  66. "# -------------- The modules written by us --------------\n",
  67. "\n",
  68. "# The packages for read data\n",
  69. "from DataContainer.ReadData import read_hdf5_file, read_hdf5_global, read_hdf5_run_time, read_csv_file\n",
  70. "\n",
  71. "# The packages for data analysis\n",
  72. "from Analyser.ImagingAnalyser import ImageAnalyser\n",
  73. "from Analyser.FitAnalyser import FitAnalyser\n",
  74. "from Analyser.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, Polylog22dModel\n",
  75. "from Analyser.FFTAnalyser import fft, ifft, fft_nutou\n",
  76. "from ToolFunction.ToolFunction import *\n",
  77. "\n",
  78. "# Add errorbar plot to xarray package\n",
  79. "from ToolFunction.HomeMadeXarrayFunction import errorbar, dataarray_plot_errorbar\n",
  80. "xr.plot.dataarray_plot.errorbar = errorbar\n",
  81. "xr.plot.accessor.DataArrayPlotAccessor.errorbar = dataarray_plot_errorbar"
  82. ]
  83. },
  84. {
  85. "cell_type": "markdown",
  86. "metadata": {},
  87. "source": [
  88. "### Start a client for parallel computing"
  89. ]
  90. },
  91. {
  92. "cell_type": "code",
  93. "execution_count": 2,
  94. "metadata": {},
  95. "outputs": [
  96. {
  97. "data": {
  98. "text/html": [
  99. "<div>\n",
  100. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
  101. " <div style=\"margin-left: 48px;\">\n",
  102. " <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
  103. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-6c49ef74-1f18-11ee-a568-80e82ce2fa8e</p>\n",
  104. " <table style=\"width: 100%; text-align: left;\">\n",
  105. "\n",
  106. " <tr>\n",
  107. " \n",
  108. " <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
  109. " <td style=\"text-align: left;\"><strong>Cluster type:</strong> distributed.LocalCluster</td>\n",
  110. " \n",
  111. " </tr>\n",
  112. "\n",
  113. " \n",
  114. " <tr>\n",
  115. " <td style=\"text-align: left;\">\n",
  116. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  117. " </td>\n",
  118. " <td style=\"text-align: left;\"></td>\n",
  119. " </tr>\n",
  120. " \n",
  121. "\n",
  122. " </table>\n",
  123. "\n",
  124. " \n",
  125. "\n",
  126. " \n",
  127. " <details>\n",
  128. " <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
  129. " <div class=\"jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-output\">\n",
  130. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\">\n",
  131. " </div>\n",
  132. " <div style=\"margin-left: 48px;\">\n",
  133. " <h3 style=\"margin-bottom: 0px; margin-top: 0px;\">LocalCluster</h3>\n",
  134. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">64b816fb</p>\n",
  135. " <table style=\"width: 100%; text-align: left;\">\n",
  136. " <tr>\n",
  137. " <td style=\"text-align: left;\">\n",
  138. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  139. " </td>\n",
  140. " <td style=\"text-align: left;\">\n",
  141. " <strong>Workers:</strong> 6\n",
  142. " </td>\n",
  143. " </tr>\n",
  144. " <tr>\n",
  145. " <td style=\"text-align: left;\">\n",
  146. " <strong>Total threads:</strong> 60\n",
  147. " </td>\n",
  148. " <td style=\"text-align: left;\">\n",
  149. " <strong>Total memory:</strong> 55.88 GiB\n",
  150. " </td>\n",
  151. " </tr>\n",
  152. " \n",
  153. " <tr>\n",
  154. " <td style=\"text-align: left;\"><strong>Status:</strong> running</td>\n",
  155. " <td style=\"text-align: left;\"><strong>Using processes:</strong> True</td>\n",
  156. "</tr>\n",
  157. "\n",
  158. " \n",
  159. " </table>\n",
  160. "\n",
  161. " <details>\n",
  162. " <summary style=\"margin-bottom: 20px;\">\n",
  163. " <h3 style=\"display: inline;\">Scheduler Info</h3>\n",
  164. " </summary>\n",
  165. "\n",
  166. " <div style=\"\">\n",
  167. " <div>\n",
  168. " <div style=\"width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;\"> </div>\n",
  169. " <div style=\"margin-left: 48px;\">\n",
  170. " <h3 style=\"margin-bottom: 0px;\">Scheduler</h3>\n",
  171. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-1686989d-dc22-4ca9-bbed-200c9a09b8e2</p>\n",
  172. " <table style=\"width: 100%; text-align: left;\">\n",
  173. " <tr>\n",
  174. " <td style=\"text-align: left;\">\n",
  175. " <strong>Comm:</strong> tcp://127.0.0.1:62024\n",
  176. " </td>\n",
  177. " <td style=\"text-align: left;\">\n",
  178. " <strong>Workers:</strong> 6\n",
  179. " </td>\n",
  180. " </tr>\n",
  181. " <tr>\n",
  182. " <td style=\"text-align: left;\">\n",
  183. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  184. " </td>\n",
  185. " <td style=\"text-align: left;\">\n",
  186. " <strong>Total threads:</strong> 60\n",
  187. " </td>\n",
  188. " </tr>\n",
  189. " <tr>\n",
  190. " <td style=\"text-align: left;\">\n",
  191. " <strong>Started:</strong> Just now\n",
  192. " </td>\n",
  193. " <td style=\"text-align: left;\">\n",
  194. " <strong>Total memory:</strong> 55.88 GiB\n",
  195. " </td>\n",
  196. " </tr>\n",
  197. " </table>\n",
  198. " </div>\n",
  199. " </div>\n",
  200. "\n",
  201. " <details style=\"margin-left: 48px;\">\n",
  202. " <summary style=\"margin-bottom: 20px;\">\n",
  203. " <h3 style=\"display: inline;\">Workers</h3>\n",
  204. " </summary>\n",
  205. "\n",
  206. " \n",
  207. " <div style=\"margin-bottom: 20px;\">\n",
  208. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  209. " <div style=\"margin-left: 48px;\">\n",
  210. " <details>\n",
  211. " <summary>\n",
  212. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 0</h4>\n",
  213. " </summary>\n",
  214. " <table style=\"width: 100%; text-align: left;\">\n",
  215. " <tr>\n",
  216. " <td style=\"text-align: left;\">\n",
  217. " <strong>Comm: </strong> tcp://127.0.0.1:62055\n",
  218. " </td>\n",
  219. " <td style=\"text-align: left;\">\n",
  220. " <strong>Total threads: </strong> 10\n",
  221. " </td>\n",
  222. " </tr>\n",
  223. " <tr>\n",
  224. " <td style=\"text-align: left;\">\n",
  225. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62058/status\" target=\"_blank\">http://127.0.0.1:62058/status</a>\n",
  226. " </td>\n",
  227. " <td style=\"text-align: left;\">\n",
  228. " <strong>Memory: </strong> 9.31 GiB\n",
  229. " </td>\n",
  230. " </tr>\n",
  231. " <tr>\n",
  232. " <td style=\"text-align: left;\">\n",
  233. " <strong>Nanny: </strong> tcp://127.0.0.1:62027\n",
  234. " </td>\n",
  235. " <td style=\"text-align: left;\"></td>\n",
  236. " </tr>\n",
  237. " <tr>\n",
  238. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  239. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-z3ariy1d\n",
  240. " </td>\n",
  241. " </tr>\n",
  242. "\n",
  243. " \n",
  244. "\n",
  245. " \n",
  246. "\n",
  247. " </table>\n",
  248. " </details>\n",
  249. " </div>\n",
  250. " </div>\n",
  251. " \n",
  252. " <div style=\"margin-bottom: 20px;\">\n",
  253. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  254. " <div style=\"margin-left: 48px;\">\n",
  255. " <details>\n",
  256. " <summary>\n",
  257. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 1</h4>\n",
  258. " </summary>\n",
  259. " <table style=\"width: 100%; text-align: left;\">\n",
  260. " <tr>\n",
  261. " <td style=\"text-align: left;\">\n",
  262. " <strong>Comm: </strong> tcp://127.0.0.1:62049\n",
  263. " </td>\n",
  264. " <td style=\"text-align: left;\">\n",
  265. " <strong>Total threads: </strong> 10\n",
  266. " </td>\n",
  267. " </tr>\n",
  268. " <tr>\n",
  269. " <td style=\"text-align: left;\">\n",
  270. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62052/status\" target=\"_blank\">http://127.0.0.1:62052/status</a>\n",
  271. " </td>\n",
  272. " <td style=\"text-align: left;\">\n",
  273. " <strong>Memory: </strong> 9.31 GiB\n",
  274. " </td>\n",
  275. " </tr>\n",
  276. " <tr>\n",
  277. " <td style=\"text-align: left;\">\n",
  278. " <strong>Nanny: </strong> tcp://127.0.0.1:62028\n",
  279. " </td>\n",
  280. " <td style=\"text-align: left;\"></td>\n",
  281. " </tr>\n",
  282. " <tr>\n",
  283. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  284. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-froctrq_\n",
  285. " </td>\n",
  286. " </tr>\n",
  287. "\n",
  288. " \n",
  289. "\n",
  290. " \n",
  291. "\n",
  292. " </table>\n",
  293. " </details>\n",
  294. " </div>\n",
  295. " </div>\n",
  296. " \n",
  297. " <div style=\"margin-bottom: 20px;\">\n",
  298. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  299. " <div style=\"margin-left: 48px;\">\n",
  300. " <details>\n",
  301. " <summary>\n",
  302. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 2</h4>\n",
  303. " </summary>\n",
  304. " <table style=\"width: 100%; text-align: left;\">\n",
  305. " <tr>\n",
  306. " <td style=\"text-align: left;\">\n",
  307. " <strong>Comm: </strong> tcp://127.0.0.1:62061\n",
  308. " </td>\n",
  309. " <td style=\"text-align: left;\">\n",
  310. " <strong>Total threads: </strong> 10\n",
  311. " </td>\n",
  312. " </tr>\n",
  313. " <tr>\n",
  314. " <td style=\"text-align: left;\">\n",
  315. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62063/status\" target=\"_blank\">http://127.0.0.1:62063/status</a>\n",
  316. " </td>\n",
  317. " <td style=\"text-align: left;\">\n",
  318. " <strong>Memory: </strong> 9.31 GiB\n",
  319. " </td>\n",
  320. " </tr>\n",
  321. " <tr>\n",
  322. " <td style=\"text-align: left;\">\n",
  323. " <strong>Nanny: </strong> tcp://127.0.0.1:62029\n",
  324. " </td>\n",
  325. " <td style=\"text-align: left;\"></td>\n",
  326. " </tr>\n",
  327. " <tr>\n",
  328. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  329. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-aidgx9kg\n",
  330. " </td>\n",
  331. " </tr>\n",
  332. "\n",
  333. " \n",
  334. "\n",
  335. " \n",
  336. "\n",
  337. " </table>\n",
  338. " </details>\n",
  339. " </div>\n",
  340. " </div>\n",
  341. " \n",
  342. " <div style=\"margin-bottom: 20px;\">\n",
  343. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  344. " <div style=\"margin-left: 48px;\">\n",
  345. " <details>\n",
  346. " <summary>\n",
  347. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 3</h4>\n",
  348. " </summary>\n",
  349. " <table style=\"width: 100%; text-align: left;\">\n",
  350. " <tr>\n",
  351. " <td style=\"text-align: left;\">\n",
  352. " <strong>Comm: </strong> tcp://127.0.0.1:62060\n",
  353. " </td>\n",
  354. " <td style=\"text-align: left;\">\n",
  355. " <strong>Total threads: </strong> 10\n",
  356. " </td>\n",
  357. " </tr>\n",
  358. " <tr>\n",
  359. " <td style=\"text-align: left;\">\n",
  360. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62062/status\" target=\"_blank\">http://127.0.0.1:62062/status</a>\n",
  361. " </td>\n",
  362. " <td style=\"text-align: left;\">\n",
  363. " <strong>Memory: </strong> 9.31 GiB\n",
  364. " </td>\n",
  365. " </tr>\n",
  366. " <tr>\n",
  367. " <td style=\"text-align: left;\">\n",
  368. " <strong>Nanny: </strong> tcp://127.0.0.1:62030\n",
  369. " </td>\n",
  370. " <td style=\"text-align: left;\"></td>\n",
  371. " </tr>\n",
  372. " <tr>\n",
  373. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  374. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-_dx16v2n\n",
  375. " </td>\n",
  376. " </tr>\n",
  377. "\n",
  378. " \n",
  379. "\n",
  380. " \n",
  381. "\n",
  382. " </table>\n",
  383. " </details>\n",
  384. " </div>\n",
  385. " </div>\n",
  386. " \n",
  387. " <div style=\"margin-bottom: 20px;\">\n",
  388. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  389. " <div style=\"margin-left: 48px;\">\n",
  390. " <details>\n",
  391. " <summary>\n",
  392. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 4</h4>\n",
  393. " </summary>\n",
  394. " <table style=\"width: 100%; text-align: left;\">\n",
  395. " <tr>\n",
  396. " <td style=\"text-align: left;\">\n",
  397. " <strong>Comm: </strong> tcp://127.0.0.1:62066\n",
  398. " </td>\n",
  399. " <td style=\"text-align: left;\">\n",
  400. " <strong>Total threads: </strong> 10\n",
  401. " </td>\n",
  402. " </tr>\n",
  403. " <tr>\n",
  404. " <td style=\"text-align: left;\">\n",
  405. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62067/status\" target=\"_blank\">http://127.0.0.1:62067/status</a>\n",
  406. " </td>\n",
  407. " <td style=\"text-align: left;\">\n",
  408. " <strong>Memory: </strong> 9.31 GiB\n",
  409. " </td>\n",
  410. " </tr>\n",
  411. " <tr>\n",
  412. " <td style=\"text-align: left;\">\n",
  413. " <strong>Nanny: </strong> tcp://127.0.0.1:62031\n",
  414. " </td>\n",
  415. " <td style=\"text-align: left;\"></td>\n",
  416. " </tr>\n",
  417. " <tr>\n",
  418. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  419. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-cuvxixxp\n",
  420. " </td>\n",
  421. " </tr>\n",
  422. "\n",
  423. " \n",
  424. "\n",
  425. " \n",
  426. "\n",
  427. " </table>\n",
  428. " </details>\n",
  429. " </div>\n",
  430. " </div>\n",
  431. " \n",
  432. " <div style=\"margin-bottom: 20px;\">\n",
  433. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  434. " <div style=\"margin-left: 48px;\">\n",
  435. " <details>\n",
  436. " <summary>\n",
  437. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 5</h4>\n",
  438. " </summary>\n",
  439. " <table style=\"width: 100%; text-align: left;\">\n",
  440. " <tr>\n",
  441. " <td style=\"text-align: left;\">\n",
  442. " <strong>Comm: </strong> tcp://127.0.0.1:62054\n",
  443. " </td>\n",
  444. " <td style=\"text-align: left;\">\n",
  445. " <strong>Total threads: </strong> 10\n",
  446. " </td>\n",
  447. " </tr>\n",
  448. " <tr>\n",
  449. " <td style=\"text-align: left;\">\n",
  450. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62056/status\" target=\"_blank\">http://127.0.0.1:62056/status</a>\n",
  451. " </td>\n",
  452. " <td style=\"text-align: left;\">\n",
  453. " <strong>Memory: </strong> 9.31 GiB\n",
  454. " </td>\n",
  455. " </tr>\n",
  456. " <tr>\n",
  457. " <td style=\"text-align: left;\">\n",
  458. " <strong>Nanny: </strong> tcp://127.0.0.1:62032\n",
  459. " </td>\n",
  460. " <td style=\"text-align: left;\"></td>\n",
  461. " </tr>\n",
  462. " <tr>\n",
  463. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  464. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-jublykr0\n",
  465. " </td>\n",
  466. " </tr>\n",
  467. "\n",
  468. " \n",
  469. "\n",
  470. " \n",
  471. "\n",
  472. " </table>\n",
  473. " </details>\n",
  474. " </div>\n",
  475. " </div>\n",
  476. " \n",
  477. "\n",
  478. " </details>\n",
  479. "</div>\n",
  480. "\n",
  481. " </details>\n",
  482. " </div>\n",
  483. "</div>\n",
  484. " </details>\n",
  485. " \n",
  486. "\n",
  487. " </div>\n",
  488. "</div>"
  489. ],
  490. "text/plain": [
  491. "<Client: 'tcp://127.0.0.1:62024' processes=6 threads=60, memory=55.88 GiB>"
  492. ]
  493. },
  494. "execution_count": 2,
  495. "metadata": {},
  496. "output_type": "execute_result"
  497. }
  498. ],
  499. "source": [
  500. "from dask.distributed import Client\n",
  501. "client = Client(n_workers=6, threads_per_worker=10, processes=True, memory_limit='10GB')\n",
  502. "client"
  503. ]
  504. },
  505. {
  506. "cell_type": "markdown",
  507. "metadata": {},
  508. "source": [
  509. "### Set the path for different cameras"
  510. ]
  511. },
  512. {
  513. "cell_type": "code",
  514. "execution_count": 3,
  515. "metadata": {},
  516. "outputs": [],
  517. "source": [
  518. "groupList = [\n",
  519. " \"images/MOT_3D_Camera/in_situ_absorption\",\n",
  520. " \"images/ODT_1_Axis_Camera/in_situ_absorption\",\n",
  521. " \"images/ODT_2_Axis_Camera/in_situ_absorption\",\n",
  522. "]\n",
  523. "\n",
  524. "# give a short name to each path (or let's say each camera)\n",
  525. "dskey = {\n",
  526. " \"images/MOT_3D_Camera/in_situ_absorption\": \"camera_0\",\n",
  527. " \"images/ODT_1_Axis_Camera/in_situ_absorption\": \"camera_1\",\n",
  528. " \"images/ODT_2_Axis_Camera/in_situ_absorption\": \"camera_2\",\n",
  529. "}"
  530. ]
  531. },
  532. {
  533. "cell_type": "markdown",
  534. "metadata": {},
  535. "source": [
  536. "### Set global path for experiment"
  537. ]
  538. },
  539. {
  540. "cell_type": "code",
  541. "execution_count": 4,
  542. "metadata": {},
  543. "outputs": [],
  544. "source": [
  545. "img_dir = '//DyLabNAS/Data/'\n",
  546. "SequenceName = \"Evaporative_Cooling\" + \"/\"\n",
  547. "folderPath = img_dir + SequenceName + '2023/04/17'# get_date()"
  548. ]
  549. },
  550. {
  551. "cell_type": "markdown",
  552. "metadata": {},
  553. "source": [
  554. "### Load shot 0058"
  555. ]
  556. },
  557. {
  558. "cell_type": "code",
  559. "execution_count": 5,
  560. "metadata": {},
  561. "outputs": [
  562. {
  563. "data": {
  564. "text/html": [
  565. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  566. "<defs>\n",
  567. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  568. "<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",
  569. "<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",
  570. "<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",
  571. "</symbol>\n",
  572. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  573. "<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",
  574. "<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",
  575. "<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",
  576. "<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",
  577. "</symbol>\n",
  578. "</defs>\n",
  579. "</svg>\n",
  580. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  581. " *\n",
  582. " */\n",
  583. "\n",
  584. ":root {\n",
  585. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  586. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  587. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  588. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  589. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  590. " --xr-background-color: var(--jp-layout-color0, white);\n",
  591. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  592. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  593. "}\n",
  594. "\n",
  595. "html[theme=dark],\n",
  596. "body[data-theme=dark],\n",
  597. "body.vscode-dark {\n",
  598. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  599. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  600. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  601. " --xr-border-color: #1F1F1F;\n",
  602. " --xr-disabled-color: #515151;\n",
  603. " --xr-background-color: #111111;\n",
  604. " --xr-background-color-row-even: #111111;\n",
  605. " --xr-background-color-row-odd: #313131;\n",
  606. "}\n",
  607. "\n",
  608. ".xr-wrap {\n",
  609. " display: block !important;\n",
  610. " min-width: 300px;\n",
  611. " max-width: 700px;\n",
  612. "}\n",
  613. "\n",
  614. ".xr-text-repr-fallback {\n",
  615. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  616. " display: none;\n",
  617. "}\n",
  618. "\n",
  619. ".xr-header {\n",
  620. " padding-top: 6px;\n",
  621. " padding-bottom: 6px;\n",
  622. " margin-bottom: 4px;\n",
  623. " border-bottom: solid 1px var(--xr-border-color);\n",
  624. "}\n",
  625. "\n",
  626. ".xr-header > div,\n",
  627. ".xr-header > ul {\n",
  628. " display: inline;\n",
  629. " margin-top: 0;\n",
  630. " margin-bottom: 0;\n",
  631. "}\n",
  632. "\n",
  633. ".xr-obj-type,\n",
  634. ".xr-array-name {\n",
  635. " margin-left: 2px;\n",
  636. " margin-right: 10px;\n",
  637. "}\n",
  638. "\n",
  639. ".xr-obj-type {\n",
  640. " color: var(--xr-font-color2);\n",
  641. "}\n",
  642. "\n",
  643. ".xr-sections {\n",
  644. " padding-left: 0 !important;\n",
  645. " display: grid;\n",
  646. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  647. "}\n",
  648. "\n",
  649. ".xr-section-item {\n",
  650. " display: contents;\n",
  651. "}\n",
  652. "\n",
  653. ".xr-section-item input {\n",
  654. " display: none;\n",
  655. "}\n",
  656. "\n",
  657. ".xr-section-item input + label {\n",
  658. " color: var(--xr-disabled-color);\n",
  659. "}\n",
  660. "\n",
  661. ".xr-section-item input:enabled + label {\n",
  662. " cursor: pointer;\n",
  663. " color: var(--xr-font-color2);\n",
  664. "}\n",
  665. "\n",
  666. ".xr-section-item input:enabled + label:hover {\n",
  667. " color: var(--xr-font-color0);\n",
  668. "}\n",
  669. "\n",
  670. ".xr-section-summary {\n",
  671. " grid-column: 1;\n",
  672. " color: var(--xr-font-color2);\n",
  673. " font-weight: 500;\n",
  674. "}\n",
  675. "\n",
  676. ".xr-section-summary > span {\n",
  677. " display: inline-block;\n",
  678. " padding-left: 0.5em;\n",
  679. "}\n",
  680. "\n",
  681. ".xr-section-summary-in:disabled + label {\n",
  682. " color: var(--xr-font-color2);\n",
  683. "}\n",
  684. "\n",
  685. ".xr-section-summary-in + label:before {\n",
  686. " display: inline-block;\n",
  687. " content: 'â–º';\n",
  688. " font-size: 11px;\n",
  689. " width: 15px;\n",
  690. " text-align: center;\n",
  691. "}\n",
  692. "\n",
  693. ".xr-section-summary-in:disabled + label:before {\n",
  694. " color: var(--xr-disabled-color);\n",
  695. "}\n",
  696. "\n",
  697. ".xr-section-summary-in:checked + label:before {\n",
  698. " content: 'â–¼';\n",
  699. "}\n",
  700. "\n",
  701. ".xr-section-summary-in:checked + label > span {\n",
  702. " display: none;\n",
  703. "}\n",
  704. "\n",
  705. ".xr-section-summary,\n",
  706. ".xr-section-inline-details {\n",
  707. " padding-top: 4px;\n",
  708. " padding-bottom: 4px;\n",
  709. "}\n",
  710. "\n",
  711. ".xr-section-inline-details {\n",
  712. " grid-column: 2 / -1;\n",
  713. "}\n",
  714. "\n",
  715. ".xr-section-details {\n",
  716. " display: none;\n",
  717. " grid-column: 1 / -1;\n",
  718. " margin-bottom: 5px;\n",
  719. "}\n",
  720. "\n",
  721. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  722. " display: contents;\n",
  723. "}\n",
  724. "\n",
  725. ".xr-array-wrap {\n",
  726. " grid-column: 1 / -1;\n",
  727. " display: grid;\n",
  728. " grid-template-columns: 20px auto;\n",
  729. "}\n",
  730. "\n",
  731. ".xr-array-wrap > label {\n",
  732. " grid-column: 1;\n",
  733. " vertical-align: top;\n",
  734. "}\n",
  735. "\n",
  736. ".xr-preview {\n",
  737. " color: var(--xr-font-color3);\n",
  738. "}\n",
  739. "\n",
  740. ".xr-array-preview,\n",
  741. ".xr-array-data {\n",
  742. " padding: 0 5px !important;\n",
  743. " grid-column: 2;\n",
  744. "}\n",
  745. "\n",
  746. ".xr-array-data,\n",
  747. ".xr-array-in:checked ~ .xr-array-preview {\n",
  748. " display: none;\n",
  749. "}\n",
  750. "\n",
  751. ".xr-array-in:checked ~ .xr-array-data,\n",
  752. ".xr-array-preview {\n",
  753. " display: inline-block;\n",
  754. "}\n",
  755. "\n",
  756. ".xr-dim-list {\n",
  757. " display: inline-block !important;\n",
  758. " list-style: none;\n",
  759. " padding: 0 !important;\n",
  760. " margin: 0;\n",
  761. "}\n",
  762. "\n",
  763. ".xr-dim-list li {\n",
  764. " display: inline-block;\n",
  765. " padding: 0;\n",
  766. " margin: 0;\n",
  767. "}\n",
  768. "\n",
  769. ".xr-dim-list:before {\n",
  770. " content: '(';\n",
  771. "}\n",
  772. "\n",
  773. ".xr-dim-list:after {\n",
  774. " content: ')';\n",
  775. "}\n",
  776. "\n",
  777. ".xr-dim-list li:not(:last-child):after {\n",
  778. " content: ',';\n",
  779. " padding-right: 5px;\n",
  780. "}\n",
  781. "\n",
  782. ".xr-has-index {\n",
  783. " font-weight: bold;\n",
  784. "}\n",
  785. "\n",
  786. ".xr-var-list,\n",
  787. ".xr-var-item {\n",
  788. " display: contents;\n",
  789. "}\n",
  790. "\n",
  791. ".xr-var-item > div,\n",
  792. ".xr-var-item label,\n",
  793. ".xr-var-item > .xr-var-name span {\n",
  794. " background-color: var(--xr-background-color-row-even);\n",
  795. " margin-bottom: 0;\n",
  796. "}\n",
  797. "\n",
  798. ".xr-var-item > .xr-var-name:hover span {\n",
  799. " padding-right: 5px;\n",
  800. "}\n",
  801. "\n",
  802. ".xr-var-list > li:nth-child(odd) > div,\n",
  803. ".xr-var-list > li:nth-child(odd) > label,\n",
  804. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  805. " background-color: var(--xr-background-color-row-odd);\n",
  806. "}\n",
  807. "\n",
  808. ".xr-var-name {\n",
  809. " grid-column: 1;\n",
  810. "}\n",
  811. "\n",
  812. ".xr-var-dims {\n",
  813. " grid-column: 2;\n",
  814. "}\n",
  815. "\n",
  816. ".xr-var-dtype {\n",
  817. " grid-column: 3;\n",
  818. " text-align: right;\n",
  819. " color: var(--xr-font-color2);\n",
  820. "}\n",
  821. "\n",
  822. ".xr-var-preview {\n",
  823. " grid-column: 4;\n",
  824. "}\n",
  825. "\n",
  826. ".xr-index-preview {\n",
  827. " grid-column: 2 / 5;\n",
  828. " color: var(--xr-font-color2);\n",
  829. "}\n",
  830. "\n",
  831. ".xr-var-name,\n",
  832. ".xr-var-dims,\n",
  833. ".xr-var-dtype,\n",
  834. ".xr-preview,\n",
  835. ".xr-attrs dt {\n",
  836. " white-space: nowrap;\n",
  837. " overflow: hidden;\n",
  838. " text-overflow: ellipsis;\n",
  839. " padding-right: 10px;\n",
  840. "}\n",
  841. "\n",
  842. ".xr-var-name:hover,\n",
  843. ".xr-var-dims:hover,\n",
  844. ".xr-var-dtype:hover,\n",
  845. ".xr-attrs dt:hover {\n",
  846. " overflow: visible;\n",
  847. " width: auto;\n",
  848. " z-index: 1;\n",
  849. "}\n",
  850. "\n",
  851. ".xr-var-attrs,\n",
  852. ".xr-var-data,\n",
  853. ".xr-index-data {\n",
  854. " display: none;\n",
  855. " background-color: var(--xr-background-color) !important;\n",
  856. " padding-bottom: 5px !important;\n",
  857. "}\n",
  858. "\n",
  859. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  860. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  861. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  862. " display: block;\n",
  863. "}\n",
  864. "\n",
  865. ".xr-var-data > table {\n",
  866. " float: right;\n",
  867. "}\n",
  868. "\n",
  869. ".xr-var-name span,\n",
  870. ".xr-var-data,\n",
  871. ".xr-index-name div,\n",
  872. ".xr-index-data,\n",
  873. ".xr-attrs {\n",
  874. " padding-left: 25px !important;\n",
  875. "}\n",
  876. "\n",
  877. ".xr-attrs,\n",
  878. ".xr-var-attrs,\n",
  879. ".xr-var-data,\n",
  880. ".xr-index-data {\n",
  881. " grid-column: 1 / -1;\n",
  882. "}\n",
  883. "\n",
  884. "dl.xr-attrs {\n",
  885. " padding: 0;\n",
  886. " margin: 0;\n",
  887. " display: grid;\n",
  888. " grid-template-columns: 125px auto;\n",
  889. "}\n",
  890. "\n",
  891. ".xr-attrs dt,\n",
  892. ".xr-attrs dd {\n",
  893. " padding: 0;\n",
  894. " margin: 0;\n",
  895. " float: left;\n",
  896. " padding-right: 10px;\n",
  897. " width: auto;\n",
  898. "}\n",
  899. "\n",
  900. ".xr-attrs dt {\n",
  901. " font-weight: normal;\n",
  902. " grid-column: 1;\n",
  903. "}\n",
  904. "\n",
  905. ".xr-attrs dt:hover span {\n",
  906. " display: inline-block;\n",
  907. " background: var(--xr-background-color);\n",
  908. " padding-right: 10px;\n",
  909. "}\n",
  910. "\n",
  911. ".xr-attrs dd {\n",
  912. " grid-column: 2;\n",
  913. " white-space: pre-wrap;\n",
  914. " word-break: break-all;\n",
  915. "}\n",
  916. "\n",
  917. ".xr-icon-database,\n",
  918. ".xr-icon-file-text2,\n",
  919. ".xr-no-icon {\n",
  920. " display: inline-block;\n",
  921. " vertical-align: middle;\n",
  922. " width: 1em;\n",
  923. " height: 1.5em !important;\n",
  924. " stroke-width: 0;\n",
  925. " stroke: currentColor;\n",
  926. " fill: currentColor;\n",
  927. "}\n",
  928. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  929. "Dimensions: (runs: 5, truncation_value: 11, y: 1200, x: 1920)\n",
  930. "Coordinates:\n",
  931. " * runs (runs) float64 0.0 1.0 2.0 3.0 4.0\n",
  932. " * truncation_value (truncation_value) float64 0.8 0.83 0.85 ... 0.97 0.99 1.0\n",
  933. "Dimensions without coordinates: y, x\n",
  934. "Data variables:\n",
  935. " atoms (runs, truncation_value, y, x) uint16 dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;\n",
  936. " background (runs, truncation_value, y, x) uint16 dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;\n",
  937. " dark (runs, truncation_value, y, x) uint16 dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;\n",
  938. " shotNum (runs, truncation_value) &lt;U2 dask.array&lt;chunksize=(5, 11), meta=np.ndarray&gt;\n",
  939. "Attributes: (12/100)\n",
  940. " TOF_free: 0.02\n",
  941. " abs_img_freq: 110.866\n",
  942. " absorption_imaging_flag: True\n",
  943. " backup_data: True\n",
  944. " blink_off_time: nan\n",
  945. " blink_on_time: nan\n",
  946. " ... ...\n",
  947. " z_offset: 0.195\n",
  948. " z_offset_img: 0.195\n",
  949. " truncation_value: [0.8 0.83 0.85 0.87 0.89 0.91 0.93 0....\n",
  950. " runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
  951. " scanAxis: [&#x27;runs&#x27; &#x27;truncation_value&#x27;]\n",
  952. " scanAxisLength: [55. 55.]</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-60ad284d-6c17-4de5-87e8-9c5041954e24' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-60ad284d-6c17-4de5-87e8-9c5041954e24' 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>: 5</li><li><span class='xr-has-index'>truncation_value</span>: 11</li><li><span>y</span>: 1200</li><li><span>x</span>: 1920</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-e7a8e751-ef52-4ef4-bfed-3fab473997ce' class='xr-section-summary-in' type='checkbox' checked><label for='section-e7a8e751-ef52-4ef4-bfed-3fab473997ce' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>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 3.0 4.0</div><input id='attrs-751d2c4f-1dc9-4e14-8fd4-2ae10c9866e4' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-751d2c4f-1dc9-4e14-8fd4-2ae10c9866e4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6cab3602-978c-45c5-b385-2e6bf83d40a4' class='xr-var-data-in' type='checkbox'><label for='data-6cab3602-978c-45c5-b385-2e6bf83d40a4' 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., 3., 4.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>truncation_value</span></div><div class='xr-var-dims'>(truncation_value)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.8 0.83 0.85 ... 0.97 0.99 1.0</div><input id='attrs-710393a6-211c-43a0-ac23-2e056a6ba52d' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-710393a6-211c-43a0-ac23-2e056a6ba52d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2faceeac-ee11-47c9-ba9b-36f14b75a120' class='xr-var-data-in' type='checkbox'><label for='data-2faceeac-ee11-47c9-ba9b-36f14b75a120' 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.8 , 0.83, 0.85, 0.87, 0.89, 0.91, 0.93, 0.95, 0.97, 0.99, 1. ])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-04b9fe0f-fd01-417a-bcbb-0418bc3369a5' class='xr-section-summary-in' type='checkbox' checked><label for='section-04b9fe0f-fd01-417a-bcbb-0418bc3369a5' class='xr-section-summary' >Data variables: <span>(4)</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, truncation_value, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-8bde07a1-4cfe-4ae2-a785-84a25ee9286b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8bde07a1-4cfe-4ae2-a785-84a25ee9286b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9f7ad42b-ab6a-445f-af3a-e491ceeb1082' class='xr-var-data-in' type='checkbox'><label for='data-9f7ad42b-ab6a-
  953. " <tr>\n",
  954. " <td>\n",
  955. " <table style=\"border-collapse: collapse;\">\n",
  956. " <thead>\n",
  957. " <tr>\n",
  958. " <td> </td>\n",
  959. " <th> Array </th>\n",
  960. " <th> Chunk </th>\n",
  961. " </tr>\n",
  962. " </thead>\n",
  963. " <tbody>\n",
  964. " \n",
  965. " <tr>\n",
  966. " <th> Bytes </th>\n",
  967. " <td> 241.70 MiB </td>\n",
  968. " <td> 241.70 MiB </td>\n",
  969. " </tr>\n",
  970. " \n",
  971. " <tr>\n",
  972. " <th> Shape </th>\n",
  973. " <td> (5, 11, 1200, 1920) </td>\n",
  974. " <td> (5, 11, 1200, 1920) </td>\n",
  975. " </tr>\n",
  976. " <tr>\n",
  977. " <th> Dask graph </th>\n",
  978. " <td colspan=\"2\"> 1 chunks in 178 graph layers </td>\n",
  979. " </tr>\n",
  980. " <tr>\n",
  981. " <th> Data type </th>\n",
  982. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  983. " </tr>\n",
  984. " </tbody>\n",
  985. " </table>\n",
  986. " </td>\n",
  987. " <td>\n",
  988. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  989. "\n",
  990. " <!-- Horizontal lines -->\n",
  991. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  992. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  993. "\n",
  994. " <!-- Vertical lines -->\n",
  995. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  996. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  997. "\n",
  998. " <!-- Colored Rectangle -->\n",
  999. " <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1000. "\n",
  1001. " <!-- Text -->\n",
  1002. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >5</text>\n",
  1003. " <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
  1004. "\n",
  1005. "\n",
  1006. " <!-- Horizontal lines -->\n",
  1007. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1008. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1009. "\n",
  1010. " <!-- Vertical lines -->\n",
  1011. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1012. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1013. "\n",
  1014. " <!-- Colored Rectangle -->\n",
  1015. " <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1016. "\n",
  1017. " <!-- Horizontal lines -->\n",
  1018. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1019. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1020. "\n",
  1021. " <!-- Vertical lines -->\n",
  1022. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1023. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1024. "\n",
  1025. " <!-- Colored Rectangle -->\n",
  1026. " <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1027. "\n",
  1028. " <!-- Horizontal lines -->\n",
  1029. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1030. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1031. "\n",
  1032. " <!-- Vertical lines -->\n",
  1033. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1034. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1035. "\n",
  1036. " <!-- Colored Rectangle -->\n",
  1037. " <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1038. "\n",
  1039. " <!-- Text -->\n",
  1040. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1041. " <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
  1042. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">11</text>\n",
  1043. "</svg>\n",
  1044. " </td>\n",
  1045. " </tr>\n",
  1046. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>background</span></div><div class='xr-var-dims'>(runs, truncation_value, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-4110b8fd-4de3-449e-849a-41f04d803fc4' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-4110b8fd-4de3-449e-849a-41f04d803fc4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1acc979b-7a34-4452-8886-b3ba2303436c' class='xr-var-data-in' type='checkbox'><label for='data-1acc979b-7a34-4452-8886-b3ba2303436c' 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",
  1047. " <tr>\n",
  1048. " <td>\n",
  1049. " <table style=\"border-collapse: collapse;\">\n",
  1050. " <thead>\n",
  1051. " <tr>\n",
  1052. " <td> </td>\n",
  1053. " <th> Array </th>\n",
  1054. " <th> Chunk </th>\n",
  1055. " </tr>\n",
  1056. " </thead>\n",
  1057. " <tbody>\n",
  1058. " \n",
  1059. " <tr>\n",
  1060. " <th> Bytes </th>\n",
  1061. " <td> 241.70 MiB </td>\n",
  1062. " <td> 241.70 MiB </td>\n",
  1063. " </tr>\n",
  1064. " \n",
  1065. " <tr>\n",
  1066. " <th> Shape </th>\n",
  1067. " <td> (5, 11, 1200, 1920) </td>\n",
  1068. " <td> (5, 11, 1200, 1920) </td>\n",
  1069. " </tr>\n",
  1070. " <tr>\n",
  1071. " <th> Dask graph </th>\n",
  1072. " <td colspan=\"2\"> 1 chunks in 178 graph layers </td>\n",
  1073. " </tr>\n",
  1074. " <tr>\n",
  1075. " <th> Data type </th>\n",
  1076. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  1077. " </tr>\n",
  1078. " </tbody>\n",
  1079. " </table>\n",
  1080. " </td>\n",
  1081. " <td>\n",
  1082. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1083. "\n",
  1084. " <!-- Horizontal lines -->\n",
  1085. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1086. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1087. "\n",
  1088. " <!-- Vertical lines -->\n",
  1089. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1090. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1091. "\n",
  1092. " <!-- Colored Rectangle -->\n",
  1093. " <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1094. "\n",
  1095. " <!-- Text -->\n",
  1096. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >5</text>\n",
  1097. " <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
  1098. "\n",
  1099. "\n",
  1100. " <!-- Horizontal lines -->\n",
  1101. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1102. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1103. "\n",
  1104. " <!-- Vertical lines -->\n",
  1105. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1106. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1107. "\n",
  1108. " <!-- Colored Rectangle -->\n",
  1109. " <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1110. "\n",
  1111. " <!-- Horizontal lines -->\n",
  1112. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1113. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1114. "\n",
  1115. " <!-- Vertical lines -->\n",
  1116. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1117. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1118. "\n",
  1119. " <!-- Colored Rectangle -->\n",
  1120. " <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1121. "\n",
  1122. " <!-- Horizontal lines -->\n",
  1123. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1124. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1125. "\n",
  1126. " <!-- Vertical lines -->\n",
  1127. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1128. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1129. "\n",
  1130. " <!-- Colored Rectangle -->\n",
  1131. " <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1132. "\n",
  1133. " <!-- Text -->\n",
  1134. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1135. " <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
  1136. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">11</text>\n",
  1137. "</svg>\n",
  1138. " </td>\n",
  1139. " </tr>\n",
  1140. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>dark</span></div><div class='xr-var-dims'>(runs, truncation_value, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-cc001339-3532-4597-91ff-9c6f778b56a0' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-cc001339-3532-4597-91ff-9c6f778b56a0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-88d17b84-ca9b-45ad-9080-9c4f9c722cad' class='xr-var-data-in' type='checkbox'><label for='data-88d17b84-ca9b-45ad-9080-9c4f9c722cad' 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",
  1141. " <tr>\n",
  1142. " <td>\n",
  1143. " <table style=\"border-collapse: collapse;\">\n",
  1144. " <thead>\n",
  1145. " <tr>\n",
  1146. " <td> </td>\n",
  1147. " <th> Array </th>\n",
  1148. " <th> Chunk </th>\n",
  1149. " </tr>\n",
  1150. " </thead>\n",
  1151. " <tbody>\n",
  1152. " \n",
  1153. " <tr>\n",
  1154. " <th> Bytes </th>\n",
  1155. " <td> 241.70 MiB </td>\n",
  1156. " <td> 241.70 MiB </td>\n",
  1157. " </tr>\n",
  1158. " \n",
  1159. " <tr>\n",
  1160. " <th> Shape </th>\n",
  1161. " <td> (5, 11, 1200, 1920) </td>\n",
  1162. " <td> (5, 11, 1200, 1920) </td>\n",
  1163. " </tr>\n",
  1164. " <tr>\n",
  1165. " <th> Dask graph </th>\n",
  1166. " <td colspan=\"2\"> 1 chunks in 178 graph layers </td>\n",
  1167. " </tr>\n",
  1168. " <tr>\n",
  1169. " <th> Data type </th>\n",
  1170. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  1171. " </tr>\n",
  1172. " </tbody>\n",
  1173. " </table>\n",
  1174. " </td>\n",
  1175. " <td>\n",
  1176. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1177. "\n",
  1178. " <!-- Horizontal lines -->\n",
  1179. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1180. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1181. "\n",
  1182. " <!-- Vertical lines -->\n",
  1183. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1184. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1185. "\n",
  1186. " <!-- Colored Rectangle -->\n",
  1187. " <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1188. "\n",
  1189. " <!-- Text -->\n",
  1190. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >5</text>\n",
  1191. " <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
  1192. "\n",
  1193. "\n",
  1194. " <!-- Horizontal lines -->\n",
  1195. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1196. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1197. "\n",
  1198. " <!-- Vertical lines -->\n",
  1199. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1200. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1201. "\n",
  1202. " <!-- Colored Rectangle -->\n",
  1203. " <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1204. "\n",
  1205. " <!-- Horizontal lines -->\n",
  1206. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1207. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1208. "\n",
  1209. " <!-- Vertical lines -->\n",
  1210. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1211. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1212. "\n",
  1213. " <!-- Colored Rectangle -->\n",
  1214. " <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1215. "\n",
  1216. " <!-- Horizontal lines -->\n",
  1217. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1218. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1219. "\n",
  1220. " <!-- Vertical lines -->\n",
  1221. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1222. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1223. "\n",
  1224. " <!-- Colored Rectangle -->\n",
  1225. " <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1226. "\n",
  1227. " <!-- Text -->\n",
  1228. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1229. " <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
  1230. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">11</text>\n",
  1231. "</svg>\n",
  1232. " </td>\n",
  1233. " </tr>\n",
  1234. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>shotNum</span></div><div class='xr-var-dims'>(runs, truncation_value)</div><div class='xr-var-dtype'>&lt;U2</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(5, 11), meta=np.ndarray&gt;</div><input id='attrs-6b8c8483-a6a5-4167-aeab-8346b01c5eab' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6b8c8483-a6a5-4167-aeab-8346b01c5eab' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-530badb7-3994-4e40-af3d-87dbf61ad701' class='xr-var-data-in' type='checkbox'><label for='data-530badb7-3994-4e40-af3d-87dbf61ad701' 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'><table>\n",
  1235. " <tr>\n",
  1236. " <td>\n",
  1237. " <table style=\"border-collapse: collapse;\">\n",
  1238. " <thead>\n",
  1239. " <tr>\n",
  1240. " <td> </td>\n",
  1241. " <th> Array </th>\n",
  1242. " <th> Chunk </th>\n",
  1243. " </tr>\n",
  1244. " </thead>\n",
  1245. " <tbody>\n",
  1246. " \n",
  1247. " <tr>\n",
  1248. " <th> Bytes </th>\n",
  1249. " <td> 440 B </td>\n",
  1250. " <td> 440 B </td>\n",
  1251. " </tr>\n",
  1252. " \n",
  1253. " <tr>\n",
  1254. " <th> Shape </th>\n",
  1255. " <td> (5, 11) </td>\n",
  1256. " <td> (5, 11) </td>\n",
  1257. " </tr>\n",
  1258. " <tr>\n",
  1259. " <th> Dask graph </th>\n",
  1260. " <td colspan=\"2\"> 1 chunks in 1 graph layer </td>\n",
  1261. " </tr>\n",
  1262. " <tr>\n",
  1263. " <th> Data type </th>\n",
  1264. " <td colspan=\"2\"> <U2 numpy.ndarray </td>\n",
  1265. " </tr>\n",
  1266. " </tbody>\n",
  1267. " </table>\n",
  1268. " </td>\n",
  1269. " <td>\n",
  1270. " <svg width=\"170\" height=\"104\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1271. "\n",
  1272. " <!-- Horizontal lines -->\n",
  1273. " <line x1=\"0\" y1=\"0\" x2=\"120\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1274. " <line x1=\"0\" y1=\"54\" x2=\"120\" y2=\"54\" style=\"stroke-width:2\" />\n",
  1275. "\n",
  1276. " <!-- Vertical lines -->\n",
  1277. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"54\" style=\"stroke-width:2\" />\n",
  1278. " <line x1=\"120\" y1=\"0\" x2=\"120\" y2=\"54\" style=\"stroke-width:2\" />\n",
  1279. "\n",
  1280. " <!-- Colored Rectangle -->\n",
  1281. " <polygon points=\"0.0,0.0 120.0,0.0 120.0,54.54545454545454 0.0,54.54545454545454\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1282. "\n",
  1283. " <!-- Text -->\n",
  1284. " <text x=\"60.000000\" y=\"74.545455\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
  1285. " <text x=\"140.000000\" y=\"27.272727\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,140.000000,27.272727)\">5</text>\n",
  1286. "</svg>\n",
  1287. " </td>\n",
  1288. " </tr>\n",
  1289. "</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-2de491bf-fa24-4cb3-80ef-cb2101d97450' class='xr-section-summary-in' type='checkbox' ><label for='section-2de491bf-fa24-4cb3-80ef-cb2101d97450' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>runs</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-41a901d2-1225-4e0c-8c6d-b4d1e2b187e9' class='xr-index-data-in' type='checkbox'/><label for='index-41a901d2-1225-4e0c-8c6d-b4d1e2b187e9' 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, 3.0, 4.0], dtype=&#x27;float64&#x27;, name=&#x27;runs&#x27;))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>truncation_value</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-371f1d73-9852-402f-9120-554525577ebc' class='xr-index-data-in' type='checkbox'/><label for='index-371f1d73-9852-402f-9120-554525577ebc' 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.8, 0.83, 0.85, 0.87, 0.89, 0.91, 0.93, 0.95, 0.97, 0.99, 1.0], dtype=&#x27;float64&#x27;, name=&#x27;truncation_value&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-a0ecb7b8-dc8e-47f3-bb45-e06e06c147ef' class='xr-section-summary-in' type='checkbox' ><label for='section-a0ecb7b8-dc8e-47f3-bb45-e06e06c147ef' class='xr-section-summary' >Attributes: <span>(100)</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.866</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.195</dd><dt><span>compZ_final_current :</span></dt><dd>0.287</dd><dt><span>compZ_initial_current :</span></dt><dd>0</dd><dt><span>default_camera :</span></dt><dd>0</dd><dt><span>evap_1_final_pow_1 :</span></dt><dd>4.8</dd><dt><span>evap_1_final_pow_2 :</span></dt><dd>2.2</dd><dt><span>evap_1_final_pow_3 :</span></dt><dd>1.2</dd><dt><span>evap_1_final_pow_4 :</span></dt><dd>0.526</dd><dt><span>evap_1_ramp_duration_1 :</span></dt><dd>0.15</dd><dt><span>evap_1_ramp_duration_2 :</span></dt><dd>0.3</dd><dt><span>evap_1_ramp_duration_3 :</span></dt><dd>0.2</dd><dt><span>evap_1_ramp_duration_4 :</span></dt><dd>0.5</dd><dt><span>evap_1_start_pow_1 :</span></dt><dd>7</dd><dt><span>evap_1_start_pow_2 :</span></dt><dd>4.8</dd><dt><span>evap_1_start_pow_3 :</span></dt><dd>2.2</dd><dt><span>evap_1_start_pow_4 :</span></dt><dd>1.2</dd><dt><span>evap_2_final_pow_1 :</span></dt><dd>0.35</dd><dt><span>evap_2_ramp_duration_1 :</span></dt><dd>0.5</dd><dt><span>evap_2_start_pow_1 :</span></dt><dd>0.526</dd><dt><span>evap_3_arm_1_final_pow :</span></dt><dd>0.037</dd><dt><span>evap_3_arm_1_start_pow :</span></dt><dd>0.35</dd><dt><span>evap_3_ar
  1290. " 0.87 0.89 0.91 0.93 0.95 0.97 0.99 1. 0.8 0.83 0.85 0.87 0.89 0.91\n",
  1291. " 0.93 0.95 0.97 0.99 1. 0.8 0.83 0.85 0.87 0.89 0.91 0.93 0.95 0.97\n",
  1292. " 0.99 1. 0.8 0.83 0.85 0.87 0.89 0.91 0.93 0.95 0.97 0.99 1. ]</dd><dt><span>runs :</span></dt><dd>[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 2. 2.\n",
  1293. " 2. 2. 2. 2. 2. 2. 2. 2. 2. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 4. 4. 4. 4.\n",
  1294. " 4. 4. 4. 4. 4. 4. 4.]</dd><dt><span>scanAxis :</span></dt><dd>[&#x27;runs&#x27; &#x27;truncation_value&#x27;]</dd><dt><span>scanAxisLength :</span></dt><dd>[55. 55.]</dd></dl></div></li></ul></div></div>"
  1295. ],
  1296. "text/plain": [
  1297. "<xarray.Dataset>\n",
  1298. "Dimensions: (runs: 5, truncation_value: 11, y: 1200, x: 1920)\n",
  1299. "Coordinates:\n",
  1300. " * runs (runs) float64 0.0 1.0 2.0 3.0 4.0\n",
  1301. " * truncation_value (truncation_value) float64 0.8 0.83 0.85 ... 0.97 0.99 1.0\n",
  1302. "Dimensions without coordinates: y, x\n",
  1303. "Data variables:\n",
  1304. " atoms (runs, truncation_value, y, x) uint16 dask.array<chunksize=(5, 11, 1200, 1920), meta=np.ndarray>\n",
  1305. " background (runs, truncation_value, y, x) uint16 dask.array<chunksize=(5, 11, 1200, 1920), meta=np.ndarray>\n",
  1306. " dark (runs, truncation_value, y, x) uint16 dask.array<chunksize=(5, 11, 1200, 1920), meta=np.ndarray>\n",
  1307. " shotNum (runs, truncation_value) <U2 dask.array<chunksize=(5, 11), meta=np.ndarray>\n",
  1308. "Attributes: (12/100)\n",
  1309. " TOF_free: 0.02\n",
  1310. " abs_img_freq: 110.866\n",
  1311. " absorption_imaging_flag: True\n",
  1312. " backup_data: True\n",
  1313. " blink_off_time: nan\n",
  1314. " blink_on_time: nan\n",
  1315. " ... ...\n",
  1316. " z_offset: 0.195\n",
  1317. " z_offset_img: 0.195\n",
  1318. " truncation_value: [0.8 0.83 0.85 0.87 0.89 0.91 0.93 0....\n",
  1319. " runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
  1320. " scanAxis: ['runs' 'truncation_value']\n",
  1321. " scanAxisLength: [55. 55.]"
  1322. ]
  1323. },
  1324. "execution_count": 5,
  1325. "metadata": {},
  1326. "output_type": "execute_result"
  1327. }
  1328. ],
  1329. "source": [
  1330. "shotNum = \"0058\"\n",
  1331. "filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
  1332. "\n",
  1333. "dataSetDict = {\n",
  1334. " dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i])\n",
  1335. " for i in [0] # range(len(groupList)) # uncommont to load data for all three cameras\n",
  1336. "}\n",
  1337. "dataSet = dataSetDict[\"camera_0\"]\n",
  1338. "\n",
  1339. "dataSet = swap_xy(dataSet)\n",
  1340. "\n",
  1341. "scanAxis = get_scanAxis(dataSet)\n",
  1342. "\n",
  1343. "dataSet = auto_rechunk(dataSet)\n",
  1344. "\n",
  1345. "dataSet"
  1346. ]
  1347. },
  1348. {
  1349. "cell_type": "markdown",
  1350. "metadata": {},
  1351. "source": [
  1352. "## Creat an object of imaging analyser "
  1353. ]
  1354. },
  1355. {
  1356. "cell_type": "markdown",
  1357. "metadata": {},
  1358. "source": [
  1359. "The idea is to package all imaging related analysis funciton into a clasee, the 'ImageAnalyser'. The advantage is that it record our last settings, i.e. the region of interest, and thus we don't need to set it again.\n",
  1360. "\n",
  1361. "Therefore, first we need to create an object of the 'ImageAnalyser' class."
  1362. ]
  1363. },
  1364. {
  1365. "cell_type": "code",
  1366. "execution_count": 6,
  1367. "metadata": {},
  1368. "outputs": [],
  1369. "source": [
  1370. "imageAnalyser = ImageAnalyser()"
  1371. ]
  1372. },
  1373. {
  1374. "cell_type": "markdown",
  1375. "metadata": {},
  1376. "source": [
  1377. "## Calculate OD of absorption imaging"
  1378. ]
  1379. },
  1380. {
  1381. "cell_type": "markdown",
  1382. "metadata": {},
  1383. "source": [
  1384. "A brief introduction to the absorption iamging can be found in following link\n",
  1385. "\n",
  1386. "https://arxiv.org/pdf/1209.3408.pdf\n",
  1387. "\n",
  1388. "You now can directly call the function ImageAnalyser.get_absorption_images() to get the OD of aborption imging from the loaded data. It will return a copy of the data and add the calculation result with a name 'OD'."
  1389. ]
  1390. },
  1391. {
  1392. "cell_type": "code",
  1393. "execution_count": 7,
  1394. "metadata": {},
  1395. "outputs": [
  1396. {
  1397. "data": {
  1398. "text/html": [
  1399. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  1400. "<defs>\n",
  1401. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  1402. "<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",
  1403. "<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",
  1404. "<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",
  1405. "</symbol>\n",
  1406. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  1407. "<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",
  1408. "<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",
  1409. "<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",
  1410. "<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",
  1411. "</symbol>\n",
  1412. "</defs>\n",
  1413. "</svg>\n",
  1414. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  1415. " *\n",
  1416. " */\n",
  1417. "\n",
  1418. ":root {\n",
  1419. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  1420. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  1421. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  1422. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  1423. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  1424. " --xr-background-color: var(--jp-layout-color0, white);\n",
  1425. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  1426. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  1427. "}\n",
  1428. "\n",
  1429. "html[theme=dark],\n",
  1430. "body[data-theme=dark],\n",
  1431. "body.vscode-dark {\n",
  1432. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  1433. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  1434. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  1435. " --xr-border-color: #1F1F1F;\n",
  1436. " --xr-disabled-color: #515151;\n",
  1437. " --xr-background-color: #111111;\n",
  1438. " --xr-background-color-row-even: #111111;\n",
  1439. " --xr-background-color-row-odd: #313131;\n",
  1440. "}\n",
  1441. "\n",
  1442. ".xr-wrap {\n",
  1443. " display: block !important;\n",
  1444. " min-width: 300px;\n",
  1445. " max-width: 700px;\n",
  1446. "}\n",
  1447. "\n",
  1448. ".xr-text-repr-fallback {\n",
  1449. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  1450. " display: none;\n",
  1451. "}\n",
  1452. "\n",
  1453. ".xr-header {\n",
  1454. " padding-top: 6px;\n",
  1455. " padding-bottom: 6px;\n",
  1456. " margin-bottom: 4px;\n",
  1457. " border-bottom: solid 1px var(--xr-border-color);\n",
  1458. "}\n",
  1459. "\n",
  1460. ".xr-header > div,\n",
  1461. ".xr-header > ul {\n",
  1462. " display: inline;\n",
  1463. " margin-top: 0;\n",
  1464. " margin-bottom: 0;\n",
  1465. "}\n",
  1466. "\n",
  1467. ".xr-obj-type,\n",
  1468. ".xr-array-name {\n",
  1469. " margin-left: 2px;\n",
  1470. " margin-right: 10px;\n",
  1471. "}\n",
  1472. "\n",
  1473. ".xr-obj-type {\n",
  1474. " color: var(--xr-font-color2);\n",
  1475. "}\n",
  1476. "\n",
  1477. ".xr-sections {\n",
  1478. " padding-left: 0 !important;\n",
  1479. " display: grid;\n",
  1480. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  1481. "}\n",
  1482. "\n",
  1483. ".xr-section-item {\n",
  1484. " display: contents;\n",
  1485. "}\n",
  1486. "\n",
  1487. ".xr-section-item input {\n",
  1488. " display: none;\n",
  1489. "}\n",
  1490. "\n",
  1491. ".xr-section-item input + label {\n",
  1492. " color: var(--xr-disabled-color);\n",
  1493. "}\n",
  1494. "\n",
  1495. ".xr-section-item input:enabled + label {\n",
  1496. " cursor: pointer;\n",
  1497. " color: var(--xr-font-color2);\n",
  1498. "}\n",
  1499. "\n",
  1500. ".xr-section-item input:enabled + label:hover {\n",
  1501. " color: var(--xr-font-color0);\n",
  1502. "}\n",
  1503. "\n",
  1504. ".xr-section-summary {\n",
  1505. " grid-column: 1;\n",
  1506. " color: var(--xr-font-color2);\n",
  1507. " font-weight: 500;\n",
  1508. "}\n",
  1509. "\n",
  1510. ".xr-section-summary > span {\n",
  1511. " display: inline-block;\n",
  1512. " padding-left: 0.5em;\n",
  1513. "}\n",
  1514. "\n",
  1515. ".xr-section-summary-in:disabled + label {\n",
  1516. " color: var(--xr-font-color2);\n",
  1517. "}\n",
  1518. "\n",
  1519. ".xr-section-summary-in + label:before {\n",
  1520. " display: inline-block;\n",
  1521. " content: 'â–º';\n",
  1522. " font-size: 11px;\n",
  1523. " width: 15px;\n",
  1524. " text-align: center;\n",
  1525. "}\n",
  1526. "\n",
  1527. ".xr-section-summary-in:disabled + label:before {\n",
  1528. " color: var(--xr-disabled-color);\n",
  1529. "}\n",
  1530. "\n",
  1531. ".xr-section-summary-in:checked + label:before {\n",
  1532. " content: 'â–¼';\n",
  1533. "}\n",
  1534. "\n",
  1535. ".xr-section-summary-in:checked + label > span {\n",
  1536. " display: none;\n",
  1537. "}\n",
  1538. "\n",
  1539. ".xr-section-summary,\n",
  1540. ".xr-section-inline-details {\n",
  1541. " padding-top: 4px;\n",
  1542. " padding-bottom: 4px;\n",
  1543. "}\n",
  1544. "\n",
  1545. ".xr-section-inline-details {\n",
  1546. " grid-column: 2 / -1;\n",
  1547. "}\n",
  1548. "\n",
  1549. ".xr-section-details {\n",
  1550. " display: none;\n",
  1551. " grid-column: 1 / -1;\n",
  1552. " margin-bottom: 5px;\n",
  1553. "}\n",
  1554. "\n",
  1555. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  1556. " display: contents;\n",
  1557. "}\n",
  1558. "\n",
  1559. ".xr-array-wrap {\n",
  1560. " grid-column: 1 / -1;\n",
  1561. " display: grid;\n",
  1562. " grid-template-columns: 20px auto;\n",
  1563. "}\n",
  1564. "\n",
  1565. ".xr-array-wrap > label {\n",
  1566. " grid-column: 1;\n",
  1567. " vertical-align: top;\n",
  1568. "}\n",
  1569. "\n",
  1570. ".xr-preview {\n",
  1571. " color: var(--xr-font-color3);\n",
  1572. "}\n",
  1573. "\n",
  1574. ".xr-array-preview,\n",
  1575. ".xr-array-data {\n",
  1576. " padding: 0 5px !important;\n",
  1577. " grid-column: 2;\n",
  1578. "}\n",
  1579. "\n",
  1580. ".xr-array-data,\n",
  1581. ".xr-array-in:checked ~ .xr-array-preview {\n",
  1582. " display: none;\n",
  1583. "}\n",
  1584. "\n",
  1585. ".xr-array-in:checked ~ .xr-array-data,\n",
  1586. ".xr-array-preview {\n",
  1587. " display: inline-block;\n",
  1588. "}\n",
  1589. "\n",
  1590. ".xr-dim-list {\n",
  1591. " display: inline-block !important;\n",
  1592. " list-style: none;\n",
  1593. " padding: 0 !important;\n",
  1594. " margin: 0;\n",
  1595. "}\n",
  1596. "\n",
  1597. ".xr-dim-list li {\n",
  1598. " display: inline-block;\n",
  1599. " padding: 0;\n",
  1600. " margin: 0;\n",
  1601. "}\n",
  1602. "\n",
  1603. ".xr-dim-list:before {\n",
  1604. " content: '(';\n",
  1605. "}\n",
  1606. "\n",
  1607. ".xr-dim-list:after {\n",
  1608. " content: ')';\n",
  1609. "}\n",
  1610. "\n",
  1611. ".xr-dim-list li:not(:last-child):after {\n",
  1612. " content: ',';\n",
  1613. " padding-right: 5px;\n",
  1614. "}\n",
  1615. "\n",
  1616. ".xr-has-index {\n",
  1617. " font-weight: bold;\n",
  1618. "}\n",
  1619. "\n",
  1620. ".xr-var-list,\n",
  1621. ".xr-var-item {\n",
  1622. " display: contents;\n",
  1623. "}\n",
  1624. "\n",
  1625. ".xr-var-item > div,\n",
  1626. ".xr-var-item label,\n",
  1627. ".xr-var-item > .xr-var-name span {\n",
  1628. " background-color: var(--xr-background-color-row-even);\n",
  1629. " margin-bottom: 0;\n",
  1630. "}\n",
  1631. "\n",
  1632. ".xr-var-item > .xr-var-name:hover span {\n",
  1633. " padding-right: 5px;\n",
  1634. "}\n",
  1635. "\n",
  1636. ".xr-var-list > li:nth-child(odd) > div,\n",
  1637. ".xr-var-list > li:nth-child(odd) > label,\n",
  1638. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  1639. " background-color: var(--xr-background-color-row-odd);\n",
  1640. "}\n",
  1641. "\n",
  1642. ".xr-var-name {\n",
  1643. " grid-column: 1;\n",
  1644. "}\n",
  1645. "\n",
  1646. ".xr-var-dims {\n",
  1647. " grid-column: 2;\n",
  1648. "}\n",
  1649. "\n",
  1650. ".xr-var-dtype {\n",
  1651. " grid-column: 3;\n",
  1652. " text-align: right;\n",
  1653. " color: var(--xr-font-color2);\n",
  1654. "}\n",
  1655. "\n",
  1656. ".xr-var-preview {\n",
  1657. " grid-column: 4;\n",
  1658. "}\n",
  1659. "\n",
  1660. ".xr-index-preview {\n",
  1661. " grid-column: 2 / 5;\n",
  1662. " color: var(--xr-font-color2);\n",
  1663. "}\n",
  1664. "\n",
  1665. ".xr-var-name,\n",
  1666. ".xr-var-dims,\n",
  1667. ".xr-var-dtype,\n",
  1668. ".xr-preview,\n",
  1669. ".xr-attrs dt {\n",
  1670. " white-space: nowrap;\n",
  1671. " overflow: hidden;\n",
  1672. " text-overflow: ellipsis;\n",
  1673. " padding-right: 10px;\n",
  1674. "}\n",
  1675. "\n",
  1676. ".xr-var-name:hover,\n",
  1677. ".xr-var-dims:hover,\n",
  1678. ".xr-var-dtype:hover,\n",
  1679. ".xr-attrs dt:hover {\n",
  1680. " overflow: visible;\n",
  1681. " width: auto;\n",
  1682. " z-index: 1;\n",
  1683. "}\n",
  1684. "\n",
  1685. ".xr-var-attrs,\n",
  1686. ".xr-var-data,\n",
  1687. ".xr-index-data {\n",
  1688. " display: none;\n",
  1689. " background-color: var(--xr-background-color) !important;\n",
  1690. " padding-bottom: 5px !important;\n",
  1691. "}\n",
  1692. "\n",
  1693. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  1694. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  1695. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  1696. " display: block;\n",
  1697. "}\n",
  1698. "\n",
  1699. ".xr-var-data > table {\n",
  1700. " float: right;\n",
  1701. "}\n",
  1702. "\n",
  1703. ".xr-var-name span,\n",
  1704. ".xr-var-data,\n",
  1705. ".xr-index-name div,\n",
  1706. ".xr-index-data,\n",
  1707. ".xr-attrs {\n",
  1708. " padding-left: 25px !important;\n",
  1709. "}\n",
  1710. "\n",
  1711. ".xr-attrs,\n",
  1712. ".xr-var-attrs,\n",
  1713. ".xr-var-data,\n",
  1714. ".xr-index-data {\n",
  1715. " grid-column: 1 / -1;\n",
  1716. "}\n",
  1717. "\n",
  1718. "dl.xr-attrs {\n",
  1719. " padding: 0;\n",
  1720. " margin: 0;\n",
  1721. " display: grid;\n",
  1722. " grid-template-columns: 125px auto;\n",
  1723. "}\n",
  1724. "\n",
  1725. ".xr-attrs dt,\n",
  1726. ".xr-attrs dd {\n",
  1727. " padding: 0;\n",
  1728. " margin: 0;\n",
  1729. " float: left;\n",
  1730. " padding-right: 10px;\n",
  1731. " width: auto;\n",
  1732. "}\n",
  1733. "\n",
  1734. ".xr-attrs dt {\n",
  1735. " font-weight: normal;\n",
  1736. " grid-column: 1;\n",
  1737. "}\n",
  1738. "\n",
  1739. ".xr-attrs dt:hover span {\n",
  1740. " display: inline-block;\n",
  1741. " background: var(--xr-background-color);\n",
  1742. " padding-right: 10px;\n",
  1743. "}\n",
  1744. "\n",
  1745. ".xr-attrs dd {\n",
  1746. " grid-column: 2;\n",
  1747. " white-space: pre-wrap;\n",
  1748. " word-break: break-all;\n",
  1749. "}\n",
  1750. "\n",
  1751. ".xr-icon-database,\n",
  1752. ".xr-icon-file-text2,\n",
  1753. ".xr-no-icon {\n",
  1754. " display: inline-block;\n",
  1755. " vertical-align: middle;\n",
  1756. " width: 1em;\n",
  1757. " height: 1.5em !important;\n",
  1758. " stroke-width: 0;\n",
  1759. " stroke: currentColor;\n",
  1760. " fill: currentColor;\n",
  1761. "}\n",
  1762. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  1763. "Dimensions: (runs: 5, truncation_value: 11, y: 1200, x: 1920)\n",
  1764. "Coordinates:\n",
  1765. " * runs (runs) float64 0.0 1.0 2.0 3.0 4.0\n",
  1766. " * truncation_value (truncation_value) float64 0.8 0.83 0.85 ... 0.97 0.99 1.0\n",
  1767. "Dimensions without coordinates: y, x\n",
  1768. "Data variables:\n",
  1769. " atoms (runs, truncation_value, y, x) uint16 dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;\n",
  1770. " background (runs, truncation_value, y, x) uint16 dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;\n",
  1771. " dark (runs, truncation_value, y, x) uint16 dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;\n",
  1772. " shotNum (runs, truncation_value) &lt;U2 dask.array&lt;chunksize=(5, 11), meta=np.ndarray&gt;\n",
  1773. " OD (runs, truncation_value, y, x) float64 dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;\n",
  1774. "Attributes: (12/100)\n",
  1775. " TOF_free: 0.02\n",
  1776. " abs_img_freq: 110.866\n",
  1777. " absorption_imaging_flag: True\n",
  1778. " backup_data: True\n",
  1779. " blink_off_time: nan\n",
  1780. " blink_on_time: nan\n",
  1781. " ... ...\n",
  1782. " z_offset: 0.195\n",
  1783. " z_offset_img: 0.195\n",
  1784. " truncation_value: [0.8 0.83 0.85 0.87 0.89 0.91 0.93 0....\n",
  1785. " runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
  1786. " scanAxis: [&#x27;runs&#x27; &#x27;truncation_value&#x27;]\n",
  1787. " scanAxisLength: [55. 55.]</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-0ab3933f-2d21-4231-b90b-f7798daf5712' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0ab3933f-2d21-4231-b90b-f7798daf5712' 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>: 5</li><li><span class='xr-has-index'>truncation_value</span>: 11</li><li><span>y</span>: 1200</li><li><span>x</span>: 1920</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-b9380d46-c8d8-4b12-9a04-bb4c64792478' class='xr-section-summary-in' type='checkbox' checked><label for='section-b9380d46-c8d8-4b12-9a04-bb4c64792478' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>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 3.0 4.0</div><input id='attrs-9522b1ba-399e-414d-a4a1-1c360237d1af' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9522b1ba-399e-414d-a4a1-1c360237d1af' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9670235c-abd9-47be-b6a9-cf1c2de2a57b' class='xr-var-data-in' type='checkbox'><label for='data-9670235c-abd9-47be-b6a9-cf1c2de2a57b' 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., 3., 4.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>truncation_value</span></div><div class='xr-var-dims'>(truncation_value)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.8 0.83 0.85 ... 0.97 0.99 1.0</div><input id='attrs-3e2ab95c-15fb-4ad6-806a-05f92ea4c580' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3e2ab95c-15fb-4ad6-806a-05f92ea4c580' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-04344353-cb2a-4fd2-8795-d7d35ef4e5aa' class='xr-var-data-in' type='checkbox'><label for='data-04344353-cb2a-4fd2-8795-d7d35ef4e5aa' 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.8 , 0.83, 0.85, 0.87, 0.89, 0.91, 0.93, 0.95, 0.97, 0.99, 1. ])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-442581b4-cf7c-4cb8-9c2e-897a64a9989d' class='xr-section-summary-in' type='checkbox' checked><label for='section-442581b4-cf7c-4cb8-9c2e-897a64a9989d' 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, truncation_value, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-2e1ef343-deb4-42b2-af95-f3ee865eb158' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-2e1ef343-deb4-42b2-af95-f3ee865eb158' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e57683ca-a01e-4368-ba45-7b991468a9e4' class='xr-var-data-in' type='checkbox'><label for='data-e57683ca-a01e-
  1788. " <tr>\n",
  1789. " <td>\n",
  1790. " <table style=\"border-collapse: collapse;\">\n",
  1791. " <thead>\n",
  1792. " <tr>\n",
  1793. " <td> </td>\n",
  1794. " <th> Array </th>\n",
  1795. " <th> Chunk </th>\n",
  1796. " </tr>\n",
  1797. " </thead>\n",
  1798. " <tbody>\n",
  1799. " \n",
  1800. " <tr>\n",
  1801. " <th> Bytes </th>\n",
  1802. " <td> 241.70 MiB </td>\n",
  1803. " <td> 241.70 MiB </td>\n",
  1804. " </tr>\n",
  1805. " \n",
  1806. " <tr>\n",
  1807. " <th> Shape </th>\n",
  1808. " <td> (5, 11, 1200, 1920) </td>\n",
  1809. " <td> (5, 11, 1200, 1920) </td>\n",
  1810. " </tr>\n",
  1811. " <tr>\n",
  1812. " <th> Dask graph </th>\n",
  1813. " <td colspan=\"2\"> 1 chunks in 178 graph layers </td>\n",
  1814. " </tr>\n",
  1815. " <tr>\n",
  1816. " <th> Data type </th>\n",
  1817. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  1818. " </tr>\n",
  1819. " </tbody>\n",
  1820. " </table>\n",
  1821. " </td>\n",
  1822. " <td>\n",
  1823. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1824. "\n",
  1825. " <!-- Horizontal lines -->\n",
  1826. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1827. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1828. "\n",
  1829. " <!-- Vertical lines -->\n",
  1830. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1831. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1832. "\n",
  1833. " <!-- Colored Rectangle -->\n",
  1834. " <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1835. "\n",
  1836. " <!-- Text -->\n",
  1837. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >5</text>\n",
  1838. " <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
  1839. "\n",
  1840. "\n",
  1841. " <!-- Horizontal lines -->\n",
  1842. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1843. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1844. "\n",
  1845. " <!-- Vertical lines -->\n",
  1846. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1847. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1848. "\n",
  1849. " <!-- Colored Rectangle -->\n",
  1850. " <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1851. "\n",
  1852. " <!-- Horizontal lines -->\n",
  1853. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1854. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1855. "\n",
  1856. " <!-- Vertical lines -->\n",
  1857. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1858. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1859. "\n",
  1860. " <!-- Colored Rectangle -->\n",
  1861. " <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1862. "\n",
  1863. " <!-- Horizontal lines -->\n",
  1864. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1865. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1866. "\n",
  1867. " <!-- Vertical lines -->\n",
  1868. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1869. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1870. "\n",
  1871. " <!-- Colored Rectangle -->\n",
  1872. " <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1873. "\n",
  1874. " <!-- Text -->\n",
  1875. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1876. " <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
  1877. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">11</text>\n",
  1878. "</svg>\n",
  1879. " </td>\n",
  1880. " </tr>\n",
  1881. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>background</span></div><div class='xr-var-dims'>(runs, truncation_value, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-7ffcb26e-62be-4a7f-8d78-9744ac86c88d' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-7ffcb26e-62be-4a7f-8d78-9744ac86c88d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4613a65b-2fa1-4d6c-9c06-216e23c6c1ec' class='xr-var-data-in' type='checkbox'><label for='data-4613a65b-2fa1-4d6c-9c06-216e23c6c1ec' 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",
  1882. " <tr>\n",
  1883. " <td>\n",
  1884. " <table style=\"border-collapse: collapse;\">\n",
  1885. " <thead>\n",
  1886. " <tr>\n",
  1887. " <td> </td>\n",
  1888. " <th> Array </th>\n",
  1889. " <th> Chunk </th>\n",
  1890. " </tr>\n",
  1891. " </thead>\n",
  1892. " <tbody>\n",
  1893. " \n",
  1894. " <tr>\n",
  1895. " <th> Bytes </th>\n",
  1896. " <td> 241.70 MiB </td>\n",
  1897. " <td> 241.70 MiB </td>\n",
  1898. " </tr>\n",
  1899. " \n",
  1900. " <tr>\n",
  1901. " <th> Shape </th>\n",
  1902. " <td> (5, 11, 1200, 1920) </td>\n",
  1903. " <td> (5, 11, 1200, 1920) </td>\n",
  1904. " </tr>\n",
  1905. " <tr>\n",
  1906. " <th> Dask graph </th>\n",
  1907. " <td colspan=\"2\"> 1 chunks in 178 graph layers </td>\n",
  1908. " </tr>\n",
  1909. " <tr>\n",
  1910. " <th> Data type </th>\n",
  1911. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  1912. " </tr>\n",
  1913. " </tbody>\n",
  1914. " </table>\n",
  1915. " </td>\n",
  1916. " <td>\n",
  1917. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1918. "\n",
  1919. " <!-- Horizontal lines -->\n",
  1920. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1921. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1922. "\n",
  1923. " <!-- Vertical lines -->\n",
  1924. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1925. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1926. "\n",
  1927. " <!-- Colored Rectangle -->\n",
  1928. " <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1929. "\n",
  1930. " <!-- Text -->\n",
  1931. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >5</text>\n",
  1932. " <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
  1933. "\n",
  1934. "\n",
  1935. " <!-- Horizontal lines -->\n",
  1936. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1937. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1938. "\n",
  1939. " <!-- Vertical lines -->\n",
  1940. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1941. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1942. "\n",
  1943. " <!-- Colored Rectangle -->\n",
  1944. " <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1945. "\n",
  1946. " <!-- Horizontal lines -->\n",
  1947. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1948. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1949. "\n",
  1950. " <!-- Vertical lines -->\n",
  1951. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1952. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1953. "\n",
  1954. " <!-- Colored Rectangle -->\n",
  1955. " <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1956. "\n",
  1957. " <!-- Horizontal lines -->\n",
  1958. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1959. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1960. "\n",
  1961. " <!-- Vertical lines -->\n",
  1962. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1963. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1964. "\n",
  1965. " <!-- Colored Rectangle -->\n",
  1966. " <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1967. "\n",
  1968. " <!-- Text -->\n",
  1969. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1970. " <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
  1971. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">11</text>\n",
  1972. "</svg>\n",
  1973. " </td>\n",
  1974. " </tr>\n",
  1975. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>dark</span></div><div class='xr-var-dims'>(runs, truncation_value, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-ed551fc4-9b5f-403c-b486-f93c50d456ff' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-ed551fc4-9b5f-403c-b486-f93c50d456ff' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-eeabd647-76f0-45ba-90a1-acca47380af6' class='xr-var-data-in' type='checkbox'><label for='data-eeabd647-76f0-45ba-90a1-acca47380af6' 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",
  1976. " <tr>\n",
  1977. " <td>\n",
  1978. " <table style=\"border-collapse: collapse;\">\n",
  1979. " <thead>\n",
  1980. " <tr>\n",
  1981. " <td> </td>\n",
  1982. " <th> Array </th>\n",
  1983. " <th> Chunk </th>\n",
  1984. " </tr>\n",
  1985. " </thead>\n",
  1986. " <tbody>\n",
  1987. " \n",
  1988. " <tr>\n",
  1989. " <th> Bytes </th>\n",
  1990. " <td> 241.70 MiB </td>\n",
  1991. " <td> 241.70 MiB </td>\n",
  1992. " </tr>\n",
  1993. " \n",
  1994. " <tr>\n",
  1995. " <th> Shape </th>\n",
  1996. " <td> (5, 11, 1200, 1920) </td>\n",
  1997. " <td> (5, 11, 1200, 1920) </td>\n",
  1998. " </tr>\n",
  1999. " <tr>\n",
  2000. " <th> Dask graph </th>\n",
  2001. " <td colspan=\"2\"> 1 chunks in 178 graph layers </td>\n",
  2002. " </tr>\n",
  2003. " <tr>\n",
  2004. " <th> Data type </th>\n",
  2005. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  2006. " </tr>\n",
  2007. " </tbody>\n",
  2008. " </table>\n",
  2009. " </td>\n",
  2010. " <td>\n",
  2011. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  2012. "\n",
  2013. " <!-- Horizontal lines -->\n",
  2014. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  2015. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  2016. "\n",
  2017. " <!-- Vertical lines -->\n",
  2018. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  2019. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  2020. "\n",
  2021. " <!-- Colored Rectangle -->\n",
  2022. " <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  2023. "\n",
  2024. " <!-- Text -->\n",
  2025. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >5</text>\n",
  2026. " <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
  2027. "\n",
  2028. "\n",
  2029. " <!-- Horizontal lines -->\n",
  2030. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2031. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2032. "\n",
  2033. " <!-- Vertical lines -->\n",
  2034. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  2035. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2036. "\n",
  2037. " <!-- Colored Rectangle -->\n",
  2038. " <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  2039. "\n",
  2040. " <!-- Horizontal lines -->\n",
  2041. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  2042. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2043. "\n",
  2044. " <!-- Vertical lines -->\n",
  2045. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2046. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2047. "\n",
  2048. " <!-- Colored Rectangle -->\n",
  2049. " <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  2050. "\n",
  2051. " <!-- Horizontal lines -->\n",
  2052. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2053. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2054. "\n",
  2055. " <!-- Vertical lines -->\n",
  2056. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2057. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2058. "\n",
  2059. " <!-- Colored Rectangle -->\n",
  2060. " <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  2061. "\n",
  2062. " <!-- Text -->\n",
  2063. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  2064. " <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
  2065. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">11</text>\n",
  2066. "</svg>\n",
  2067. " </td>\n",
  2068. " </tr>\n",
  2069. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>shotNum</span></div><div class='xr-var-dims'>(runs, truncation_value)</div><div class='xr-var-dtype'>&lt;U2</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(5, 11), meta=np.ndarray&gt;</div><input id='attrs-793954e4-7ce3-4451-9c07-3b02bf13626d' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-793954e4-7ce3-4451-9c07-3b02bf13626d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-30d37d87-c0e2-470a-8030-8cea4afdd53b' class='xr-var-data-in' type='checkbox'><label for='data-30d37d87-c0e2-470a-8030-8cea4afdd53b' 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'><table>\n",
  2070. " <tr>\n",
  2071. " <td>\n",
  2072. " <table style=\"border-collapse: collapse;\">\n",
  2073. " <thead>\n",
  2074. " <tr>\n",
  2075. " <td> </td>\n",
  2076. " <th> Array </th>\n",
  2077. " <th> Chunk </th>\n",
  2078. " </tr>\n",
  2079. " </thead>\n",
  2080. " <tbody>\n",
  2081. " \n",
  2082. " <tr>\n",
  2083. " <th> Bytes </th>\n",
  2084. " <td> 440 B </td>\n",
  2085. " <td> 440 B </td>\n",
  2086. " </tr>\n",
  2087. " \n",
  2088. " <tr>\n",
  2089. " <th> Shape </th>\n",
  2090. " <td> (5, 11) </td>\n",
  2091. " <td> (5, 11) </td>\n",
  2092. " </tr>\n",
  2093. " <tr>\n",
  2094. " <th> Dask graph </th>\n",
  2095. " <td colspan=\"2\"> 1 chunks in 1 graph layer </td>\n",
  2096. " </tr>\n",
  2097. " <tr>\n",
  2098. " <th> Data type </th>\n",
  2099. " <td colspan=\"2\"> <U2 numpy.ndarray </td>\n",
  2100. " </tr>\n",
  2101. " </tbody>\n",
  2102. " </table>\n",
  2103. " </td>\n",
  2104. " <td>\n",
  2105. " <svg width=\"170\" height=\"104\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  2106. "\n",
  2107. " <!-- Horizontal lines -->\n",
  2108. " <line x1=\"0\" y1=\"0\" x2=\"120\" y2=\"0\" style=\"stroke-width:2\" />\n",
  2109. " <line x1=\"0\" y1=\"54\" x2=\"120\" y2=\"54\" style=\"stroke-width:2\" />\n",
  2110. "\n",
  2111. " <!-- Vertical lines -->\n",
  2112. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"54\" style=\"stroke-width:2\" />\n",
  2113. " <line x1=\"120\" y1=\"0\" x2=\"120\" y2=\"54\" style=\"stroke-width:2\" />\n",
  2114. "\n",
  2115. " <!-- Colored Rectangle -->\n",
  2116. " <polygon points=\"0.0,0.0 120.0,0.0 120.0,54.54545454545454 0.0,54.54545454545454\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  2117. "\n",
  2118. " <!-- Text -->\n",
  2119. " <text x=\"60.000000\" y=\"74.545455\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
  2120. " <text x=\"140.000000\" y=\"27.272727\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,140.000000,27.272727)\">5</text>\n",
  2121. "</svg>\n",
  2122. " </td>\n",
  2123. " </tr>\n",
  2124. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>OD</span></div><div class='xr-var-dims'>(runs, truncation_value, y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(5, 11, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-72a71814-5d06-4a6e-862b-dd849fd92028' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-72a71814-5d06-4a6e-862b-dd849fd92028' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c26495be-4776-4c0f-8229-28e455687e7e' class='xr-var-data-in' type='checkbox'><label for='data-c26495be-4776-4c0f-8229-28e455687e7e' 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",
  2125. " <tr>\n",
  2126. " <td>\n",
  2127. " <table style=\"border-collapse: collapse;\">\n",
  2128. " <thead>\n",
  2129. " <tr>\n",
  2130. " <td> </td>\n",
  2131. " <th> Array </th>\n",
  2132. " <th> Chunk </th>\n",
  2133. " </tr>\n",
  2134. " </thead>\n",
  2135. " <tbody>\n",
  2136. " \n",
  2137. " <tr>\n",
  2138. " <th> Bytes </th>\n",
  2139. " <td> 0.94 GiB </td>\n",
  2140. " <td> 0.94 GiB </td>\n",
  2141. " </tr>\n",
  2142. " \n",
  2143. " <tr>\n",
  2144. " <th> Shape </th>\n",
  2145. " <td> (5, 11, 1200, 1920) </td>\n",
  2146. " <td> (5, 11, 1200, 1920) </td>\n",
  2147. " </tr>\n",
  2148. " <tr>\n",
  2149. " <th> Dask graph </th>\n",
  2150. " <td colspan=\"2\"> 1 chunks in 544 graph layers </td>\n",
  2151. " </tr>\n",
  2152. " <tr>\n",
  2153. " <th> Data type </th>\n",
  2154. " <td colspan=\"2\"> float64 numpy.ndarray </td>\n",
  2155. " </tr>\n",
  2156. " </tbody>\n",
  2157. " </table>\n",
  2158. " </td>\n",
  2159. " <td>\n",
  2160. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  2161. "\n",
  2162. " <!-- Horizontal lines -->\n",
  2163. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  2164. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  2165. "\n",
  2166. " <!-- Vertical lines -->\n",
  2167. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  2168. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  2169. "\n",
  2170. " <!-- Colored Rectangle -->\n",
  2171. " <polygon points=\"0.0,0.0 25.412616514582485,0.0 25.412616514582485,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  2172. "\n",
  2173. " <!-- Text -->\n",
  2174. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >5</text>\n",
  2175. " <text x=\"45.412617\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,45.412617,12.706308)\">1</text>\n",
  2176. "\n",
  2177. "\n",
  2178. " <!-- Horizontal lines -->\n",
  2179. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2180. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2181. "\n",
  2182. " <!-- Vertical lines -->\n",
  2183. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  2184. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2185. "\n",
  2186. " <!-- Colored Rectangle -->\n",
  2187. " <polygon points=\"95.0,0.0 109.9485979497544,14.948597949754403 109.9485979497544,89.9485979497544 95.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  2188. "\n",
  2189. " <!-- Horizontal lines -->\n",
  2190. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  2191. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2192. "\n",
  2193. " <!-- Vertical lines -->\n",
  2194. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2195. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2196. "\n",
  2197. " <!-- Colored Rectangle -->\n",
  2198. " <polygon points=\"95.0,0.0 215.0,0.0 229.9485979497544,14.948597949754403 109.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  2199. "\n",
  2200. " <!-- Horizontal lines -->\n",
  2201. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  2202. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2203. "\n",
  2204. " <!-- Vertical lines -->\n",
  2205. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2206. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  2207. "\n",
  2208. " <!-- Colored Rectangle -->\n",
  2209. " <polygon points=\"109.9485979497544,14.948597949754403 229.9485979497544,14.948597949754403 229.9485979497544,89.9485979497544 109.9485979497544,89.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  2210. "\n",
  2211. " <!-- Text -->\n",
  2212. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  2213. " <text x=\"249.948598\" y=\"52.448598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,249.948598,52.448598)\">1200</text>\n",
  2214. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">11</text>\n",
  2215. "</svg>\n",
  2216. " </td>\n",
  2217. " </tr>\n",
  2218. "</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-ce10879d-b52f-433a-a19a-9307c838abd9' class='xr-section-summary-in' type='checkbox' ><label for='section-ce10879d-b52f-433a-a19a-9307c838abd9' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>runs</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-b2884047-a233-42be-8016-4fa7222abd55' class='xr-index-data-in' type='checkbox'/><label for='index-b2884047-a233-42be-8016-4fa7222abd55' 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, 3.0, 4.0], dtype=&#x27;float64&#x27;, name=&#x27;runs&#x27;))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>truncation_value</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-4bf4fac9-78c3-4539-b00f-385715808b89' class='xr-index-data-in' type='checkbox'/><label for='index-4bf4fac9-78c3-4539-b00f-385715808b89' 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.8, 0.83, 0.85, 0.87, 0.89, 0.91, 0.93, 0.95, 0.97, 0.99, 1.0], dtype=&#x27;float64&#x27;, name=&#x27;truncation_value&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-2f0d32ed-8375-4d0f-aedf-7af6c0bd70ae' class='xr-section-summary-in' type='checkbox' ><label for='section-2f0d32ed-8375-4d0f-aedf-7af6c0bd70ae' class='xr-section-summary' >Attributes: <span>(100)</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.866</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.195</dd><dt><span>compZ_final_current :</span></dt><dd>0.287</dd><dt><span>compZ_initial_current :</span></dt><dd>0</dd><dt><span>default_camera :</span></dt><dd>0</dd><dt><span>evap_1_final_pow_1 :</span></dt><dd>4.8</dd><dt><span>evap_1_final_pow_2 :</span></dt><dd>2.2</dd><dt><span>evap_1_final_pow_3 :</span></dt><dd>1.2</dd><dt><span>evap_1_final_pow_4 :</span></dt><dd>0.526</dd><dt><span>evap_1_ramp_duration_1 :</span></dt><dd>0.15</dd><dt><span>evap_1_ramp_duration_2 :</span></dt><dd>0.3</dd><dt><span>evap_1_ramp_duration_3 :</span></dt><dd>0.2</dd><dt><span>evap_1_ramp_duration_4 :</span></dt><dd>0.5</dd><dt><span>evap_1_start_pow_1 :</span></dt><dd>7</dd><dt><span>evap_1_start_pow_2 :</span></dt><dd>4.8</dd><dt><span>evap_1_start_pow_3 :</span></dt><dd>2.2</dd><dt><span>evap_1_start_pow_4 :</span></dt><dd>1.2</dd><dt><span>evap_2_final_pow_1 :</span></dt><dd>0.35</dd><dt><span>evap_2_ramp_duration_1 :</span></dt><dd>0.5</dd><dt><span>evap_2_start_pow_1 :</span></dt><dd>0.526</dd><dt><span>evap_3_arm_1_final_pow :</span></dt><dd>0.037</dd><dt><span>evap_3_arm_1_start_pow :</span></dt><dd>0.35</dd><dt><span>evap_3_ar
  2219. " 0.87 0.89 0.91 0.93 0.95 0.97 0.99 1. 0.8 0.83 0.85 0.87 0.89 0.91\n",
  2220. " 0.93 0.95 0.97 0.99 1. 0.8 0.83 0.85 0.87 0.89 0.91 0.93 0.95 0.97\n",
  2221. " 0.99 1. 0.8 0.83 0.85 0.87 0.89 0.91 0.93 0.95 0.97 0.99 1. ]</dd><dt><span>runs :</span></dt><dd>[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 2. 2.\n",
  2222. " 2. 2. 2. 2. 2. 2. 2. 2. 2. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 3. 4. 4. 4. 4.\n",
  2223. " 4. 4. 4. 4. 4. 4. 4.]</dd><dt><span>scanAxis :</span></dt><dd>[&#x27;runs&#x27; &#x27;truncation_value&#x27;]</dd><dt><span>scanAxisLength :</span></dt><dd>[55. 55.]</dd></dl></div></li></ul></div></div>"
  2224. ],
  2225. "text/plain": [
  2226. "<xarray.Dataset>\n",
  2227. "Dimensions: (runs: 5, truncation_value: 11, y: 1200, x: 1920)\n",
  2228. "Coordinates:\n",
  2229. " * runs (runs) float64 0.0 1.0 2.0 3.0 4.0\n",
  2230. " * truncation_value (truncation_value) float64 0.8 0.83 0.85 ... 0.97 0.99 1.0\n",
  2231. "Dimensions without coordinates: y, x\n",
  2232. "Data variables:\n",
  2233. " atoms (runs, truncation_value, y, x) uint16 dask.array<chunksize=(5, 11, 1200, 1920), meta=np.ndarray>\n",
  2234. " background (runs, truncation_value, y, x) uint16 dask.array<chunksize=(5, 11, 1200, 1920), meta=np.ndarray>\n",
  2235. " dark (runs, truncation_value, y, x) uint16 dask.array<chunksize=(5, 11, 1200, 1920), meta=np.ndarray>\n",
  2236. " shotNum (runs, truncation_value) <U2 dask.array<chunksize=(5, 11), meta=np.ndarray>\n",
  2237. " OD (runs, truncation_value, y, x) float64 dask.array<chunksize=(5, 11, 1200, 1920), meta=np.ndarray>\n",
  2238. "Attributes: (12/100)\n",
  2239. " TOF_free: 0.02\n",
  2240. " abs_img_freq: 110.866\n",
  2241. " absorption_imaging_flag: True\n",
  2242. " backup_data: True\n",
  2243. " blink_off_time: nan\n",
  2244. " blink_on_time: nan\n",
  2245. " ... ...\n",
  2246. " z_offset: 0.195\n",
  2247. " z_offset_img: 0.195\n",
  2248. " truncation_value: [0.8 0.83 0.85 0.87 0.89 0.91 0.93 0....\n",
  2249. " runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
  2250. " scanAxis: ['runs' 'truncation_value']\n",
  2251. " scanAxisLength: [55. 55.]"
  2252. ]
  2253. },
  2254. "execution_count": 7,
  2255. "metadata": {},
  2256. "output_type": "execute_result"
  2257. }
  2258. ],
  2259. "source": [
  2260. "dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
  2261. "dataSet"
  2262. ]
  2263. },
  2264. {
  2265. "cell_type": "markdown",
  2266. "metadata": {},
  2267. "source": [
  2268. "## Crop the region of interest"
  2269. ]
  2270. },
  2271. {
  2272. "cell_type": "markdown",
  2273. "metadata": {},
  2274. "source": [
  2275. "The next thing we usually need to do is to select the region of interest (ROI)."
  2276. ]
  2277. },
  2278. {
  2279. "cell_type": "code",
  2280. "execution_count": 8,
  2281. "metadata": {},
  2282. "outputs": [],
  2283. "source": [
  2284. "imageAnalyser.center = (960, 875)\n",
  2285. "imageAnalyser.span = (300, 300)\n",
  2286. "imageAnalyser.fraction = (0.1, 0.1)"
  2287. ]
  2288. },
  2289. {
  2290. "cell_type": "markdown",
  2291. "metadata": {},
  2292. "source": [
  2293. "The object of the ImageAnalyser will save the information until we change it, so we don't need to tell it again and again.\n",
  2294. "\n",
  2295. "Here the \n",
  2296. "- center: the center of the ROI as a tuple (center of x, center of y)\n",
  2297. "- span: the span of the ROI as a tuple (span of x, span of y)\n",
  2298. "- fraction: the fraction of the region at the conner of ROI to calculate the background. It is in a format of a tuple (fraction of x, fraction of y)"
  2299. ]
  2300. },
  2301. {
  2302. "cell_type": "markdown",
  2303. "metadata": {},
  2304. "source": [
  2305. "Then we can crop the images and remove the background."
  2306. ]
  2307. },
  2308. {
  2309. "cell_type": "code",
  2310. "execution_count": 9,
  2311. "metadata": {},
  2312. "outputs": [
  2313. {
  2314. "data": {
  2315. "text/html": [
  2316. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  2317. "<defs>\n",
  2318. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  2319. "<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",
  2320. "<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",
  2321. "<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",
  2322. "</symbol>\n",
  2323. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  2324. "<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",
  2325. "<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",
  2326. "<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",
  2327. "<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",
  2328. "</symbol>\n",
  2329. "</defs>\n",
  2330. "</svg>\n",
  2331. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  2332. " *\n",
  2333. " */\n",
  2334. "\n",
  2335. ":root {\n",
  2336. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  2337. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  2338. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  2339. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  2340. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  2341. " --xr-background-color: var(--jp-layout-color0, white);\n",
  2342. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  2343. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  2344. "}\n",
  2345. "\n",
  2346. "html[theme=dark],\n",
  2347. "body[data-theme=dark],\n",
  2348. "body.vscode-dark {\n",
  2349. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  2350. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  2351. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  2352. " --xr-border-color: #1F1F1F;\n",
  2353. " --xr-disabled-color: #515151;\n",
  2354. " --xr-background-color: #111111;\n",
  2355. " --xr-background-color-row-even: #111111;\n",
  2356. " --xr-background-color-row-odd: #313131;\n",
  2357. "}\n",
  2358. "\n",
  2359. ".xr-wrap {\n",
  2360. " display: block !important;\n",
  2361. " min-width: 300px;\n",
  2362. " max-width: 700px;\n",
  2363. "}\n",
  2364. "\n",
  2365. ".xr-text-repr-fallback {\n",
  2366. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  2367. " display: none;\n",
  2368. "}\n",
  2369. "\n",
  2370. ".xr-header {\n",
  2371. " padding-top: 6px;\n",
  2372. " padding-bottom: 6px;\n",
  2373. " margin-bottom: 4px;\n",
  2374. " border-bottom: solid 1px var(--xr-border-color);\n",
  2375. "}\n",
  2376. "\n",
  2377. ".xr-header > div,\n",
  2378. ".xr-header > ul {\n",
  2379. " display: inline;\n",
  2380. " margin-top: 0;\n",
  2381. " margin-bottom: 0;\n",
  2382. "}\n",
  2383. "\n",
  2384. ".xr-obj-type,\n",
  2385. ".xr-array-name {\n",
  2386. " margin-left: 2px;\n",
  2387. " margin-right: 10px;\n",
  2388. "}\n",
  2389. "\n",
  2390. ".xr-obj-type {\n",
  2391. " color: var(--xr-font-color2);\n",
  2392. "}\n",
  2393. "\n",
  2394. ".xr-sections {\n",
  2395. " padding-left: 0 !important;\n",
  2396. " display: grid;\n",
  2397. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  2398. "}\n",
  2399. "\n",
  2400. ".xr-section-item {\n",
  2401. " display: contents;\n",
  2402. "}\n",
  2403. "\n",
  2404. ".xr-section-item input {\n",
  2405. " display: none;\n",
  2406. "}\n",
  2407. "\n",
  2408. ".xr-section-item input + label {\n",
  2409. " color: var(--xr-disabled-color);\n",
  2410. "}\n",
  2411. "\n",
  2412. ".xr-section-item input:enabled + label {\n",
  2413. " cursor: pointer;\n",
  2414. " color: var(--xr-font-color2);\n",
  2415. "}\n",
  2416. "\n",
  2417. ".xr-section-item input:enabled + label:hover {\n",
  2418. " color: var(--xr-font-color0);\n",
  2419. "}\n",
  2420. "\n",
  2421. ".xr-section-summary {\n",
  2422. " grid-column: 1;\n",
  2423. " color: var(--xr-font-color2);\n",
  2424. " font-weight: 500;\n",
  2425. "}\n",
  2426. "\n",
  2427. ".xr-section-summary > span {\n",
  2428. " display: inline-block;\n",
  2429. " padding-left: 0.5em;\n",
  2430. "}\n",
  2431. "\n",
  2432. ".xr-section-summary-in:disabled + label {\n",
  2433. " color: var(--xr-font-color2);\n",
  2434. "}\n",
  2435. "\n",
  2436. ".xr-section-summary-in + label:before {\n",
  2437. " display: inline-block;\n",
  2438. " content: 'â–º';\n",
  2439. " font-size: 11px;\n",
  2440. " width: 15px;\n",
  2441. " text-align: center;\n",
  2442. "}\n",
  2443. "\n",
  2444. ".xr-section-summary-in:disabled + label:before {\n",
  2445. " color: var(--xr-disabled-color);\n",
  2446. "}\n",
  2447. "\n",
  2448. ".xr-section-summary-in:checked + label:before {\n",
  2449. " content: 'â–¼';\n",
  2450. "}\n",
  2451. "\n",
  2452. ".xr-section-summary-in:checked + label > span {\n",
  2453. " display: none;\n",
  2454. "}\n",
  2455. "\n",
  2456. ".xr-section-summary,\n",
  2457. ".xr-section-inline-details {\n",
  2458. " padding-top: 4px;\n",
  2459. " padding-bottom: 4px;\n",
  2460. "}\n",
  2461. "\n",
  2462. ".xr-section-inline-details {\n",
  2463. " grid-column: 2 / -1;\n",
  2464. "}\n",
  2465. "\n",
  2466. ".xr-section-details {\n",
  2467. " display: none;\n",
  2468. " grid-column: 1 / -1;\n",
  2469. " margin-bottom: 5px;\n",
  2470. "}\n",
  2471. "\n",
  2472. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  2473. " display: contents;\n",
  2474. "}\n",
  2475. "\n",
  2476. ".xr-array-wrap {\n",
  2477. " grid-column: 1 / -1;\n",
  2478. " display: grid;\n",
  2479. " grid-template-columns: 20px auto;\n",
  2480. "}\n",
  2481. "\n",
  2482. ".xr-array-wrap > label {\n",
  2483. " grid-column: 1;\n",
  2484. " vertical-align: top;\n",
  2485. "}\n",
  2486. "\n",
  2487. ".xr-preview {\n",
  2488. " color: var(--xr-font-color3);\n",
  2489. "}\n",
  2490. "\n",
  2491. ".xr-array-preview,\n",
  2492. ".xr-array-data {\n",
  2493. " padding: 0 5px !important;\n",
  2494. " grid-column: 2;\n",
  2495. "}\n",
  2496. "\n",
  2497. ".xr-array-data,\n",
  2498. ".xr-array-in:checked ~ .xr-array-preview {\n",
  2499. " display: none;\n",
  2500. "}\n",
  2501. "\n",
  2502. ".xr-array-in:checked ~ .xr-array-data,\n",
  2503. ".xr-array-preview {\n",
  2504. " display: inline-block;\n",
  2505. "}\n",
  2506. "\n",
  2507. ".xr-dim-list {\n",
  2508. " display: inline-block !important;\n",
  2509. " list-style: none;\n",
  2510. " padding: 0 !important;\n",
  2511. " margin: 0;\n",
  2512. "}\n",
  2513. "\n",
  2514. ".xr-dim-list li {\n",
  2515. " display: inline-block;\n",
  2516. " padding: 0;\n",
  2517. " margin: 0;\n",
  2518. "}\n",
  2519. "\n",
  2520. ".xr-dim-list:before {\n",
  2521. " content: '(';\n",
  2522. "}\n",
  2523. "\n",
  2524. ".xr-dim-list:after {\n",
  2525. " content: ')';\n",
  2526. "}\n",
  2527. "\n",
  2528. ".xr-dim-list li:not(:last-child):after {\n",
  2529. " content: ',';\n",
  2530. " padding-right: 5px;\n",
  2531. "}\n",
  2532. "\n",
  2533. ".xr-has-index {\n",
  2534. " font-weight: bold;\n",
  2535. "}\n",
  2536. "\n",
  2537. ".xr-var-list,\n",
  2538. ".xr-var-item {\n",
  2539. " display: contents;\n",
  2540. "}\n",
  2541. "\n",
  2542. ".xr-var-item > div,\n",
  2543. ".xr-var-item label,\n",
  2544. ".xr-var-item > .xr-var-name span {\n",
  2545. " background-color: var(--xr-background-color-row-even);\n",
  2546. " margin-bottom: 0;\n",
  2547. "}\n",
  2548. "\n",
  2549. ".xr-var-item > .xr-var-name:hover span {\n",
  2550. " padding-right: 5px;\n",
  2551. "}\n",
  2552. "\n",
  2553. ".xr-var-list > li:nth-child(odd) > div,\n",
  2554. ".xr-var-list > li:nth-child(odd) > label,\n",
  2555. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  2556. " background-color: var(--xr-background-color-row-odd);\n",
  2557. "}\n",
  2558. "\n",
  2559. ".xr-var-name {\n",
  2560. " grid-column: 1;\n",
  2561. "}\n",
  2562. "\n",
  2563. ".xr-var-dims {\n",
  2564. " grid-column: 2;\n",
  2565. "}\n",
  2566. "\n",
  2567. ".xr-var-dtype {\n",
  2568. " grid-column: 3;\n",
  2569. " text-align: right;\n",
  2570. " color: var(--xr-font-color2);\n",
  2571. "}\n",
  2572. "\n",
  2573. ".xr-var-preview {\n",
  2574. " grid-column: 4;\n",
  2575. "}\n",
  2576. "\n",
  2577. ".xr-index-preview {\n",
  2578. " grid-column: 2 / 5;\n",
  2579. " color: var(--xr-font-color2);\n",
  2580. "}\n",
  2581. "\n",
  2582. ".xr-var-name,\n",
  2583. ".xr-var-dims,\n",
  2584. ".xr-var-dtype,\n",
  2585. ".xr-preview,\n",
  2586. ".xr-attrs dt {\n",
  2587. " white-space: nowrap;\n",
  2588. " overflow: hidden;\n",
  2589. " text-overflow: ellipsis;\n",
  2590. " padding-right: 10px;\n",
  2591. "}\n",
  2592. "\n",
  2593. ".xr-var-name:hover,\n",
  2594. ".xr-var-dims:hover,\n",
  2595. ".xr-var-dtype:hover,\n",
  2596. ".xr-attrs dt:hover {\n",
  2597. " overflow: visible;\n",
  2598. " width: auto;\n",
  2599. " z-index: 1;\n",
  2600. "}\n",
  2601. "\n",
  2602. ".xr-var-attrs,\n",
  2603. ".xr-var-data,\n",
  2604. ".xr-index-data {\n",
  2605. " display: none;\n",
  2606. " background-color: var(--xr-background-color) !important;\n",
  2607. " padding-bottom: 5px !important;\n",
  2608. "}\n",
  2609. "\n",
  2610. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  2611. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  2612. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  2613. " display: block;\n",
  2614. "}\n",
  2615. "\n",
  2616. ".xr-var-data > table {\n",
  2617. " float: right;\n",
  2618. "}\n",
  2619. "\n",
  2620. ".xr-var-name span,\n",
  2621. ".xr-var-data,\n",
  2622. ".xr-index-name div,\n",
  2623. ".xr-index-data,\n",
  2624. ".xr-attrs {\n",
  2625. " padding-left: 25px !important;\n",
  2626. "}\n",
  2627. "\n",
  2628. ".xr-attrs,\n",
  2629. ".xr-var-attrs,\n",
  2630. ".xr-var-data,\n",
  2631. ".xr-index-data {\n",
  2632. " grid-column: 1 / -1;\n",
  2633. "}\n",
  2634. "\n",
  2635. "dl.xr-attrs {\n",
  2636. " padding: 0;\n",
  2637. " margin: 0;\n",
  2638. " display: grid;\n",
  2639. " grid-template-columns: 125px auto;\n",
  2640. "}\n",
  2641. "\n",
  2642. ".xr-attrs dt,\n",
  2643. ".xr-attrs dd {\n",
  2644. " padding: 0;\n",
  2645. " margin: 0;\n",
  2646. " float: left;\n",
  2647. " padding-right: 10px;\n",
  2648. " width: auto;\n",
  2649. "}\n",
  2650. "\n",
  2651. ".xr-attrs dt {\n",
  2652. " font-weight: normal;\n",
  2653. " grid-column: 1;\n",
  2654. "}\n",
  2655. "\n",
  2656. ".xr-attrs dt:hover span {\n",
  2657. " display: inline-block;\n",
  2658. " background: var(--xr-background-color);\n",
  2659. " padding-right: 10px;\n",
  2660. "}\n",
  2661. "\n",
  2662. ".xr-attrs dd {\n",
  2663. " grid-column: 2;\n",
  2664. " white-space: pre-wrap;\n",
  2665. " word-break: break-all;\n",
  2666. "}\n",
  2667. "\n",
  2668. ".xr-icon-database,\n",
  2669. ".xr-icon-file-text2,\n",
  2670. ".xr-no-icon {\n",
  2671. " display: inline-block;\n",
  2672. " vertical-align: middle;\n",
  2673. " width: 1em;\n",
  2674. " height: 1.5em !important;\n",
  2675. " stroke-width: 0;\n",
  2676. " stroke: currentColor;\n",
  2677. " fill: currentColor;\n",
  2678. "}\n",
  2679. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray &#x27;OD&#x27; (runs: 5, truncation_value: 11, y: 300, x: 300)&gt;\n",
  2680. "array([[[[ 0.10089884, 0.0696463 , 0.05767011, ..., 0.01963588,\n",
  2681. " -0.0650863 , -0.00446167],\n",
  2682. " [ 0.10342729, 0.04260584, 0.02118076, ..., 0.11194868,\n",
  2683. " 0.00723437, -0.0801735 ],\n",
  2684. " [ 0.00780842, 0.00827735, -0.02827232, ..., -0.02693453,\n",
  2685. " -0.00446167, 0.0622297 ],\n",
  2686. " ...,\n",
  2687. " [-0.1117072 , -0.0575715 , -0.03836323, ..., -0.05152918,\n",
  2688. " -0.02529576, 0.00751452],\n",
  2689. " [ 0.12183205, 0.03190597, 0.01355683, ..., -0.02573907,\n",
  2690. " -0.05682966, -0.00446167],\n",
  2691. " [ 0.03475904, 0.0325796 , 0.07721636, ..., 0.02662891,\n",
  2692. " -0.05738408, 0.00751452]],\n",
  2693. "\n",
  2694. " [[ 0.05613155, -0.10849043, 0.05082337, ..., 0.09902547,\n",
  2695. " 0.01710835, 0.03692657],\n",
  2696. " [-0.08110418, -0.09280022, 0.01710835, ..., -0.04168176,\n",
  2697. " -0.15458948, 0.00483825],\n",
  2698. " [-0.07212279, -0.00743184, -0.05653069, ..., -0.18356235,\n",
  2699. " -0.01621516, -0.07006305],\n",
  2700. "...\n",
  2701. " [ 0.15678264, 0.09630046, 0.1255301 , ..., -0.00355249,\n",
  2702. " 0.01855798, -0.00499196],\n",
  2703. " [ 0.00774706, -0.07926432, 0.0260962 , ..., -0.01447608,\n",
  2704. " -0.03527032, 0.04126975],\n",
  2705. " [-0.01094507, -0.16745703, -0.0624572 , ..., 0.07159853,\n",
  2706. " 0.01769739, -0.06124581]],\n",
  2707. "\n",
  2708. " [[ 0.05950001, 0.0086876 , -0.02921711, ..., 0.04073558,\n",
  2709. " -0.00421581, -0.04723319],\n",
  2710. " [-0.0555091 , -0.11475768, -0.05360856, ..., -0.01551536,\n",
  2711. " 0.03087551, -0.00421581],\n",
  2712. " [ 0.03352452, -0.01663833, 0.01931469, ..., 0.01752418,\n",
  2713. " -0.02504989, 0.04815218],\n",
  2714. " ...,\n",
  2715. " [ 0.03087551, 0.05294261, -0.13050953, ..., -0.0277463 ,\n",
  2716. " -0.05020092, -0.04014782],\n",
  2717. " [ 0.03352452, -0.04422114, -0.06030527, ..., -0.06009626,\n",
  2718. " -0.03467501, 0.09642772],\n",
  2719. " [-0.04125708, 0.01447633, 0.07129175, ..., 0.06247557,\n",
  2720. " -0.05947848, -0.01538911]]]])\n",
  2721. "Coordinates:\n",
  2722. " * runs (runs) float64 0.0 1.0 2.0 3.0 4.0\n",
  2723. " * truncation_value (truncation_value) float64 0.8 0.83 0.85 ... 0.97 0.99 1.0\n",
  2724. "Dimensions without coordinates: y, x\n",
  2725. "Attributes:\n",
  2726. " IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
  2727. " IMAGE_VERSION: 1.2\n",
  2728. " IMAGE_WHITE_IS_ZERO: 0\n",
  2729. " x_start: 810\n",
  2730. " x_end: 1110\n",
  2731. " y_end: 1025\n",
  2732. " y_start: 725\n",
  2733. " x_center: 960\n",
  2734. " y_center: 875\n",
  2735. " x_span: 300\n",
  2736. " y_span: 300</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'OD'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>runs</span>: 5</li><li><span class='xr-has-index'>truncation_value</span>: 11</li><li><span>y</span>: 300</li><li><span>x</span>: 300</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-adbe2e42-433a-40bc-a9d2-a58217889ae1' class='xr-array-in' type='checkbox' checked><label for='section-adbe2e42-433a-40bc-a9d2-a58217889ae1' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>0.1009 0.06965 0.05767 0.08365 ... -0.05714 0.06248 -0.05948 -0.01539</span></div><div class='xr-array-data'><pre>array([[[[ 0.10089884, 0.0696463 , 0.05767011, ..., 0.01963588,\n",
  2737. " -0.0650863 , -0.00446167],\n",
  2738. " [ 0.10342729, 0.04260584, 0.02118076, ..., 0.11194868,\n",
  2739. " 0.00723437, -0.0801735 ],\n",
  2740. " [ 0.00780842, 0.00827735, -0.02827232, ..., -0.02693453,\n",
  2741. " -0.00446167, 0.0622297 ],\n",
  2742. " ...,\n",
  2743. " [-0.1117072 , -0.0575715 , -0.03836323, ..., -0.05152918,\n",
  2744. " -0.02529576, 0.00751452],\n",
  2745. " [ 0.12183205, 0.03190597, 0.01355683, ..., -0.02573907,\n",
  2746. " -0.05682966, -0.00446167],\n",
  2747. " [ 0.03475904, 0.0325796 , 0.07721636, ..., 0.02662891,\n",
  2748. " -0.05738408, 0.00751452]],\n",
  2749. "\n",
  2750. " [[ 0.05613155, -0.10849043, 0.05082337, ..., 0.09902547,\n",
  2751. " 0.01710835, 0.03692657],\n",
  2752. " [-0.08110418, -0.09280022, 0.01710835, ..., -0.04168176,\n",
  2753. " -0.15458948, 0.00483825],\n",
  2754. " [-0.07212279, -0.00743184, -0.05653069, ..., -0.18356235,\n",
  2755. " -0.01621516, -0.07006305],\n",
  2756. "...\n",
  2757. " [ 0.15678264, 0.09630046, 0.1255301 , ..., -0.00355249,\n",
  2758. " 0.01855798, -0.00499196],\n",
  2759. " [ 0.00774706, -0.07926432, 0.0260962 , ..., -0.01447608,\n",
  2760. " -0.03527032, 0.04126975],\n",
  2761. " [-0.01094507, -0.16745703, -0.0624572 , ..., 0.07159853,\n",
  2762. " 0.01769739, -0.06124581]],\n",
  2763. "\n",
  2764. " [[ 0.05950001, 0.0086876 , -0.02921711, ..., 0.04073558,\n",
  2765. " -0.00421581, -0.04723319],\n",
  2766. " [-0.0555091 , -0.11475768, -0.05360856, ..., -0.01551536,\n",
  2767. " 0.03087551, -0.00421581],\n",
  2768. " [ 0.03352452, -0.01663833, 0.01931469, ..., 0.01752418,\n",
  2769. " -0.02504989, 0.04815218],\n",
  2770. " ...,\n",
  2771. " [ 0.03087551, 0.05294261, -0.13050953, ..., -0.0277463 ,\n",
  2772. " -0.05020092, -0.04014782],\n",
  2773. " [ 0.03352452, -0.04422114, -0.06030527, ..., -0.06009626,\n",
  2774. " -0.03467501, 0.09642772],\n",
  2775. " [-0.04125708, 0.01447633, 0.07129175, ..., 0.06247557,\n",
  2776. " -0.05947848, -0.01538911]]]])</pre></div></div></li><li class='xr-section-item'><input id='section-4635c4ee-c74e-4658-95dc-e2745349464f' class='xr-section-summary-in' type='checkbox' checked><label for='section-4635c4ee-c74e-4658-95dc-e2745349464f' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>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 3.0 4.0</div><input id='attrs-da6a31a2-c6ec-4bf0-9ff7-be7714114867' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-da6a31a2-c6ec-4bf0-9ff7-be7714114867' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-de1006a8-ddd1-4a29-be28-f5465527e40c' class='xr-var-data-in' type='checkbox'><label for='data-de1006a8-ddd1-4a29-be28-f5465527e40c' 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., 3., 4.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>truncation_value</span></div><div class='xr-var-dims'>(truncation_value)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.8 0.83 0.85 ... 0.97 0.99 1.0</div><input id='attrs-31bcc169-67ea-4227-8ab8-34ebcca8a285' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-31bcc169-67ea-4227-8ab8-34ebcca8a285' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b5ad171b-7705-4110-9829-db4cc2236742' class='xr-var-data-in' type='checkbox'><label for='data-b5ad171b-7705-4110-9829-db4cc2236742' 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.8 , 0.83, 0.85, 0.87, 0.89, 0.91, 0.93, 0.95, 0.97, 0.99, 1. ])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-fb430d9e-e84c-4b4c-99f1-43b7225fe27f' class='xr-section-summary-in' type='checkbox' ><label for='section-fb430d9e-e84c-4b4c-99f1-43b7225fe27f' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>runs</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-e8fcba79-cc16-4d51-914d-118980c3eb06' class='xr-index-data-in' type='checkbox'/><label for='index-e8fcba79-cc16-4d51-914d-118980c3eb06' 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, 3.0, 4.0], dtype=&#x27;float64&#x27;, name=&#x27;runs&#x27;))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>truncation_value</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-dd1575a7-7894-4781-9b26-e626eaabfcd7' class='xr-index-data-in' type='checkbox'/><label for='index-dd1575a7-7894-4781-9b26-e626eaabfcd7' 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.8, 0.83, 0.85, 0.87, 0.89, 0.91, 0.93, 0.95, 0.97, 0.99, 1.0], dtype=&#x27;float64&#x27;, name=&#x27;truncation_value&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-015e05bd-5334-4b84-a32b-a329055598b6' class='xr-section-summary-in' type='checkbox' ><label for='section-015e05bd-5334-4b84-a32b-a329055598b6' class='xr-section-
  2777. ],
  2778. "text/plain": [
  2779. "<xarray.DataArray 'OD' (runs: 5, truncation_value: 11, y: 300, x: 300)>\n",
  2780. "array([[[[ 0.10089884, 0.0696463 , 0.05767011, ..., 0.01963588,\n",
  2781. " -0.0650863 , -0.00446167],\n",
  2782. " [ 0.10342729, 0.04260584, 0.02118076, ..., 0.11194868,\n",
  2783. " 0.00723437, -0.0801735 ],\n",
  2784. " [ 0.00780842, 0.00827735, -0.02827232, ..., -0.02693453,\n",
  2785. " -0.00446167, 0.0622297 ],\n",
  2786. " ...,\n",
  2787. " [-0.1117072 , -0.0575715 , -0.03836323, ..., -0.05152918,\n",
  2788. " -0.02529576, 0.00751452],\n",
  2789. " [ 0.12183205, 0.03190597, 0.01355683, ..., -0.02573907,\n",
  2790. " -0.05682966, -0.00446167],\n",
  2791. " [ 0.03475904, 0.0325796 , 0.07721636, ..., 0.02662891,\n",
  2792. " -0.05738408, 0.00751452]],\n",
  2793. "\n",
  2794. " [[ 0.05613155, -0.10849043, 0.05082337, ..., 0.09902547,\n",
  2795. " 0.01710835, 0.03692657],\n",
  2796. " [-0.08110418, -0.09280022, 0.01710835, ..., -0.04168176,\n",
  2797. " -0.15458948, 0.00483825],\n",
  2798. " [-0.07212279, -0.00743184, -0.05653069, ..., -0.18356235,\n",
  2799. " -0.01621516, -0.07006305],\n",
  2800. "...\n",
  2801. " [ 0.15678264, 0.09630046, 0.1255301 , ..., -0.00355249,\n",
  2802. " 0.01855798, -0.00499196],\n",
  2803. " [ 0.00774706, -0.07926432, 0.0260962 , ..., -0.01447608,\n",
  2804. " -0.03527032, 0.04126975],\n",
  2805. " [-0.01094507, -0.16745703, -0.0624572 , ..., 0.07159853,\n",
  2806. " 0.01769739, -0.06124581]],\n",
  2807. "\n",
  2808. " [[ 0.05950001, 0.0086876 , -0.02921711, ..., 0.04073558,\n",
  2809. " -0.00421581, -0.04723319],\n",
  2810. " [-0.0555091 , -0.11475768, -0.05360856, ..., -0.01551536,\n",
  2811. " 0.03087551, -0.00421581],\n",
  2812. " [ 0.03352452, -0.01663833, 0.01931469, ..., 0.01752418,\n",
  2813. " -0.02504989, 0.04815218],\n",
  2814. " ...,\n",
  2815. " [ 0.03087551, 0.05294261, -0.13050953, ..., -0.0277463 ,\n",
  2816. " -0.05020092, -0.04014782],\n",
  2817. " [ 0.03352452, -0.04422114, -0.06030527, ..., -0.06009626,\n",
  2818. " -0.03467501, 0.09642772],\n",
  2819. " [-0.04125708, 0.01447633, 0.07129175, ..., 0.06247557,\n",
  2820. " -0.05947848, -0.01538911]]]])\n",
  2821. "Coordinates:\n",
  2822. " * runs (runs) float64 0.0 1.0 2.0 3.0 4.0\n",
  2823. " * truncation_value (truncation_value) float64 0.8 0.83 0.85 ... 0.97 0.99 1.0\n",
  2824. "Dimensions without coordinates: y, x\n",
  2825. "Attributes:\n",
  2826. " IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
  2827. " IMAGE_VERSION: 1.2\n",
  2828. " IMAGE_WHITE_IS_ZERO: 0\n",
  2829. " x_start: 810\n",
  2830. " x_end: 1110\n",
  2831. " y_end: 1025\n",
  2832. " y_start: 725\n",
  2833. " x_center: 960\n",
  2834. " y_center: 875\n",
  2835. " x_span: 300\n",
  2836. " y_span: 300"
  2837. ]
  2838. },
  2839. "execution_count": 9,
  2840. "metadata": {},
  2841. "output_type": "execute_result"
  2842. }
  2843. ],
  2844. "source": [
  2845. "dataSet_cropOD = imageAnalyser.crop_image(dataSet.OD)\n",
  2846. "dataSet_cropOD = imageAnalyser.substract_offset(dataSet_cropOD).load()\n",
  2847. "dataSet_cropOD"
  2848. ]
  2849. },
  2850. {
  2851. "cell_type": "markdown",
  2852. "metadata": {},
  2853. "source": [
  2854. "The information of ROI will be written to the attributes of the images."
  2855. ]
  2856. },
  2857. {
  2858. "cell_type": "markdown",
  2859. "metadata": {},
  2860. "source": [
  2861. "## Plot the OD images"
  2862. ]
  2863. },
  2864. {
  2865. "cell_type": "markdown",
  2866. "metadata": {},
  2867. "source": [
  2868. "Like panadas package, xarray also provide a easy function to plot the results. Here is an link ot the introduction\n",
  2869. "\n",
  2870. "https://docs.xarray.dev/en/stable/user-guide/plotting.html\n",
  2871. "\n",
  2872. "`The original xarray plotting function doesn't support to do an errorbar plot, but we implement it by ourselves.`\n",
  2873. "\n",
  2874. "If you do not have any patient to read it, you can always copy and paste the following sentance, but with some different settings."
  2875. ]
  2876. },
  2877. {
  2878. "cell_type": "code",
  2879. "execution_count": 10,
  2880. "metadata": {},
  2881. "outputs": [
  2882. {
  2883. "data": {
  2884. "image/png": "iVBORw0KGgoAAAANSUhEUgAAC8cAAAW6CAYAAABroPE6AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOyde3hdVZn/P20TaNom0GDT0hQSJUAqtEDAgpSxoFXwUoYioiKKDirM6KiMjM6PQQF1ZhQQFfE2CngFRQUfi9KBOtDBihSN0AoNUKBFiqSVAE1pgITu3x9rf8/7rn1O2qSXpCnr+zznOefsy9rr9t7ftfaoLMsyEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEkYwRg93BRISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhK2FSk5PiEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhYcQjJccnJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCSMeKTk+ISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhBGPlByfkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJAw4pGS4xMSEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEkY8UnJ8QkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkLCiEdKjk9ISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISBjxSMnxCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJIx4pOT5hh2LUqFGMGjWK2267bbirMiLx3e9+l1GjRtHc3DzcVUnYRZBoctuQaDJhOJDodtuQ6DZhqJFodtuQaDZhOJDodtuQ6DZhqJFodtuQaDZhOJDodtuQ6DZhqJFodtuQaDZhOJDodtuQ6DZhqJFodtuQaDZhZ0Si621DouuEhISEhB2Bl2Ry/He/+10uvPDCpJRsA7785S9z4YUXcvfddw93VRJ2AWxvmrz11luZP38+e++9N7vvvjvTpk3j9NNPp729fZvLfuyxx/jEJz7BoYceSm1tLdXV1UyaNInjjjuOK664gueff347tGDwSDSZMNQYDN3ujDT5+OOPc9lll/Gud72LmTNnMmXKFHbbbTfq6uqYOXMmH/nIR+jo6Njm+m0OiW4ThhKDlbU7I92uWrWq5Fzc3Of888/f5jpWQqLZhKHGSJe1xx577IBoVp8dgUS3CUOJXUHWCqtWreIjH/kIra2tjBs3jj322IPDDjuMz33uczz77LPbXL/+kGg2Yaixs8jatWvXct555zFz5kxqa2sZP348r3zlK/nkJz/JunXrNnvv7bffzle+8hXOOOMMDj74YKqqqhg1ahTHHnvsNtdrIEh0mzCU2Jlk7dbS7XD7oxLNJgw1RrqsHW5fFCS6TRha7Aqydrj9UYlmE3Y2eLreGWlWGC5f1ECQ6DphZ0RHRwdXXXUVH/rQh3j1q1/NuHHjdohsu/766zn++ONpaGhg7NixvPzlL+ess85i5cqV2/U5CQkJCTsM2UsQc+bMyYDsggsuGO6qjFg0NTVlQHb11Vdv9roDDzwwO/DAA7M777xzaCq2i+Hqq6/OgKypqWm4q7JDsT1p8oILLsiADMhGjRqV7bHHHqX/VVVV2be//e2tLvt//ud/sgkTJpTKGz16dFQ+kB100EHZ448/vs3tGCwSTQ4NXio0ORAMlG53Vpr86U9/Gl1XVVWVTZw4MRs1alTpWHV1dfa1r31tq+u3JSS6HRokug0YjKzdWen2kUceKV3zspe9LJs8eXLFz+c///mtrt/mkGh2aJBo1jDSZe38+fP7pVN9VMarXvWqra7j5pDodmiQ6DZgV5C1WZZlv/jFL7Lx48eXrp0wYUL0/+Uvf3n2yCOPbHX9NodEs0ODRLOGnUHW/u53v8smTZpUKq+mpiarq6uL9N4//OEP/d7vadt/5syZs9V1GgwS3Q4NEt0G7Cyydlvodrj9UYlmhwaJZg0jXdYOty8qyxLdDhUS3QbsCrJ2uP1RiWaHBolmBw7Rtb53NprNsuH1RQ0Eia6HBomuBwdP08XP9sCmTZuy973vfZGP2dP1uHHjsl/96lfb5VkJCQkJOxIvyZ3jE4YOHR0ddHR0MGvWrOGuSsJLANdddx0XXXQRAGeddRbr1q3j6aef5i9/+QsnnXQSfX19nH322dxxxx2DLrurq4u3v/3tbNiwgX333Zcbb7yR5557jqeffpr169fz5S9/maqqKu69917OPvvs7d207YZEkwlDiZ2ZJvfZZx/OP/98Fi5cSGdnJy+88AJdXV0899xz3HLLLRx++OH09vby4Q9/eKvqtz2R6DZhKLEz063HXXfdxRNPPFHx88lPfnKr2r69kGg2YSixM9Ps9ddf3y+dPvHEE/zqV78qXXvmmWdufSdsByS6TRhK7Mx0u3z5ct7xjnfw7LPPcthhh7F06VK6u7vp7u7m9ttvp7W1lUceeYQ3v/nN9Pb2bnNfbC0SzSYMJXYkzT7xxBPMmzePdevW0dzczKJFi3j22Wd55plnuOeeezj66KP529/+xpve9CaeeuqpimXU1NQwa9Yszj77bL797W9z/PHHb1N7dxQS3SYMJXZmuh0p/qhEswlDiZ2ZZj12Zl8UJLpNGFrszHQ7UvxRiWYThhqLFy8Gdj6aHSm+qIEg0XXCUKKqqorp06dz+umnc9lll/Ev//Iv27X8Sy65hKuvvhqACy64gGeeeYZnnnmGjo4Ojj76aDZu3Mipp57KI488sl2fm5CQkLDdMdzZ+cOBtHP8tmOgqyMTtg0vldWR24Mm+/r6SvPy+OOPLzv//PPPZzNmzMiA7Jhjjhl0+d/97ndLqyBvvfXWitecf/75pVWTzz777KCfsS1INDk0eKnQ5ECwJbod6TTZ1dWVjRs3LgOy97///YOu30CQ6HZokOg2YCCydmenW79b13DsEpJodmiQaNawq8vas88+u7TDyDPPPDPo+g0EiW6HBoluA3YFWXvKKadkQDZ+/PhszZo1Zfc+8MADWXV1dQZkV1xxxaDrtyUkmh0aJJo1DLesPffcc0v02N7eXnb+ySefzCZOnJgB2bnnnttvHT3OOOOM0q6AQ4FEt0ODRLcBO4Os3R50uznsaH9UotmhQaJZw0iXtcPti8qyRLdDhUS3AS8FWbuj/VGJZocGiWYHjte85jUlWbYz0uxw+6IGgkTXQ4NE14ND0R+k/tseaaBdXV1ZbW1tBmRnnXVWxfNTpkzJgOz000/f5uclJCQk7Ei8pJLjvTDo7+OdGz6g2NnZmZ1zzjnZ/vvvn9XU1EQCZSCGol4tVikw4e/ftGlT9t///d/ZrFmzstra2mzChAnZUUcdlf3gBz/YYvvuu+++7J/+6Z+y6dOnl141dMABB2Rvf/vbs5/97GfZiy++GF3f0dGRXXzxxdnrXve67BWveEU2duzYrLa2Njv00EOzf//3f8/WrVvXbzs29/HYUlC2p6cn+9KXvpS9+tWvzvbcc89s9913z/bdd9/s3e9+d/anP/2p37Z6BfT555/PLr744mzmzJnZuHHjsrq6uuy4447Lbrrppi322UAwc+bMDMjOOeeczV63aNGiDMJrqFavXl06/vTTT2fXXnttdtppp2UHH3xwNnHixFI73/nOd2Z33HFHv2VuTgFUsOuMM87Yqvt9/T73uc9ls2bNyvbcc89st912y6ZNm5a94x3v2Gzdtge2N03qc+ihh1akSZ8o8JGPfGRQNDlt2rTSva961asq0uQvf/nL0jV/+9vfEk0mmhzU/b5+w0WTA8FA6fY3v/lNdGxLdHvkkUcOSpb+13/9V+ne7u7
  2885. "text/plain": [
  2886. "<Figure size 3400x1500 with 56 Axes>"
  2887. ]
  2888. },
  2889. "metadata": {},
  2890. "output_type": "display_data"
  2891. }
  2892. ],
  2893. "source": [
  2894. "# first get the scan axes\n",
  2895. "scanAxis = get_scanAxis(dataSet)\n",
  2896. "\n",
  2897. "# Name_of_varibale.plot.name_of_plot_type(col=scanAxis[0], row=scanAxis[1], **kwargs)\n",
  2898. "# The name of the plot type has the same name as it in the matplotlib package\n",
  2899. "# The **kwargs to adjust the plot also as same as the matplotlib package\n",
  2900. "dataSet_cropOD.plot.pcolormesh(col=scanAxis[0], row=scanAxis[1], cmap='jet', vmin=0, vmax=2)\n",
  2901. "\n",
  2902. "plt.show()"
  2903. ]
  2904. }
  2905. ],
  2906. "metadata": {
  2907. "kernelspec": {
  2908. "display_name": "base",
  2909. "language": "python",
  2910. "name": "python3"
  2911. },
  2912. "language_info": {
  2913. "codemirror_mode": {
  2914. "name": "ipython",
  2915. "version": 3
  2916. },
  2917. "file_extension": ".py",
  2918. "mimetype": "text/x-python",
  2919. "name": "python",
  2920. "nbconvert_exporter": "python",
  2921. "pygments_lexer": "ipython3",
  2922. "version": "3.9.12"
  2923. },
  2924. "orig_nbformat": 4
  2925. },
  2926. "nbformat": 4,
  2927. "nbformat_minor": 2
  2928. }