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.

1854 lines
817 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. {
  2. "cells": [
  3. {
  4. "attachments": {},
  5. "cell_type": "markdown",
  6. "metadata": {},
  7. "source": [
  8. "# Import supporting package"
  9. ]
  10. },
  11. {
  12. "cell_type": "code",
  13. "execution_count": 1,
  14. "metadata": {},
  15. "outputs": [],
  16. "source": [
  17. "import xarray as xr\n",
  18. "import pandas as pd\n",
  19. "import numpy as np\n",
  20. "import copy\n",
  21. "\n",
  22. "import glob\n",
  23. "\n",
  24. "import xrft\n",
  25. "import finufft\n",
  26. "\n",
  27. "from uncertainties import ufloat\n",
  28. "from uncertainties import unumpy as unp\n",
  29. "from uncertainties import umath\n",
  30. "\n",
  31. "from datetime import datetime\n",
  32. "\n",
  33. "import matplotlib.pyplot as plt\n",
  34. "plt.rcParams['font.size'] = 18\n",
  35. "\n",
  36. "from DataContainer.ReadData import read_hdf5_file, read_hdf5_global, read_hdf5_run_time, read_csv_file\n",
  37. "from Analyser.ImagingAnalyser import ImageAnalyser\n",
  38. "from Analyser.FitAnalyser import FitAnalyser\n",
  39. "from Analyser.FFTAnalyser import fft, ifft, fft_nutou\n",
  40. "from ToolFunction.ToolFunction import *\n",
  41. "\n",
  42. "from ToolFunction.HomeMadeXarrayFunction import errorbar, dataarray_plot_errorbar\n",
  43. "xr.plot.dataarray_plot.errorbar = errorbar\n",
  44. "xr.plot.accessor.DataArrayPlotAccessor.errorbar = dataarray_plot_errorbar\n",
  45. "\n",
  46. "imageAnalyser = ImageAnalyser()"
  47. ]
  48. },
  49. {
  50. "attachments": {},
  51. "cell_type": "markdown",
  52. "metadata": {},
  53. "source": [
  54. "# Import supporting package"
  55. ]
  56. },
  57. {
  58. "cell_type": "code",
  59. "execution_count": 2,
  60. "metadata": {},
  61. "outputs": [],
  62. "source": [
  63. "import xarray as xr\n",
  64. "import numpy as np\n",
  65. "\n",
  66. "from uncertainties import ufloat\n",
  67. "from uncertainties import unumpy as unp\n",
  68. "from uncertainties import umath\n",
  69. "\n",
  70. "import matplotlib.pyplot as plt\n",
  71. "\n",
  72. "from DataContainer.ReadData import read_hdf5_file\n",
  73. "from Analyser.ImagingAnalyser import ImageAnalyser\n",
  74. "from Analyser.FitAnalyser import FitAnalyser\n",
  75. "from Analyser.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, Polylog22dModel\n",
  76. "from Analyser.FitAnalyser import NewFitModel\n",
  77. "from ToolFunction.ToolFunction import *\n",
  78. "\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\n",
  82. "\n",
  83. "imageAnalyser = ImageAnalyser()"
  84. ]
  85. },
  86. {
  87. "attachments": {},
  88. "cell_type": "markdown",
  89. "metadata": {},
  90. "source": [
  91. "## Start a client for parallel computing"
  92. ]
  93. },
  94. {
  95. "cell_type": "code",
  96. "execution_count": 3,
  97. "metadata": {},
  98. "outputs": [
  99. {
  100. "name": "stderr",
  101. "output_type": "stream",
  102. "text": [
  103. "C:\\Users\\data\\AppData\\Roaming\\Python\\Python39\\site-packages\\distributed\\node.py:182: UserWarning: Port 8787 is already in use.\n",
  104. "Perhaps you already have a cluster running?\n",
  105. "Hosting the HTTP server on port 55927 instead\n",
  106. " warnings.warn(\n"
  107. ]
  108. },
  109. {
  110. "data": {
  111. "text/html": [
  112. "<div>\n",
  113. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
  114. " <div style=\"margin-left: 48px;\">\n",
  115. " <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
  116. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-bcd2e1b1-fa34-11ed-8ee8-80e82ce2fa8e</p>\n",
  117. " <table style=\"width: 100%; text-align: left;\">\n",
  118. "\n",
  119. " <tr>\n",
  120. " \n",
  121. " <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
  122. " <td style=\"text-align: left;\"><strong>Cluster type:</strong> distributed.LocalCluster</td>\n",
  123. " \n",
  124. " </tr>\n",
  125. "\n",
  126. " \n",
  127. " <tr>\n",
  128. " <td style=\"text-align: left;\">\n",
  129. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55927/status\" target=\"_blank\">http://127.0.0.1:55927/status</a>\n",
  130. " </td>\n",
  131. " <td style=\"text-align: left;\"></td>\n",
  132. " </tr>\n",
  133. " \n",
  134. "\n",
  135. " </table>\n",
  136. "\n",
  137. " \n",
  138. "\n",
  139. " \n",
  140. " <details>\n",
  141. " <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
  142. " <div class=\"jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-output\">\n",
  143. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\">\n",
  144. " </div>\n",
  145. " <div style=\"margin-left: 48px;\">\n",
  146. " <h3 style=\"margin-bottom: 0px; margin-top: 0px;\">LocalCluster</h3>\n",
  147. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">09e583b7</p>\n",
  148. " <table style=\"width: 100%; text-align: left;\">\n",
  149. " <tr>\n",
  150. " <td style=\"text-align: left;\">\n",
  151. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:55927/status\" target=\"_blank\">http://127.0.0.1:55927/status</a>\n",
  152. " </td>\n",
  153. " <td style=\"text-align: left;\">\n",
  154. " <strong>Workers:</strong> 6\n",
  155. " </td>\n",
  156. " </tr>\n",
  157. " <tr>\n",
  158. " <td style=\"text-align: left;\">\n",
  159. " <strong>Total threads:</strong> 60\n",
  160. " </td>\n",
  161. " <td style=\"text-align: left;\">\n",
  162. " <strong>Total memory:</strong> 55.88 GiB\n",
  163. " </td>\n",
  164. " </tr>\n",
  165. " \n",
  166. " <tr>\n",
  167. " <td style=\"text-align: left;\"><strong>Status:</strong> running</td>\n",
  168. " <td style=\"text-align: left;\"><strong>Using processes:</strong> True</td>\n",
  169. "</tr>\n",
  170. "\n",
  171. " \n",
  172. " </table>\n",
  173. "\n",
  174. " <details>\n",
  175. " <summary style=\"margin-bottom: 20px;\">\n",
  176. " <h3 style=\"display: inline;\">Scheduler Info</h3>\n",
  177. " </summary>\n",
  178. "\n",
  179. " <div style=\"\">\n",
  180. " <div>\n",
  181. " <div style=\"width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;\"> </div>\n",
  182. " <div style=\"margin-left: 48px;\">\n",
  183. " <h3 style=\"margin-bottom: 0px;\">Scheduler</h3>\n",
  184. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-1d6f3a98-9195-4a88-95f6-119139cfd1e1</p>\n",
  185. " <table style=\"width: 100%; text-align: left;\">\n",
  186. " <tr>\n",
  187. " <td style=\"text-align: left;\">\n",
  188. " <strong>Comm:</strong> tcp://127.0.0.1:55928\n",
  189. " </td>\n",
  190. " <td style=\"text-align: left;\">\n",
  191. " <strong>Workers:</strong> 6\n",
  192. " </td>\n",
  193. " </tr>\n",
  194. " <tr>\n",
  195. " <td style=\"text-align: left;\">\n",
  196. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:55927/status\" target=\"_blank\">http://127.0.0.1:55927/status</a>\n",
  197. " </td>\n",
  198. " <td style=\"text-align: left;\">\n",
  199. " <strong>Total threads:</strong> 60\n",
  200. " </td>\n",
  201. " </tr>\n",
  202. " <tr>\n",
  203. " <td style=\"text-align: left;\">\n",
  204. " <strong>Started:</strong> Just now\n",
  205. " </td>\n",
  206. " <td style=\"text-align: left;\">\n",
  207. " <strong>Total memory:</strong> 55.88 GiB\n",
  208. " </td>\n",
  209. " </tr>\n",
  210. " </table>\n",
  211. " </div>\n",
  212. " </div>\n",
  213. "\n",
  214. " <details style=\"margin-left: 48px;\">\n",
  215. " <summary style=\"margin-bottom: 20px;\">\n",
  216. " <h3 style=\"display: inline;\">Workers</h3>\n",
  217. " </summary>\n",
  218. "\n",
  219. " \n",
  220. " <div style=\"margin-bottom: 20px;\">\n",
  221. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  222. " <div style=\"margin-left: 48px;\">\n",
  223. " <details>\n",
  224. " <summary>\n",
  225. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 0</h4>\n",
  226. " </summary>\n",
  227. " <table style=\"width: 100%; text-align: left;\">\n",
  228. " <tr>\n",
  229. " <td style=\"text-align: left;\">\n",
  230. " <strong>Comm: </strong> tcp://127.0.0.1:55959\n",
  231. " </td>\n",
  232. " <td style=\"text-align: left;\">\n",
  233. " <strong>Total threads: </strong> 10\n",
  234. " </td>\n",
  235. " </tr>\n",
  236. " <tr>\n",
  237. " <td style=\"text-align: left;\">\n",
  238. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55961/status\" target=\"_blank\">http://127.0.0.1:55961/status</a>\n",
  239. " </td>\n",
  240. " <td style=\"text-align: left;\">\n",
  241. " <strong>Memory: </strong> 9.31 GiB\n",
  242. " </td>\n",
  243. " </tr>\n",
  244. " <tr>\n",
  245. " <td style=\"text-align: left;\">\n",
  246. " <strong>Nanny: </strong> tcp://127.0.0.1:55931\n",
  247. " </td>\n",
  248. " <td style=\"text-align: left;\"></td>\n",
  249. " </tr>\n",
  250. " <tr>\n",
  251. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  252. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-94foskul\n",
  253. " </td>\n",
  254. " </tr>\n",
  255. "\n",
  256. " \n",
  257. "\n",
  258. " \n",
  259. "\n",
  260. " </table>\n",
  261. " </details>\n",
  262. " </div>\n",
  263. " </div>\n",
  264. " \n",
  265. " <div style=\"margin-bottom: 20px;\">\n",
  266. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  267. " <div style=\"margin-left: 48px;\">\n",
  268. " <details>\n",
  269. " <summary>\n",
  270. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 1</h4>\n",
  271. " </summary>\n",
  272. " <table style=\"width: 100%; text-align: left;\">\n",
  273. " <tr>\n",
  274. " <td style=\"text-align: left;\">\n",
  275. " <strong>Comm: </strong> tcp://127.0.0.1:55967\n",
  276. " </td>\n",
  277. " <td style=\"text-align: left;\">\n",
  278. " <strong>Total threads: </strong> 10\n",
  279. " </td>\n",
  280. " </tr>\n",
  281. " <tr>\n",
  282. " <td style=\"text-align: left;\">\n",
  283. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55968/status\" target=\"_blank\">http://127.0.0.1:55968/status</a>\n",
  284. " </td>\n",
  285. " <td style=\"text-align: left;\">\n",
  286. " <strong>Memory: </strong> 9.31 GiB\n",
  287. " </td>\n",
  288. " </tr>\n",
  289. " <tr>\n",
  290. " <td style=\"text-align: left;\">\n",
  291. " <strong>Nanny: </strong> tcp://127.0.0.1:55932\n",
  292. " </td>\n",
  293. " <td style=\"text-align: left;\"></td>\n",
  294. " </tr>\n",
  295. " <tr>\n",
  296. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  297. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-p9hh_7ad\n",
  298. " </td>\n",
  299. " </tr>\n",
  300. "\n",
  301. " \n",
  302. "\n",
  303. " \n",
  304. "\n",
  305. " </table>\n",
  306. " </details>\n",
  307. " </div>\n",
  308. " </div>\n",
  309. " \n",
  310. " <div style=\"margin-bottom: 20px;\">\n",
  311. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  312. " <div style=\"margin-left: 48px;\">\n",
  313. " <details>\n",
  314. " <summary>\n",
  315. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 2</h4>\n",
  316. " </summary>\n",
  317. " <table style=\"width: 100%; text-align: left;\">\n",
  318. " <tr>\n",
  319. " <td style=\"text-align: left;\">\n",
  320. " <strong>Comm: </strong> tcp://127.0.0.1:55958\n",
  321. " </td>\n",
  322. " <td style=\"text-align: left;\">\n",
  323. " <strong>Total threads: </strong> 10\n",
  324. " </td>\n",
  325. " </tr>\n",
  326. " <tr>\n",
  327. " <td style=\"text-align: left;\">\n",
  328. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55965/status\" target=\"_blank\">http://127.0.0.1:55965/status</a>\n",
  329. " </td>\n",
  330. " <td style=\"text-align: left;\">\n",
  331. " <strong>Memory: </strong> 9.31 GiB\n",
  332. " </td>\n",
  333. " </tr>\n",
  334. " <tr>\n",
  335. " <td style=\"text-align: left;\">\n",
  336. " <strong>Nanny: </strong> tcp://127.0.0.1:55933\n",
  337. " </td>\n",
  338. " <td style=\"text-align: left;\"></td>\n",
  339. " </tr>\n",
  340. " <tr>\n",
  341. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  342. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-duf7f6n9\n",
  343. " </td>\n",
  344. " </tr>\n",
  345. "\n",
  346. " \n",
  347. "\n",
  348. " \n",
  349. "\n",
  350. " </table>\n",
  351. " </details>\n",
  352. " </div>\n",
  353. " </div>\n",
  354. " \n",
  355. " <div style=\"margin-bottom: 20px;\">\n",
  356. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  357. " <div style=\"margin-left: 48px;\">\n",
  358. " <details>\n",
  359. " <summary>\n",
  360. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 3</h4>\n",
  361. " </summary>\n",
  362. " <table style=\"width: 100%; text-align: left;\">\n",
  363. " <tr>\n",
  364. " <td style=\"text-align: left;\">\n",
  365. " <strong>Comm: </strong> tcp://127.0.0.1:55955\n",
  366. " </td>\n",
  367. " <td style=\"text-align: left;\">\n",
  368. " <strong>Total threads: </strong> 10\n",
  369. " </td>\n",
  370. " </tr>\n",
  371. " <tr>\n",
  372. " <td style=\"text-align: left;\">\n",
  373. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55956/status\" target=\"_blank\">http://127.0.0.1:55956/status</a>\n",
  374. " </td>\n",
  375. " <td style=\"text-align: left;\">\n",
  376. " <strong>Memory: </strong> 9.31 GiB\n",
  377. " </td>\n",
  378. " </tr>\n",
  379. " <tr>\n",
  380. " <td style=\"text-align: left;\">\n",
  381. " <strong>Nanny: </strong> tcp://127.0.0.1:55934\n",
  382. " </td>\n",
  383. " <td style=\"text-align: left;\"></td>\n",
  384. " </tr>\n",
  385. " <tr>\n",
  386. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  387. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-msy7ad7k\n",
  388. " </td>\n",
  389. " </tr>\n",
  390. "\n",
  391. " \n",
  392. "\n",
  393. " \n",
  394. "\n",
  395. " </table>\n",
  396. " </details>\n",
  397. " </div>\n",
  398. " </div>\n",
  399. " \n",
  400. " <div style=\"margin-bottom: 20px;\">\n",
  401. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  402. " <div style=\"margin-left: 48px;\">\n",
  403. " <details>\n",
  404. " <summary>\n",
  405. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 4</h4>\n",
  406. " </summary>\n",
  407. " <table style=\"width: 100%; text-align: left;\">\n",
  408. " <tr>\n",
  409. " <td style=\"text-align: left;\">\n",
  410. " <strong>Comm: </strong> tcp://127.0.0.1:55960\n",
  411. " </td>\n",
  412. " <td style=\"text-align: left;\">\n",
  413. " <strong>Total threads: </strong> 10\n",
  414. " </td>\n",
  415. " </tr>\n",
  416. " <tr>\n",
  417. " <td style=\"text-align: left;\">\n",
  418. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55963/status\" target=\"_blank\">http://127.0.0.1:55963/status</a>\n",
  419. " </td>\n",
  420. " <td style=\"text-align: left;\">\n",
  421. " <strong>Memory: </strong> 9.31 GiB\n",
  422. " </td>\n",
  423. " </tr>\n",
  424. " <tr>\n",
  425. " <td style=\"text-align: left;\">\n",
  426. " <strong>Nanny: </strong> tcp://127.0.0.1:55935\n",
  427. " </td>\n",
  428. " <td style=\"text-align: left;\"></td>\n",
  429. " </tr>\n",
  430. " <tr>\n",
  431. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  432. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-i3jems_y\n",
  433. " </td>\n",
  434. " </tr>\n",
  435. "\n",
  436. " \n",
  437. "\n",
  438. " \n",
  439. "\n",
  440. " </table>\n",
  441. " </details>\n",
  442. " </div>\n",
  443. " </div>\n",
  444. " \n",
  445. " <div style=\"margin-bottom: 20px;\">\n",
  446. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  447. " <div style=\"margin-left: 48px;\">\n",
  448. " <details>\n",
  449. " <summary>\n",
  450. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 5</h4>\n",
  451. " </summary>\n",
  452. " <table style=\"width: 100%; text-align: left;\">\n",
  453. " <tr>\n",
  454. " <td style=\"text-align: left;\">\n",
  455. " <strong>Comm: </strong> tcp://127.0.0.1:55970\n",
  456. " </td>\n",
  457. " <td style=\"text-align: left;\">\n",
  458. " <strong>Total threads: </strong> 10\n",
  459. " </td>\n",
  460. " </tr>\n",
  461. " <tr>\n",
  462. " <td style=\"text-align: left;\">\n",
  463. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:55971/status\" target=\"_blank\">http://127.0.0.1:55971/status</a>\n",
  464. " </td>\n",
  465. " <td style=\"text-align: left;\">\n",
  466. " <strong>Memory: </strong> 9.31 GiB\n",
  467. " </td>\n",
  468. " </tr>\n",
  469. " <tr>\n",
  470. " <td style=\"text-align: left;\">\n",
  471. " <strong>Nanny: </strong> tcp://127.0.0.1:55936\n",
  472. " </td>\n",
  473. " <td style=\"text-align: left;\"></td>\n",
  474. " </tr>\n",
  475. " <tr>\n",
  476. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  477. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-q56b40ir\n",
  478. " </td>\n",
  479. " </tr>\n",
  480. "\n",
  481. " \n",
  482. "\n",
  483. " \n",
  484. "\n",
  485. " </table>\n",
  486. " </details>\n",
  487. " </div>\n",
  488. " </div>\n",
  489. " \n",
  490. "\n",
  491. " </details>\n",
  492. "</div>\n",
  493. "\n",
  494. " </details>\n",
  495. " </div>\n",
  496. "</div>\n",
  497. " </details>\n",
  498. " \n",
  499. "\n",
  500. " </div>\n",
  501. "</div>"
  502. ],
  503. "text/plain": [
  504. "<Client: 'tcp://127.0.0.1:55928' processes=6 threads=60, memory=55.88 GiB>"
  505. ]
  506. },
  507. "execution_count": 3,
  508. "metadata": {},
  509. "output_type": "execute_result"
  510. }
  511. ],
  512. "source": [
  513. "from dask.distributed import Client\n",
  514. "client = Client(n_workers=6, threads_per_worker=10, processes=True, memory_limit='10GB')\n",
  515. "client"
  516. ]
  517. },
  518. {
  519. "attachments": {},
  520. "cell_type": "markdown",
  521. "metadata": {},
  522. "source": [
  523. "## Set global path for experiment"
  524. ]
  525. },
  526. {
  527. "cell_type": "code",
  528. "execution_count": 4,
  529. "metadata": {},
  530. "outputs": [],
  531. "source": [
  532. "# filepath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/05/03/0043/*.h5\"\n",
  533. "# filepath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/04/18/0003/2023-04-18_0003_Evaporative_Cooling_000.h5\"\n",
  534. "\n",
  535. "# filepath = \"//DyLabNAS/Data/Repetition_scan/2023/04/21/0002/*.h5\"\n",
  536. "\n",
  537. "# filepath = r\"./testData/0002/*.h5\"\n",
  538. "\n",
  539. "# filepath = r\"./testData/0002/2023-04-21_0002_Evaporative_Cooling_0.h5\"\n",
  540. "\n",
  541. "# filepath = r'd:/Jianshun Gao/Simulations/analyseScripts/testData/0002/2023-04-21_0002_Evaporative_Cooling_0.h5'\n",
  542. "\n",
  543. "# filepath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/04/18/0003/*.h5\"\n",
  544. "\n",
  545. "# filepath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/05/04/0000/*.h5\"\n",
  546. "\n",
  547. "filepath = './result_from_experiment/2023-04-24/0013/2023-04-24_0013_Evaporative_Cooling_10.h5'"
  548. ]
  549. },
  550. {
  551. "cell_type": "code",
  552. "execution_count": 5,
  553. "metadata": {},
  554. "outputs": [],
  555. "source": [
  556. "groupList = [\n",
  557. " \"images/MOT_3D_Camera/in_situ_absorption\",\n",
  558. " \"images/ODT_1_Axis_Camera/in_situ_absorption\",\n",
  559. " \"images/ODT_2_Axis_Camera/in_situ_absorption\",\n",
  560. "]\n",
  561. "\n",
  562. "dskey = {\n",
  563. " \"images/MOT_3D_Camera/in_situ_absorption\": \"camera_1\",\n",
  564. " \"images/ODT_1_Axis_Camera/in_situ_absorption\": \"camera_2\",\n",
  565. " \"images/ODT_2_Axis_Camera/in_situ_absorption\": \"camera_3\",\n",
  566. "}\n"
  567. ]
  568. },
  569. {
  570. "cell_type": "code",
  571. "execution_count": 6,
  572. "metadata": {},
  573. "outputs": [],
  574. "source": [
  575. "img_dir = '//DyLabNAS/Data/'\n",
  576. "SequenceName = \"Evaporative_Cooling\" + \"/\"\n",
  577. "folderPath = img_dir + SequenceName + '2023/05/23'# get_date()"
  578. ]
  579. },
  580. {
  581. "attachments": {},
  582. "cell_type": "markdown",
  583. "metadata": {},
  584. "source": [
  585. "# An example for one experimental run"
  586. ]
  587. },
  588. {
  589. "attachments": {},
  590. "cell_type": "markdown",
  591. "metadata": {},
  592. "source": [
  593. "## Load the data"
  594. ]
  595. },
  596. {
  597. "cell_type": "code",
  598. "execution_count": 7,
  599. "metadata": {},
  600. "outputs": [
  601. {
  602. "data": {
  603. "text/html": [
  604. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  605. "<defs>\n",
  606. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  607. "<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",
  608. "<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",
  609. "<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",
  610. "</symbol>\n",
  611. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  612. "<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",
  613. "<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",
  614. "<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",
  615. "<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",
  616. "</symbol>\n",
  617. "</defs>\n",
  618. "</svg>\n",
  619. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  620. " *\n",
  621. " */\n",
  622. "\n",
  623. ":root {\n",
  624. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  625. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  626. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  627. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  628. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  629. " --xr-background-color: var(--jp-layout-color0, white);\n",
  630. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  631. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  632. "}\n",
  633. "\n",
  634. "html[theme=dark],\n",
  635. "body[data-theme=dark],\n",
  636. "body.vscode-dark {\n",
  637. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  638. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  639. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  640. " --xr-border-color: #1F1F1F;\n",
  641. " --xr-disabled-color: #515151;\n",
  642. " --xr-background-color: #111111;\n",
  643. " --xr-background-color-row-even: #111111;\n",
  644. " --xr-background-color-row-odd: #313131;\n",
  645. "}\n",
  646. "\n",
  647. ".xr-wrap {\n",
  648. " display: block !important;\n",
  649. " min-width: 300px;\n",
  650. " max-width: 700px;\n",
  651. "}\n",
  652. "\n",
  653. ".xr-text-repr-fallback {\n",
  654. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  655. " display: none;\n",
  656. "}\n",
  657. "\n",
  658. ".xr-header {\n",
  659. " padding-top: 6px;\n",
  660. " padding-bottom: 6px;\n",
  661. " margin-bottom: 4px;\n",
  662. " border-bottom: solid 1px var(--xr-border-color);\n",
  663. "}\n",
  664. "\n",
  665. ".xr-header > div,\n",
  666. ".xr-header > ul {\n",
  667. " display: inline;\n",
  668. " margin-top: 0;\n",
  669. " margin-bottom: 0;\n",
  670. "}\n",
  671. "\n",
  672. ".xr-obj-type,\n",
  673. ".xr-array-name {\n",
  674. " margin-left: 2px;\n",
  675. " margin-right: 10px;\n",
  676. "}\n",
  677. "\n",
  678. ".xr-obj-type {\n",
  679. " color: var(--xr-font-color2);\n",
  680. "}\n",
  681. "\n",
  682. ".xr-sections {\n",
  683. " padding-left: 0 !important;\n",
  684. " display: grid;\n",
  685. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  686. "}\n",
  687. "\n",
  688. ".xr-section-item {\n",
  689. " display: contents;\n",
  690. "}\n",
  691. "\n",
  692. ".xr-section-item input {\n",
  693. " display: none;\n",
  694. "}\n",
  695. "\n",
  696. ".xr-section-item input + label {\n",
  697. " color: var(--xr-disabled-color);\n",
  698. "}\n",
  699. "\n",
  700. ".xr-section-item input:enabled + label {\n",
  701. " cursor: pointer;\n",
  702. " color: var(--xr-font-color2);\n",
  703. "}\n",
  704. "\n",
  705. ".xr-section-item input:enabled + label:hover {\n",
  706. " color: var(--xr-font-color0);\n",
  707. "}\n",
  708. "\n",
  709. ".xr-section-summary {\n",
  710. " grid-column: 1;\n",
  711. " color: var(--xr-font-color2);\n",
  712. " font-weight: 500;\n",
  713. "}\n",
  714. "\n",
  715. ".xr-section-summary > span {\n",
  716. " display: inline-block;\n",
  717. " padding-left: 0.5em;\n",
  718. "}\n",
  719. "\n",
  720. ".xr-section-summary-in:disabled + label {\n",
  721. " color: var(--xr-font-color2);\n",
  722. "}\n",
  723. "\n",
  724. ".xr-section-summary-in + label:before {\n",
  725. " display: inline-block;\n",
  726. " content: 'â–º';\n",
  727. " font-size: 11px;\n",
  728. " width: 15px;\n",
  729. " text-align: center;\n",
  730. "}\n",
  731. "\n",
  732. ".xr-section-summary-in:disabled + label:before {\n",
  733. " color: var(--xr-disabled-color);\n",
  734. "}\n",
  735. "\n",
  736. ".xr-section-summary-in:checked + label:before {\n",
  737. " content: 'â–¼';\n",
  738. "}\n",
  739. "\n",
  740. ".xr-section-summary-in:checked + label > span {\n",
  741. " display: none;\n",
  742. "}\n",
  743. "\n",
  744. ".xr-section-summary,\n",
  745. ".xr-section-inline-details {\n",
  746. " padding-top: 4px;\n",
  747. " padding-bottom: 4px;\n",
  748. "}\n",
  749. "\n",
  750. ".xr-section-inline-details {\n",
  751. " grid-column: 2 / -1;\n",
  752. "}\n",
  753. "\n",
  754. ".xr-section-details {\n",
  755. " display: none;\n",
  756. " grid-column: 1 / -1;\n",
  757. " margin-bottom: 5px;\n",
  758. "}\n",
  759. "\n",
  760. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  761. " display: contents;\n",
  762. "}\n",
  763. "\n",
  764. ".xr-array-wrap {\n",
  765. " grid-column: 1 / -1;\n",
  766. " display: grid;\n",
  767. " grid-template-columns: 20px auto;\n",
  768. "}\n",
  769. "\n",
  770. ".xr-array-wrap > label {\n",
  771. " grid-column: 1;\n",
  772. " vertical-align: top;\n",
  773. "}\n",
  774. "\n",
  775. ".xr-preview {\n",
  776. " color: var(--xr-font-color3);\n",
  777. "}\n",
  778. "\n",
  779. ".xr-array-preview,\n",
  780. ".xr-array-data {\n",
  781. " padding: 0 5px !important;\n",
  782. " grid-column: 2;\n",
  783. "}\n",
  784. "\n",
  785. ".xr-array-data,\n",
  786. ".xr-array-in:checked ~ .xr-array-preview {\n",
  787. " display: none;\n",
  788. "}\n",
  789. "\n",
  790. ".xr-array-in:checked ~ .xr-array-data,\n",
  791. ".xr-array-preview {\n",
  792. " display: inline-block;\n",
  793. "}\n",
  794. "\n",
  795. ".xr-dim-list {\n",
  796. " display: inline-block !important;\n",
  797. " list-style: none;\n",
  798. " padding: 0 !important;\n",
  799. " margin: 0;\n",
  800. "}\n",
  801. "\n",
  802. ".xr-dim-list li {\n",
  803. " display: inline-block;\n",
  804. " padding: 0;\n",
  805. " margin: 0;\n",
  806. "}\n",
  807. "\n",
  808. ".xr-dim-list:before {\n",
  809. " content: '(';\n",
  810. "}\n",
  811. "\n",
  812. ".xr-dim-list:after {\n",
  813. " content: ')';\n",
  814. "}\n",
  815. "\n",
  816. ".xr-dim-list li:not(:last-child):after {\n",
  817. " content: ',';\n",
  818. " padding-right: 5px;\n",
  819. "}\n",
  820. "\n",
  821. ".xr-has-index {\n",
  822. " font-weight: bold;\n",
  823. "}\n",
  824. "\n",
  825. ".xr-var-list,\n",
  826. ".xr-var-item {\n",
  827. " display: contents;\n",
  828. "}\n",
  829. "\n",
  830. ".xr-var-item > div,\n",
  831. ".xr-var-item label,\n",
  832. ".xr-var-item > .xr-var-name span {\n",
  833. " background-color: var(--xr-background-color-row-even);\n",
  834. " margin-bottom: 0;\n",
  835. "}\n",
  836. "\n",
  837. ".xr-var-item > .xr-var-name:hover span {\n",
  838. " padding-right: 5px;\n",
  839. "}\n",
  840. "\n",
  841. ".xr-var-list > li:nth-child(odd) > div,\n",
  842. ".xr-var-list > li:nth-child(odd) > label,\n",
  843. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  844. " background-color: var(--xr-background-color-row-odd);\n",
  845. "}\n",
  846. "\n",
  847. ".xr-var-name {\n",
  848. " grid-column: 1;\n",
  849. "}\n",
  850. "\n",
  851. ".xr-var-dims {\n",
  852. " grid-column: 2;\n",
  853. "}\n",
  854. "\n",
  855. ".xr-var-dtype {\n",
  856. " grid-column: 3;\n",
  857. " text-align: right;\n",
  858. " color: var(--xr-font-color2);\n",
  859. "}\n",
  860. "\n",
  861. ".xr-var-preview {\n",
  862. " grid-column: 4;\n",
  863. "}\n",
  864. "\n",
  865. ".xr-index-preview {\n",
  866. " grid-column: 2 / 5;\n",
  867. " color: var(--xr-font-color2);\n",
  868. "}\n",
  869. "\n",
  870. ".xr-var-name,\n",
  871. ".xr-var-dims,\n",
  872. ".xr-var-dtype,\n",
  873. ".xr-preview,\n",
  874. ".xr-attrs dt {\n",
  875. " white-space: nowrap;\n",
  876. " overflow: hidden;\n",
  877. " text-overflow: ellipsis;\n",
  878. " padding-right: 10px;\n",
  879. "}\n",
  880. "\n",
  881. ".xr-var-name:hover,\n",
  882. ".xr-var-dims:hover,\n",
  883. ".xr-var-dtype:hover,\n",
  884. ".xr-attrs dt:hover {\n",
  885. " overflow: visible;\n",
  886. " width: auto;\n",
  887. " z-index: 1;\n",
  888. "}\n",
  889. "\n",
  890. ".xr-var-attrs,\n",
  891. ".xr-var-data,\n",
  892. ".xr-index-data {\n",
  893. " display: none;\n",
  894. " background-color: var(--xr-background-color) !important;\n",
  895. " padding-bottom: 5px !important;\n",
  896. "}\n",
  897. "\n",
  898. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  899. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  900. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  901. " display: block;\n",
  902. "}\n",
  903. "\n",
  904. ".xr-var-data > table {\n",
  905. " float: right;\n",
  906. "}\n",
  907. "\n",
  908. ".xr-var-name span,\n",
  909. ".xr-var-data,\n",
  910. ".xr-index-name div,\n",
  911. ".xr-index-data,\n",
  912. ".xr-attrs {\n",
  913. " padding-left: 25px !important;\n",
  914. "}\n",
  915. "\n",
  916. ".xr-attrs,\n",
  917. ".xr-var-attrs,\n",
  918. ".xr-var-data,\n",
  919. ".xr-index-data {\n",
  920. " grid-column: 1 / -1;\n",
  921. "}\n",
  922. "\n",
  923. "dl.xr-attrs {\n",
  924. " padding: 0;\n",
  925. " margin: 0;\n",
  926. " display: grid;\n",
  927. " grid-template-columns: 125px auto;\n",
  928. "}\n",
  929. "\n",
  930. ".xr-attrs dt,\n",
  931. ".xr-attrs dd {\n",
  932. " padding: 0;\n",
  933. " margin: 0;\n",
  934. " float: left;\n",
  935. " padding-right: 10px;\n",
  936. " width: auto;\n",
  937. "}\n",
  938. "\n",
  939. ".xr-attrs dt {\n",
  940. " font-weight: normal;\n",
  941. " grid-column: 1;\n",
  942. "}\n",
  943. "\n",
  944. ".xr-attrs dt:hover span {\n",
  945. " display: inline-block;\n",
  946. " background: var(--xr-background-color);\n",
  947. " padding-right: 10px;\n",
  948. "}\n",
  949. "\n",
  950. ".xr-attrs dd {\n",
  951. " grid-column: 2;\n",
  952. " white-space: pre-wrap;\n",
  953. " word-break: break-all;\n",
  954. "}\n",
  955. "\n",
  956. ".xr-icon-database,\n",
  957. ".xr-icon-file-text2,\n",
  958. ".xr-no-icon {\n",
  959. " display: inline-block;\n",
  960. " vertical-align: middle;\n",
  961. " width: 1em;\n",
  962. " height: 1.5em !important;\n",
  963. " stroke-width: 0;\n",
  964. " stroke: currentColor;\n",
  965. " fill: currentColor;\n",
  966. "}\n",
  967. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  968. "Dimensions: (compX_final_current: 11, runs: 3, y: 1200, x: 1920)\n",
  969. "Coordinates:\n",
  970. " * compX_final_current (compX_final_current) float64 0.0 0.002 ... 0.018 0.02\n",
  971. " * runs (runs) float64 0.0 1.0 2.0\n",
  972. "Dimensions without coordinates: y, x\n",
  973. "Data variables:\n",
  974. " atoms (compX_final_current, runs, y, x) uint16 dask.array&lt;chunksize=(9, 3, 1200, 1920), meta=np.ndarray&gt;\n",
  975. " background (compX_final_current, runs, y, x) uint16 dask.array&lt;chunksize=(9, 3, 1200, 1920), meta=np.ndarray&gt;\n",
  976. " dark (compX_final_current, runs, y, x) uint16 dask.array&lt;chunksize=(9, 3, 1200, 1920), meta=np.ndarray&gt;\n",
  977. " shotNum (compX_final_current, runs) int64 dask.array&lt;chunksize=(11, 3), meta=np.ndarray&gt;\n",
  978. " OD (compX_final_current, runs, y, x) float64 dask.array&lt;chunksize=(9, 3, 1200, 1920), meta=np.ndarray&gt;\n",
  979. "Attributes: (12/120)\n",
  980. " TOF_free: 0.022\n",
  981. " abs_img_freq: 110.858\n",
  982. " absorption_imaging_flag: True\n",
  983. " backup_data: True\n",
  984. " blink_off_time: 0.001\n",
  985. " blink_on_time: 0.001\n",
  986. " ... ...\n",
  987. " z_offset: 0.189\n",
  988. " z_offset_img: 0.189\n",
  989. " compX_final_current: [0. 0.002 0.004 0.006 0.008 0.01 0...\n",
  990. " runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
  991. " scanAxis: [&#x27;compX_final_current&#x27; &#x27;runs&#x27;]\n",
  992. " scanAxisLength: [33. 33.]</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-2aadf9b7-cdd3-45b1-8516-c29dcd4e7b7c' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-2aadf9b7-cdd3-45b1-8516-c29dcd4e7b7c' 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'>compX_final_current</span>: 11</li><li><span class='xr-has-index'>runs</span>: 3</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-84c8977e-3b5c-4236-b0d3-03eed141ed4b' class='xr-section-summary-in' type='checkbox' checked><label for='section-84c8977e-3b5c-4236-b0d3-03eed141ed4b' 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'>compX_final_current</span></div><div class='xr-var-dims'>(compX_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.002 0.004 ... 0.018 0.02</div><input id='attrs-c12f4266-9b60-41c9-886a-a5f71176efa6' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c12f4266-9b60-41c9-886a-a5f71176efa6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ce2c2422-4f91-4f89-b12b-89c7b72ad8f2' class='xr-var-data-in' type='checkbox'><label for='data-ce2c2422-4f91-4f89-b12b-89c7b72ad8f2' 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. , 0.002, 0.004, 0.006, 0.008, 0.01 , 0.012, 0.014, 0.016, 0.018,\n",
  993. " 0.02 ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>runs</span></div><div class='xr-var-dims'>(runs)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 1.0 2.0</div><input id='attrs-76a999b0-5bbb-491b-a2ed-963ccaa16bf3' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-76a999b0-5bbb-491b-a2ed-963ccaa16bf3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1ec43d4f-6dc7-4eb6-84de-9c7557e53f0b' class='xr-var-data-in' type='checkbox'><label for='data-1ec43d4f-6dc7-4eb6-84de-9c7557e53f0b' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([0., 1., 2.])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-8b612d88-9544-45e1-9e96-23ce27a731e7' class='xr-section-summary-in' type='checkbox' checked><label for='section-8b612d88-9544-45e1-9e96-23ce27a731e7' 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'>(compX_final_current, runs, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(9, 3, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-015d97e9-10d7-4d01-aa79-e6d2c74febfd' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-015d97e9-10d7-4d01-aa79-e6d2c74febfd' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a2bbbe61-6371-4a62-bf52-775415f86eb2' class='xr-var-data-in' type='checkbox'><label for='data-a2bbbe61-6371-4a62-bf52-775415f86eb2' 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",
  994. " <tr>\n",
  995. " <td>\n",
  996. " <table style=\"border-collapse: collapse;\">\n",
  997. " <thead>\n",
  998. " <tr>\n",
  999. " <td> </td>\n",
  1000. " <th> Array </th>\n",
  1001. " <th> Chunk </th>\n",
  1002. " </tr>\n",
  1003. " </thead>\n",
  1004. " <tbody>\n",
  1005. " \n",
  1006. " <tr>\n",
  1007. " <th> Bytes </th>\n",
  1008. " <td> 145.02 MiB </td>\n",
  1009. " <td> 118.65 MiB </td>\n",
  1010. " </tr>\n",
  1011. " \n",
  1012. " <tr>\n",
  1013. " <th> Shape </th>\n",
  1014. " <td> (11, 3, 1200, 1920) </td>\n",
  1015. " <td> (9, 3, 1200, 1920) </td>\n",
  1016. " </tr>\n",
  1017. " <tr>\n",
  1018. " <th> Dask graph </th>\n",
  1019. " <td colspan=\"2\"> 2 chunks in 104 graph layers </td>\n",
  1020. " </tr>\n",
  1021. " <tr>\n",
  1022. " <th> Data type </th>\n",
  1023. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  1024. " </tr>\n",
  1025. " </tbody>\n",
  1026. " </table>\n",
  1027. " </td>\n",
  1028. " <td>\n",
  1029. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1030. "\n",
  1031. " <!-- Horizontal lines -->\n",
  1032. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1033. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1034. "\n",
  1035. " <!-- Vertical lines -->\n",
  1036. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1037. " <line x1=\"20\" y1=\"0\" x2=\"20\" y2=\"25\" />\n",
  1038. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1039. "\n",
  1040. " <!-- Colored Rectangle -->\n",
  1041. " <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",
  1042. "\n",
  1043. " <!-- Text -->\n",
  1044. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
  1045. " <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",
  1046. "\n",
  1047. "\n",
  1048. " <!-- Horizontal lines -->\n",
  1049. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1050. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1051. "\n",
  1052. " <!-- Vertical lines -->\n",
  1053. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1054. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1055. "\n",
  1056. " <!-- Colored Rectangle -->\n",
  1057. " <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",
  1058. "\n",
  1059. " <!-- Horizontal lines -->\n",
  1060. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1061. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1062. "\n",
  1063. " <!-- Vertical lines -->\n",
  1064. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1065. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1066. "\n",
  1067. " <!-- Colored Rectangle -->\n",
  1068. " <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",
  1069. "\n",
  1070. " <!-- Horizontal lines -->\n",
  1071. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1072. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1073. "\n",
  1074. " <!-- Vertical lines -->\n",
  1075. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1076. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1077. "\n",
  1078. " <!-- Colored Rectangle -->\n",
  1079. " <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",
  1080. "\n",
  1081. " <!-- Text -->\n",
  1082. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1083. " <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",
  1084. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">3</text>\n",
  1085. "</svg>\n",
  1086. " </td>\n",
  1087. " </tr>\n",
  1088. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>background</span></div><div class='xr-var-dims'>(compX_final_current, runs, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(9, 3, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-954ff9c0-e231-4b38-8d6e-63df2a5182ab' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-954ff9c0-e231-4b38-8d6e-63df2a5182ab' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9dc869fd-646d-4d81-b632-59b0b4e04db7' class='xr-var-data-in' type='checkbox'><label for='data-9dc869fd-646d-4d81-b632-59b0b4e04db7' 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",
  1089. " <tr>\n",
  1090. " <td>\n",
  1091. " <table style=\"border-collapse: collapse;\">\n",
  1092. " <thead>\n",
  1093. " <tr>\n",
  1094. " <td> </td>\n",
  1095. " <th> Array </th>\n",
  1096. " <th> Chunk </th>\n",
  1097. " </tr>\n",
  1098. " </thead>\n",
  1099. " <tbody>\n",
  1100. " \n",
  1101. " <tr>\n",
  1102. " <th> Bytes </th>\n",
  1103. " <td> 145.02 MiB </td>\n",
  1104. " <td> 118.65 MiB </td>\n",
  1105. " </tr>\n",
  1106. " \n",
  1107. " <tr>\n",
  1108. " <th> Shape </th>\n",
  1109. " <td> (11, 3, 1200, 1920) </td>\n",
  1110. " <td> (9, 3, 1200, 1920) </td>\n",
  1111. " </tr>\n",
  1112. " <tr>\n",
  1113. " <th> Dask graph </th>\n",
  1114. " <td colspan=\"2\"> 2 chunks in 104 graph layers </td>\n",
  1115. " </tr>\n",
  1116. " <tr>\n",
  1117. " <th> Data type </th>\n",
  1118. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  1119. " </tr>\n",
  1120. " </tbody>\n",
  1121. " </table>\n",
  1122. " </td>\n",
  1123. " <td>\n",
  1124. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1125. "\n",
  1126. " <!-- Horizontal lines -->\n",
  1127. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1128. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1129. "\n",
  1130. " <!-- Vertical lines -->\n",
  1131. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1132. " <line x1=\"20\" y1=\"0\" x2=\"20\" y2=\"25\" />\n",
  1133. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1134. "\n",
  1135. " <!-- Colored Rectangle -->\n",
  1136. " <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",
  1137. "\n",
  1138. " <!-- Text -->\n",
  1139. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
  1140. " <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",
  1141. "\n",
  1142. "\n",
  1143. " <!-- Horizontal lines -->\n",
  1144. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1145. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1146. "\n",
  1147. " <!-- Vertical lines -->\n",
  1148. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1149. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1150. "\n",
  1151. " <!-- Colored Rectangle -->\n",
  1152. " <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",
  1153. "\n",
  1154. " <!-- Horizontal lines -->\n",
  1155. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1156. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1157. "\n",
  1158. " <!-- Vertical lines -->\n",
  1159. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1160. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1161. "\n",
  1162. " <!-- Colored Rectangle -->\n",
  1163. " <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",
  1164. "\n",
  1165. " <!-- Horizontal lines -->\n",
  1166. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1167. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1168. "\n",
  1169. " <!-- Vertical lines -->\n",
  1170. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1171. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1172. "\n",
  1173. " <!-- Colored Rectangle -->\n",
  1174. " <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",
  1175. "\n",
  1176. " <!-- Text -->\n",
  1177. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1178. " <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",
  1179. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">3</text>\n",
  1180. "</svg>\n",
  1181. " </td>\n",
  1182. " </tr>\n",
  1183. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>dark</span></div><div class='xr-var-dims'>(compX_final_current, runs, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(9, 3, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-839ad618-2569-4bed-bc30-18ab5d4fd90c' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-839ad618-2569-4bed-bc30-18ab5d4fd90c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9189d425-3cf9-48f6-a97c-bb5ee2e200c0' class='xr-var-data-in' type='checkbox'><label for='data-9189d425-3cf9-48f6-a97c-bb5ee2e200c0' 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",
  1184. " <tr>\n",
  1185. " <td>\n",
  1186. " <table style=\"border-collapse: collapse;\">\n",
  1187. " <thead>\n",
  1188. " <tr>\n",
  1189. " <td> </td>\n",
  1190. " <th> Array </th>\n",
  1191. " <th> Chunk </th>\n",
  1192. " </tr>\n",
  1193. " </thead>\n",
  1194. " <tbody>\n",
  1195. " \n",
  1196. " <tr>\n",
  1197. " <th> Bytes </th>\n",
  1198. " <td> 145.02 MiB </td>\n",
  1199. " <td> 118.65 MiB </td>\n",
  1200. " </tr>\n",
  1201. " \n",
  1202. " <tr>\n",
  1203. " <th> Shape </th>\n",
  1204. " <td> (11, 3, 1200, 1920) </td>\n",
  1205. " <td> (9, 3, 1200, 1920) </td>\n",
  1206. " </tr>\n",
  1207. " <tr>\n",
  1208. " <th> Dask graph </th>\n",
  1209. " <td colspan=\"2\"> 2 chunks in 104 graph layers </td>\n",
  1210. " </tr>\n",
  1211. " <tr>\n",
  1212. " <th> Data type </th>\n",
  1213. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  1214. " </tr>\n",
  1215. " </tbody>\n",
  1216. " </table>\n",
  1217. " </td>\n",
  1218. " <td>\n",
  1219. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1220. "\n",
  1221. " <!-- Horizontal lines -->\n",
  1222. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1223. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1224. "\n",
  1225. " <!-- Vertical lines -->\n",
  1226. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1227. " <line x1=\"20\" y1=\"0\" x2=\"20\" y2=\"25\" />\n",
  1228. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1229. "\n",
  1230. " <!-- Colored Rectangle -->\n",
  1231. " <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",
  1232. "\n",
  1233. " <!-- Text -->\n",
  1234. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
  1235. " <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",
  1236. "\n",
  1237. "\n",
  1238. " <!-- Horizontal lines -->\n",
  1239. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1240. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1241. "\n",
  1242. " <!-- Vertical lines -->\n",
  1243. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1244. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1245. "\n",
  1246. " <!-- Colored Rectangle -->\n",
  1247. " <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",
  1248. "\n",
  1249. " <!-- Horizontal lines -->\n",
  1250. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1251. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1252. "\n",
  1253. " <!-- Vertical lines -->\n",
  1254. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1255. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1256. "\n",
  1257. " <!-- Colored Rectangle -->\n",
  1258. " <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",
  1259. "\n",
  1260. " <!-- Horizontal lines -->\n",
  1261. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1262. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1263. "\n",
  1264. " <!-- Vertical lines -->\n",
  1265. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1266. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1267. "\n",
  1268. " <!-- Colored Rectangle -->\n",
  1269. " <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",
  1270. "\n",
  1271. " <!-- Text -->\n",
  1272. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1273. " <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",
  1274. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">3</text>\n",
  1275. "</svg>\n",
  1276. " </td>\n",
  1277. " </tr>\n",
  1278. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>shotNum</span></div><div class='xr-var-dims'>(compX_final_current, runs)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(11, 3), meta=np.ndarray&gt;</div><input id='attrs-b2d8238b-9d6e-4a1f-998e-378072cf9fa4' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b2d8238b-9d6e-4a1f-998e-378072cf9fa4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e95756d5-d1a5-41ee-8e40-790050ac2bbb' class='xr-var-data-in' type='checkbox'><label for='data-e95756d5-d1a5-41ee-8e40-790050ac2bbb' 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",
  1279. " <tr>\n",
  1280. " <td>\n",
  1281. " <table style=\"border-collapse: collapse;\">\n",
  1282. " <thead>\n",
  1283. " <tr>\n",
  1284. " <td> </td>\n",
  1285. " <th> Array </th>\n",
  1286. " <th> Chunk </th>\n",
  1287. " </tr>\n",
  1288. " </thead>\n",
  1289. " <tbody>\n",
  1290. " \n",
  1291. " <tr>\n",
  1292. " <th> Bytes </th>\n",
  1293. " <td> 264 B </td>\n",
  1294. " <td> 264 B </td>\n",
  1295. " </tr>\n",
  1296. " \n",
  1297. " <tr>\n",
  1298. " <th> Shape </th>\n",
  1299. " <td> (11, 3) </td>\n",
  1300. " <td> (11, 3) </td>\n",
  1301. " </tr>\n",
  1302. " <tr>\n",
  1303. " <th> Dask graph </th>\n",
  1304. " <td colspan=\"2\"> 1 chunks in 1 graph layer </td>\n",
  1305. " </tr>\n",
  1306. " <tr>\n",
  1307. " <th> Data type </th>\n",
  1308. " <td colspan=\"2\"> int64 numpy.ndarray </td>\n",
  1309. " </tr>\n",
  1310. " </tbody>\n",
  1311. " </table>\n",
  1312. " </td>\n",
  1313. " <td>\n",
  1314. " <svg width=\"93\" height=\"170\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1315. "\n",
  1316. " <!-- Horizontal lines -->\n",
  1317. " <line x1=\"0\" y1=\"0\" x2=\"43\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1318. " <line x1=\"0\" y1=\"120\" x2=\"43\" y2=\"120\" style=\"stroke-width:2\" />\n",
  1319. "\n",
  1320. " <!-- Vertical lines -->\n",
  1321. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"120\" style=\"stroke-width:2\" />\n",
  1322. " <line x1=\"43\" y1=\"0\" x2=\"43\" y2=\"120\" style=\"stroke-width:2\" />\n",
  1323. "\n",
  1324. " <!-- Colored Rectangle -->\n",
  1325. " <polygon points=\"0.0,0.0 43.2160407718499,0.0 43.2160407718499,120.0 0.0,120.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1326. "\n",
  1327. " <!-- Text -->\n",
  1328. " <text x=\"21.608020\" y=\"140.000000\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >3</text>\n",
  1329. " <text x=\"63.216041\" y=\"60.000000\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,63.216041,60.000000)\">11</text>\n",
  1330. "</svg>\n",
  1331. " </td>\n",
  1332. " </tr>\n",
  1333. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>OD</span></div><div class='xr-var-dims'>(compX_final_current, runs, y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(9, 3, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-6d11709f-2a3b-4806-8207-95f9aca13d64' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-6d11709f-2a3b-4806-8207-95f9aca13d64' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-18ef2002-29c3-41da-82ac-b9175030a47f' class='xr-var-data-in' type='checkbox'><label for='data-18ef2002-29c3-41da-82ac-b9175030a47f' 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",
  1334. " <tr>\n",
  1335. " <td>\n",
  1336. " <table style=\"border-collapse: collapse;\">\n",
  1337. " <thead>\n",
  1338. " <tr>\n",
  1339. " <td> </td>\n",
  1340. " <th> Array </th>\n",
  1341. " <th> Chunk </th>\n",
  1342. " </tr>\n",
  1343. " </thead>\n",
  1344. " <tbody>\n",
  1345. " \n",
  1346. " <tr>\n",
  1347. " <th> Bytes </th>\n",
  1348. " <td> 580.08 MiB </td>\n",
  1349. " <td> 474.61 MiB </td>\n",
  1350. " </tr>\n",
  1351. " \n",
  1352. " <tr>\n",
  1353. " <th> Shape </th>\n",
  1354. " <td> (11, 3, 1200, 1920) </td>\n",
  1355. " <td> (9, 3, 1200, 1920) </td>\n",
  1356. " </tr>\n",
  1357. " <tr>\n",
  1358. " <th> Dask graph </th>\n",
  1359. " <td colspan=\"2\"> 2 chunks in 322 graph layers </td>\n",
  1360. " </tr>\n",
  1361. " <tr>\n",
  1362. " <th> Data type </th>\n",
  1363. " <td colspan=\"2\"> float64 numpy.ndarray </td>\n",
  1364. " </tr>\n",
  1365. " </tbody>\n",
  1366. " </table>\n",
  1367. " </td>\n",
  1368. " <td>\n",
  1369. " <svg width=\"374\" height=\"139\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1370. "\n",
  1371. " <!-- Horizontal lines -->\n",
  1372. " <line x1=\"0\" y1=\"0\" x2=\"25\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1373. " <line x1=\"0\" y1=\"25\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1374. "\n",
  1375. " <!-- Vertical lines -->\n",
  1376. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1377. " <line x1=\"20\" y1=\"0\" x2=\"20\" y2=\"25\" />\n",
  1378. " <line x1=\"25\" y1=\"0\" x2=\"25\" y2=\"25\" style=\"stroke-width:2\" />\n",
  1379. "\n",
  1380. " <!-- Colored Rectangle -->\n",
  1381. " <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",
  1382. "\n",
  1383. " <!-- Text -->\n",
  1384. " <text x=\"12.706308\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >11</text>\n",
  1385. " <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",
  1386. "\n",
  1387. "\n",
  1388. " <!-- Horizontal lines -->\n",
  1389. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1390. " <line x1=\"95\" y1=\"75\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1391. "\n",
  1392. " <!-- Vertical lines -->\n",
  1393. " <line x1=\"95\" y1=\"0\" x2=\"95\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1394. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1395. "\n",
  1396. " <!-- Colored Rectangle -->\n",
  1397. " <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",
  1398. "\n",
  1399. " <!-- Horizontal lines -->\n",
  1400. " <line x1=\"95\" y1=\"0\" x2=\"215\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1401. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1402. "\n",
  1403. " <!-- Vertical lines -->\n",
  1404. " <line x1=\"95\" y1=\"0\" x2=\"109\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1405. " <line x1=\"215\" y1=\"0\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1406. "\n",
  1407. " <!-- Colored Rectangle -->\n",
  1408. " <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",
  1409. "\n",
  1410. " <!-- Horizontal lines -->\n",
  1411. " <line x1=\"109\" y1=\"14\" x2=\"229\" y2=\"14\" style=\"stroke-width:2\" />\n",
  1412. " <line x1=\"109\" y1=\"89\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1413. "\n",
  1414. " <!-- Vertical lines -->\n",
  1415. " <line x1=\"109\" y1=\"14\" x2=\"109\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1416. " <line x1=\"229\" y1=\"14\" x2=\"229\" y2=\"89\" style=\"stroke-width:2\" />\n",
  1417. "\n",
  1418. " <!-- Colored Rectangle -->\n",
  1419. " <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",
  1420. "\n",
  1421. " <!-- Text -->\n",
  1422. " <text x=\"169.948598\" y=\"109.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1423. " <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",
  1424. " <text x=\"92.474299\" y=\"102.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,92.474299,102.474299)\">3</text>\n",
  1425. "</svg>\n",
  1426. " </td>\n",
  1427. " </tr>\n",
  1428. "</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-f83e9597-3f41-46b8-be21-bfea1b22c66e' class='xr-section-summary-in' type='checkbox' ><label for='section-f83e9597-3f41-46b8-be21-bfea1b22c66e' 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>compX_final_current</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-b6d9ee64-26eb-43a6-bcce-e1122b3c05e8' class='xr-index-data-in' type='checkbox'/><label for='index-b6d9ee64-26eb-43a6-bcce-e1122b3c05e8' 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, 0.002, 0.004, 0.006, 0.008, 0.01, 0.012, 0.014, 0.016,\n",
  1429. " 0.018, 0.02],\n",
  1430. " dtype=&#x27;float64&#x27;, name=&#x27;compX_final_current&#x27;))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>runs</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-198bcc1e-e61b-48a0-9c89-7b3b701a09d9' class='xr-index-data-in' type='checkbox'/><label for='index-198bcc1e-e61b-48a0-9c89-7b3b701a09d9' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([0.0, 1.0, 2.0], dtype=&#x27;float64&#x27;, name=&#x27;runs&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-89ed49f8-a628-419e-8f46-0021b08c4075' class='xr-section-summary-in' type='checkbox' ><label for='section-89ed49f8-a628-419e-8f46-0021b08c4075' class='xr-section-summary' >Attributes: <span>(120)</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.022</dd><dt><span>abs_img_freq :</span></dt><dd>110.858</dd><dt><span>absorption_imaging_flag :</span></dt><dd>True</dd><dt><span>backup_data :</span></dt><dd>True</dd><dt><span>blink_off_time :</span></dt><dd>0.001</dd><dt><span>blink_on_time :</span></dt><dd>0.001</dd><dt><span>c_duration :</span></dt><dd>0.2</dd><dt><span>carrier_amp :</span></dt><dd>3</dd><dt><span>carrier_freq :</span></dt><dd>0.85</dd><dt><span>carrier_offset :</span></dt><dd>0</dd><dt><span>carrier_phase :</span></dt><dd>0</dd><dt><span>channel_in_use :</span></dt><dd>1</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</dd><dt><span>compX_current_sg :</span></dt><dd>0.0</dd><dt><span>compX_initial_current :</span></dt><dd>0</dd><dt><span>compY_current :</span></dt><dd>0</dd><dt><span>compY_current_sg :</span></dt><dd>0.0</dd><dt><span>compY_final_current :</span></dt><dd>0</dd><dt><span>compY_initial_current :</span></dt><dd>0</dd><dt><span>compZ_current :</span></dt><dd>0</dd><dt><span>compZ_current_sg :</span></dt><dd>0.189</dd><dt><span>compZ_final_current :</span></dt><dd>0.264</dd><dt><span>compZ_initial_current :</span></dt><dd>0</dd><dt><span>default_camera :</span></dt><dd>0</dd><dt><span>deltaf :</span></dt><dd>0.161</dd><dt><span>evap_1_arm_1_final_pow :</span></dt><dd>0.35</dd><dt><span>evap_1_arm_1_mod_depth_final :</span></dt><dd>0</dd><dt><span>evap_1_arm_1_mod_depth_initial :</span></dt><dd>1.0</dd><dt><span>evap_1_arm_1_mod_ramp_duration :</span></dt><dd>1.15</dd><dt><span>evap_1_arm_1_pow_ramp_duration :</span></dt><dd>1.65</dd><dt><span>evap_1_arm_1_start_pow :</span></dt><dd>7</dd><dt><span>evap_1_arm_2_final_pow :</span></dt><dd>5</dd><dt><span>evap_1_arm_2_ramp_duration :</span></dt><dd>0.5</dd><dt><span>evap_1_arm_2_start_pow :</span></dt><dd>0</dd><dt><span>evap_1_mod_ramp_trunc_value :</span></dt><dd>1</dd><dt><span>evap_1_pow_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_1_rate_constant_1 :</span></dt><dd>0.525</dd><dt><span>evap_1_rate_constant_2 :</span></dt><dd>0.51</dd><dt><span>evap_2_arm_1_final_pow :</span></dt><dd>0.037</dd><dt><span>evap_2_arm_1_start_pow :</span></dt><dd>0.35</dd><dt><span>evap_2_arm_2_final_pow :</span></dt><dd>0.09</dd><dt><span>evap_2_arm_2_start_pow :</span></dt><dd>5</dd><dt><span>evap_2_ramp_duration :</span></dt><dd>1.0</dd><dt><span>evap_2_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_2_rate_constant_1 :</span></dt><dd>0.37</dd><dt><span>evap_2_rate_constant_2 :</span></dt><dd>0.71</dd><dt><span>evap_3_arm_1_final_pow :</span></dt><dd>0.1038</dd><dt><span>evap_3_arm_1_mod_depth_final :</span></dt><dd>0.43</dd><dt><span>evap_3_arm_1_mod_depth_initial :</span></dt><dd>0</dd><dt><span>evap_3_arm_1_start_pow :</span></dt><dd>0.037</dd><dt><span>evap_3_ramp_duration :</span></dt><dd>0.1</dd><dt><span>evap_3_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_3_rate_constant_1 :</sp
  1431. " 0.002 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 0.02 0. 0.002\n",
  1432. " 0.004 0.006 0.008 0.01 0.012 0.014 0.016 0.018 0.02 ]</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",
  1433. " 2. 2. 2. 2. 2. 2. 2. 2. 2.]</dd><dt><span>scanAxis :</span></dt><dd>[&#x27;compX_final_current&#x27; &#x27;runs&#x27;]</dd><dt><span>scanAxisLength :</span></dt><dd>[33. 33.]</dd></dl></div></li></ul></div></div>"
  1434. ],
  1435. "text/plain": [
  1436. "<xarray.Dataset>\n",
  1437. "Dimensions: (compX_final_current: 11, runs: 3, y: 1200, x: 1920)\n",
  1438. "Coordinates:\n",
  1439. " * compX_final_current (compX_final_current) float64 0.0 0.002 ... 0.018 0.02\n",
  1440. " * runs (runs) float64 0.0 1.0 2.0\n",
  1441. "Dimensions without coordinates: y, x\n",
  1442. "Data variables:\n",
  1443. " atoms (compX_final_current, runs, y, x) uint16 dask.array<chunksize=(9, 3, 1200, 1920), meta=np.ndarray>\n",
  1444. " background (compX_final_current, runs, y, x) uint16 dask.array<chunksize=(9, 3, 1200, 1920), meta=np.ndarray>\n",
  1445. " dark (compX_final_current, runs, y, x) uint16 dask.array<chunksize=(9, 3, 1200, 1920), meta=np.ndarray>\n",
  1446. " shotNum (compX_final_current, runs) int64 dask.array<chunksize=(11, 3), meta=np.ndarray>\n",
  1447. " OD (compX_final_current, runs, y, x) float64 dask.array<chunksize=(9, 3, 1200, 1920), meta=np.ndarray>\n",
  1448. "Attributes: (12/120)\n",
  1449. " TOF_free: 0.022\n",
  1450. " abs_img_freq: 110.858\n",
  1451. " absorption_imaging_flag: True\n",
  1452. " backup_data: True\n",
  1453. " blink_off_time: 0.001\n",
  1454. " blink_on_time: 0.001\n",
  1455. " ... ...\n",
  1456. " z_offset: 0.189\n",
  1457. " z_offset_img: 0.189\n",
  1458. " compX_final_current: [0. 0.002 0.004 0.006 0.008 0.01 0...\n",
  1459. " runs: [0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 1...\n",
  1460. " scanAxis: ['compX_final_current' 'runs']\n",
  1461. " scanAxisLength: [33. 33.]"
  1462. ]
  1463. },
  1464. "execution_count": 7,
  1465. "metadata": {},
  1466. "output_type": "execute_result"
  1467. }
  1468. ],
  1469. "source": [
  1470. "shotNum = \"0069\"\n",
  1471. "filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
  1472. "# filePath = \"//DyLabNAS/Data/Evaporative_Cooling/2023/05/12/0065/*.h5\"\n",
  1473. "filepath = './result_from_experiment/2023-04-24/0013/2023-04-24_0013_Evaporative_Cooling_10.h5'\n",
  1474. "\n",
  1475. "dataSetDict = {\n",
  1476. " dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i])\n",
  1477. " for i in [0] # range(len(groupList))\n",
  1478. "}\n",
  1479. "\n",
  1480. "dataSet = dataSetDict[\"camera_1\"]\n",
  1481. "dataSet = swap_xy(dataSet)\n",
  1482. "\n",
  1483. "scanAxis = get_scanAxis(dataSet)\n",
  1484. "\n",
  1485. "dataSet = auto_rechunk(dataSet)\n",
  1486. "\n",
  1487. "dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
  1488. "\n",
  1489. "dataSet"
  1490. ]
  1491. },
  1492. {
  1493. "attachments": {},
  1494. "cell_type": "markdown",
  1495. "metadata": {},
  1496. "source": [
  1497. "## Calculate an plot OD images"
  1498. ]
  1499. },
  1500. {
  1501. "cell_type": "code",
  1502. "execution_count": 8,
  1503. "metadata": {},
  1504. "outputs": [
  1505. {
  1506. "data": {
  1507. "image/png": "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
  1508. "text/plain": [
  1509. "<Figure size 3400x900 with 34 Axes>"
  1510. ]
  1511. },
  1512. "metadata": {},
  1513. "output_type": "display_data"
  1514. }
  1515. ],
  1516. "source": [
  1517. "imageAnalyser.center = (960, 1040)\n",
  1518. "imageAnalyser.span = (100, 100)\n",
  1519. "imageAnalyser.fraction = (0.1, 0.1)\n",
  1520. "\n",
  1521. "dataSet_cropOD = imageAnalyser.crop_image(dataSet.OD)\n",
  1522. "dataSet_cropOD = imageAnalyser.substract_offset(dataSet_cropOD).load()\n",
  1523. "\n",
  1524. "dataSet_cropOD.plot.pcolormesh(cmap='jet', vmin=0, col=scanAxis[0], row=scanAxis[1])\n",
  1525. "plt.show()"
  1526. ]
  1527. },
  1528. {
  1529. "attachments": {},
  1530. "cell_type": "markdown",
  1531. "metadata": {},
  1532. "source": [
  1533. "## Do a 2D two-peak gaussian fit to the OD images"
  1534. ]
  1535. },
  1536. {
  1537. "attachments": {},
  1538. "cell_type": "markdown",
  1539. "metadata": {},
  1540. "source": [
  1541. "### Do the fit"
  1542. ]
  1543. },
  1544. {
  1545. "cell_type": "code",
  1546. "execution_count": 9,
  1547. "metadata": {},
  1548. "outputs": [],
  1549. "source": [
  1550. "from Analyser.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, polylog2_2d\n",
  1551. "\n",
  1552. "fitModel = DensityProfileBEC2dModel()\n",
  1553. "# fitModel = ThomasFermi2dModel()\n",
  1554. "\n",
  1555. "fitAnalyser = FitAnalyser(fitModel, fitDim=2)\n",
  1556. "\n",
  1557. "# fitAnalyser = FitAnalyser(\"Gaussian-2D\", fitDim=2)\n",
  1558. "\n",
  1559. "dataSet_cropOD = dataSet_cropOD.chunk((1,1,100,100))\n",
  1560. "\n",
  1561. "params = fitAnalyser.guess(dataSet_cropOD, guess_kwargs=dict(pureBECThreshold=0.3), dask=\"parallelized\")\n",
  1562. "fitResult = fitAnalyser.fit(dataSet_cropOD, params).load()"
  1563. ]
  1564. },
  1565. {
  1566. "cell_type": "code",
  1567. "execution_count": 10,
  1568. "metadata": {},
  1569. "outputs": [
  1570. {
  1571. "name": "stderr",
  1572. "output_type": "stream",
  1573. "text": [
  1574. "f:\\Jianshun\\analyseScript\\Analyser\\FitAnalyser.py:84: RuntimeWarning: invalid value encountered in power\n",
  1575. " res = (1- ((x-centerx)/(sigmax))**2 - ((y-centery)/(sigmay))**2)**(3 / 2)\n"
  1576. ]
  1577. }
  1578. ],
  1579. "source": [
  1580. "fitCurve = fitAnalyser.eval(fitResult, x=np.arange(100), y=np.arange(100), dask=\"parallelized\").load()\n",
  1581. "\n",
  1582. "fitCurve.plot.pcolormesh(cmap='jet', vmin=0, col=scanAxis[0], row=scanAxis[1])"
  1583. ]
  1584. },
  1585. {
  1586. "cell_type": "code",
  1587. "execution_count": null,
  1588. "metadata": {},
  1589. "outputs": [],
  1590. "source": [
  1591. "fitModel2 = Polylog22dModel(prefix='thermal_')\n",
  1592. "fitAnalyser2 = FitAnalyser(fitModel2, fitDim=2)\n",
  1593. "fitCurve2 = fitAnalyser2.eval(fitResult, x=np.arange(200), y=np.arange(200), dask=\"parallelized\").load()\n",
  1594. "fitCurve2.sum(dim=['x', 'y'])"
  1595. ]
  1596. },
  1597. {
  1598. "cell_type": "code",
  1599. "execution_count": null,
  1600. "metadata": {},
  1601. "outputs": [],
  1602. "source": [
  1603. "value = fitAnalyser.get_fit_full_result(fitResult)"
  1604. ]
  1605. },
  1606. {
  1607. "cell_type": "code",
  1608. "execution_count": null,
  1609. "metadata": {},
  1610. "outputs": [],
  1611. "source": [
  1612. "value"
  1613. ]
  1614. },
  1615. {
  1616. "attachments": {},
  1617. "cell_type": "markdown",
  1618. "metadata": {},
  1619. "source": [
  1620. "# Get the Ncount"
  1621. ]
  1622. },
  1623. {
  1624. "cell_type": "code",
  1625. "execution_count": null,
  1626. "metadata": {},
  1627. "outputs": [],
  1628. "source": [
  1629. "Ncount = dataSet_crop.OD.sum(dim=(scanAxis[0], 'x', 'y'))"
  1630. ]
  1631. },
  1632. {
  1633. "cell_type": "code",
  1634. "execution_count": null,
  1635. "metadata": {},
  1636. "outputs": [],
  1637. "source": [
  1638. "Ncount.load()\n",
  1639. "\n",
  1640. "fig = plt.figure()\n",
  1641. "ax = fig.gca()\n",
  1642. "Ncount.plot(ax=ax)"
  1643. ]
  1644. },
  1645. {
  1646. "cell_type": "code",
  1647. "execution_count": null,
  1648. "metadata": {},
  1649. "outputs": [],
  1650. "source": [
  1651. "fitAnalyser = FitAnalyser(\"Lorentzian With Offset\")\n",
  1652. "params = fitAnalyser.guess(Ncount, x='runs', dask=\"parallelized\", guess_kwargs=dict(negative=True))"
  1653. ]
  1654. },
  1655. {
  1656. "cell_type": "code",
  1657. "execution_count": null,
  1658. "metadata": {},
  1659. "outputs": [],
  1660. "source": [
  1661. "fitResult = fitAnalyser.fit(Ncount, params, x='runs', dask=\"parallelized\")\n",
  1662. "fitCurve = fitAnalyser.eval(fitResult, x=np.arange(40), dask=\"parallelized\").load()"
  1663. ]
  1664. },
  1665. {
  1666. "cell_type": "code",
  1667. "execution_count": null,
  1668. "metadata": {},
  1669. "outputs": [],
  1670. "source": [
  1671. "fig = plt.figure()\n",
  1672. "ax = fig.gca()\n",
  1673. "plt.errorbar([1], [1], yerr=[1])"
  1674. ]
  1675. },
  1676. {
  1677. "cell_type": "code",
  1678. "execution_count": null,
  1679. "metadata": {},
  1680. "outputs": [],
  1681. "source": [
  1682. "fitCurve.plot.errorbar(yerr=fitCurve)"
  1683. ]
  1684. },
  1685. {
  1686. "cell_type": "code",
  1687. "execution_count": null,
  1688. "metadata": {},
  1689. "outputs": [],
  1690. "source": [
  1691. "np.ufunc(fitCurve)"
  1692. ]
  1693. },
  1694. {
  1695. "attachments": {},
  1696. "cell_type": "markdown",
  1697. "metadata": {},
  1698. "source": [
  1699. "# Read CSV"
  1700. ]
  1701. },
  1702. {
  1703. "cell_type": "code",
  1704. "execution_count": null,
  1705. "metadata": {},
  1706. "outputs": [],
  1707. "source": [
  1708. "# filePath = 'Z:/Dy_Lab/Data/Measurements/Experiments/DyBEC/BEC Stability Check/20230509-0007/*.csv'\n",
  1709. "\n",
  1710. "# filePath = np.sort(glob.glob(filePath))\n",
  1711. "\n",
  1712. "# read_csv_file(filePath, maxFileNum=5, csvEngine='pandas', csvKwargs=dict(header=[0,1], na_filter=False, index_col=0))\n",
  1713. "# read_csv_file(filePath, csvEngine='dask')"
  1714. ]
  1715. },
  1716. {
  1717. "cell_type": "code",
  1718. "execution_count": null,
  1719. "metadata": {},
  1720. "outputs": [],
  1721. "source": [
  1722. "filePath = 'Z:/Dy_Lab/Data/Measurements/Experiments/DyBEC/BEC Stability Check/20230509-0007/*.csv'\n",
  1723. "\n",
  1724. "filePath = np.sort(glob.glob(filePath))\n",
  1725. "\n",
  1726. "data = np.empty(filePath.shape,dtype=object)\n",
  1727. "\n",
  1728. "i = 0\n",
  1729. "for fp in filePath:\n",
  1730. " data_single = pd.read_csv(fp)\n",
  1731. " data_single = xr.Dataset.from_dataframe(data_single)\n",
  1732. " data_single = data_single.drop_isel(index=0)\n",
  1733. " # data_single = data_single.expand_dims(dim='runs')\n",
  1734. " data[i] = data_single\n",
  1735. " i = i + 1\n",
  1736. "\n",
  1737. "data = xr.concat(data, 'runs')\n",
  1738. "\n",
  1739. "data = data.assign_coords(dict(index=data.Time.isel(runs=0).astype(float))).rename(dict(index='time')).astype(float)"
  1740. ]
  1741. },
  1742. {
  1743. "cell_type": "code",
  1744. "execution_count": null,
  1745. "metadata": {},
  1746. "outputs": [],
  1747. "source": [
  1748. "data"
  1749. ]
  1750. },
  1751. {
  1752. "cell_type": "code",
  1753. "execution_count": null,
  1754. "metadata": {},
  1755. "outputs": [],
  1756. "source": [
  1757. "arm2_mean = data['Channel A'].mean(dim='runs')\n",
  1758. "arm2_std = data['Channel A'].std(dim='runs')"
  1759. ]
  1760. },
  1761. {
  1762. "cell_type": "code",
  1763. "execution_count": null,
  1764. "metadata": {},
  1765. "outputs": [],
  1766. "source": [
  1767. "arm2_mean.plot.errorbar(yerr=arm2_std, fmt='ob')"
  1768. ]
  1769. },
  1770. {
  1771. "cell_type": "code",
  1772. "execution_count": null,
  1773. "metadata": {},
  1774. "outputs": [],
  1775. "source": [
  1776. "arm2_std.plot.errorbar(fmt='ob')"
  1777. ]
  1778. },
  1779. {
  1780. "cell_type": "code",
  1781. "execution_count": null,
  1782. "metadata": {},
  1783. "outputs": [],
  1784. "source": [
  1785. "data['Channel A'].sel(time=4.55, method='nearest').plot.errorbar(fmt='ob')\n",
  1786. "\n",
  1787. "plt.ylim([0, 0.15])\n",
  1788. "plt.show()"
  1789. ]
  1790. },
  1791. {
  1792. "cell_type": "code",
  1793. "execution_count": null,
  1794. "metadata": {},
  1795. "outputs": [],
  1796. "source": []
  1797. },
  1798. {
  1799. "cell_type": "code",
  1800. "execution_count": null,
  1801. "metadata": {},
  1802. "outputs": [],
  1803. "source": []
  1804. },
  1805. {
  1806. "cell_type": "code",
  1807. "execution_count": null,
  1808. "metadata": {},
  1809. "outputs": [],
  1810. "source": []
  1811. },
  1812. {
  1813. "cell_type": "code",
  1814. "execution_count": null,
  1815. "metadata": {},
  1816. "outputs": [],
  1817. "source": []
  1818. },
  1819. {
  1820. "cell_type": "code",
  1821. "execution_count": null,
  1822. "metadata": {},
  1823. "outputs": [],
  1824. "source": []
  1825. }
  1826. ],
  1827. "metadata": {
  1828. "kernelspec": {
  1829. "display_name": "env",
  1830. "language": "python",
  1831. "name": "python3"
  1832. },
  1833. "language_info": {
  1834. "codemirror_mode": {
  1835. "name": "ipython",
  1836. "version": 3
  1837. },
  1838. "file_extension": ".py",
  1839. "mimetype": "text/x-python",
  1840. "name": "python",
  1841. "nbconvert_exporter": "python",
  1842. "pygments_lexer": "ipython3",
  1843. "version": "3.9.13"
  1844. },
  1845. "orig_nbformat": 4,
  1846. "vscode": {
  1847. "interpreter": {
  1848. "hash": "c05913ad4f24fdc6b2418069394dc5835b1981849b107c9ba6df693aafd66650"
  1849. }
  1850. }
  1851. },
  1852. "nbformat": 4,
  1853. "nbformat_minor": 2
  1854. }