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.

2094 lines
1.7 MiB

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.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, Polylog22dModel\n",
  40. "from Analyser.FFTAnalyser import fft, ifft, fft_nutou\n",
  41. "from ToolFunction.ToolFunction import *\n",
  42. "\n",
  43. "from ToolFunction.HomeMadeXarrayFunction import errorbar, dataarray_plot_errorbar\n",
  44. "xr.plot.dataarray_plot.errorbar = errorbar\n",
  45. "xr.plot.accessor.DataArrayPlotAccessor.errorbar = dataarray_plot_errorbar\n",
  46. "\n",
  47. "imageAnalyser = ImageAnalyser()"
  48. ]
  49. },
  50. {
  51. "attachments": {},
  52. "cell_type": "markdown",
  53. "metadata": {},
  54. "source": [
  55. "## Start a client for parallel computing"
  56. ]
  57. },
  58. {
  59. "cell_type": "code",
  60. "execution_count": 2,
  61. "metadata": {},
  62. "outputs": [
  63. {
  64. "data": {
  65. "text/html": [
  66. "<div>\n",
  67. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
  68. " <div style=\"margin-left: 48px;\">\n",
  69. " <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
  70. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-3951b95c-199b-11ee-a3f4-80e82ce2fa8e</p>\n",
  71. " <table style=\"width: 100%; text-align: left;\">\n",
  72. "\n",
  73. " <tr>\n",
  74. " \n",
  75. " <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
  76. " <td style=\"text-align: left;\"><strong>Cluster type:</strong> distributed.LocalCluster</td>\n",
  77. " \n",
  78. " </tr>\n",
  79. "\n",
  80. " \n",
  81. " <tr>\n",
  82. " <td style=\"text-align: left;\">\n",
  83. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  84. " </td>\n",
  85. " <td style=\"text-align: left;\"></td>\n",
  86. " </tr>\n",
  87. " \n",
  88. "\n",
  89. " </table>\n",
  90. "\n",
  91. " \n",
  92. "\n",
  93. " \n",
  94. " <details>\n",
  95. " <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
  96. " <div class=\"jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-output\">\n",
  97. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\">\n",
  98. " </div>\n",
  99. " <div style=\"margin-left: 48px;\">\n",
  100. " <h3 style=\"margin-bottom: 0px; margin-top: 0px;\">LocalCluster</h3>\n",
  101. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">5ab7f5f8</p>\n",
  102. " <table style=\"width: 100%; text-align: left;\">\n",
  103. " <tr>\n",
  104. " <td style=\"text-align: left;\">\n",
  105. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  106. " </td>\n",
  107. " <td style=\"text-align: left;\">\n",
  108. " <strong>Workers:</strong> 6\n",
  109. " </td>\n",
  110. " </tr>\n",
  111. " <tr>\n",
  112. " <td style=\"text-align: left;\">\n",
  113. " <strong>Total threads:</strong> 24\n",
  114. " </td>\n",
  115. " <td style=\"text-align: left;\">\n",
  116. " <strong>Total memory:</strong> 44.70 GiB\n",
  117. " </td>\n",
  118. " </tr>\n",
  119. " \n",
  120. " <tr>\n",
  121. " <td style=\"text-align: left;\"><strong>Status:</strong> running</td>\n",
  122. " <td style=\"text-align: left;\"><strong>Using processes:</strong> True</td>\n",
  123. "</tr>\n",
  124. "\n",
  125. " \n",
  126. " </table>\n",
  127. "\n",
  128. " <details>\n",
  129. " <summary style=\"margin-bottom: 20px;\">\n",
  130. " <h3 style=\"display: inline;\">Scheduler Info</h3>\n",
  131. " </summary>\n",
  132. "\n",
  133. " <div style=\"\">\n",
  134. " <div>\n",
  135. " <div style=\"width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;\"> </div>\n",
  136. " <div style=\"margin-left: 48px;\">\n",
  137. " <h3 style=\"margin-bottom: 0px;\">Scheduler</h3>\n",
  138. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-88282cc2-009d-4d17-9e26-16dbc72dfd02</p>\n",
  139. " <table style=\"width: 100%; text-align: left;\">\n",
  140. " <tr>\n",
  141. " <td style=\"text-align: left;\">\n",
  142. " <strong>Comm:</strong> tcp://127.0.0.1:61384\n",
  143. " </td>\n",
  144. " <td style=\"text-align: left;\">\n",
  145. " <strong>Workers:</strong> 6\n",
  146. " </td>\n",
  147. " </tr>\n",
  148. " <tr>\n",
  149. " <td style=\"text-align: left;\">\n",
  150. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  151. " </td>\n",
  152. " <td style=\"text-align: left;\">\n",
  153. " <strong>Total threads:</strong> 24\n",
  154. " </td>\n",
  155. " </tr>\n",
  156. " <tr>\n",
  157. " <td style=\"text-align: left;\">\n",
  158. " <strong>Started:</strong> Just now\n",
  159. " </td>\n",
  160. " <td style=\"text-align: left;\">\n",
  161. " <strong>Total memory:</strong> 44.70 GiB\n",
  162. " </td>\n",
  163. " </tr>\n",
  164. " </table>\n",
  165. " </div>\n",
  166. " </div>\n",
  167. "\n",
  168. " <details style=\"margin-left: 48px;\">\n",
  169. " <summary style=\"margin-bottom: 20px;\">\n",
  170. " <h3 style=\"display: inline;\">Workers</h3>\n",
  171. " </summary>\n",
  172. "\n",
  173. " \n",
  174. " <div style=\"margin-bottom: 20px;\">\n",
  175. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  176. " <div style=\"margin-left: 48px;\">\n",
  177. " <details>\n",
  178. " <summary>\n",
  179. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 0</h4>\n",
  180. " </summary>\n",
  181. " <table style=\"width: 100%; text-align: left;\">\n",
  182. " <tr>\n",
  183. " <td style=\"text-align: left;\">\n",
  184. " <strong>Comm: </strong> tcp://127.0.0.1:61428\n",
  185. " </td>\n",
  186. " <td style=\"text-align: left;\">\n",
  187. " <strong>Total threads: </strong> 4\n",
  188. " </td>\n",
  189. " </tr>\n",
  190. " <tr>\n",
  191. " <td style=\"text-align: left;\">\n",
  192. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:61429/status\" target=\"_blank\">http://127.0.0.1:61429/status</a>\n",
  193. " </td>\n",
  194. " <td style=\"text-align: left;\">\n",
  195. " <strong>Memory: </strong> 7.45 GiB\n",
  196. " </td>\n",
  197. " </tr>\n",
  198. " <tr>\n",
  199. " <td style=\"text-align: left;\">\n",
  200. " <strong>Nanny: </strong> tcp://127.0.0.1:61387\n",
  201. " </td>\n",
  202. " <td style=\"text-align: left;\"></td>\n",
  203. " </tr>\n",
  204. " <tr>\n",
  205. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  206. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-uqj3h8qd\n",
  207. " </td>\n",
  208. " </tr>\n",
  209. "\n",
  210. " \n",
  211. "\n",
  212. " \n",
  213. "\n",
  214. " </table>\n",
  215. " </details>\n",
  216. " </div>\n",
  217. " </div>\n",
  218. " \n",
  219. " <div style=\"margin-bottom: 20px;\">\n",
  220. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  221. " <div style=\"margin-left: 48px;\">\n",
  222. " <details>\n",
  223. " <summary>\n",
  224. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 1</h4>\n",
  225. " </summary>\n",
  226. " <table style=\"width: 100%; text-align: left;\">\n",
  227. " <tr>\n",
  228. " <td style=\"text-align: left;\">\n",
  229. " <strong>Comm: </strong> tcp://127.0.0.1:61419\n",
  230. " </td>\n",
  231. " <td style=\"text-align: left;\">\n",
  232. " <strong>Total threads: </strong> 4\n",
  233. " </td>\n",
  234. " </tr>\n",
  235. " <tr>\n",
  236. " <td style=\"text-align: left;\">\n",
  237. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:61421/status\" target=\"_blank\">http://127.0.0.1:61421/status</a>\n",
  238. " </td>\n",
  239. " <td style=\"text-align: left;\">\n",
  240. " <strong>Memory: </strong> 7.45 GiB\n",
  241. " </td>\n",
  242. " </tr>\n",
  243. " <tr>\n",
  244. " <td style=\"text-align: left;\">\n",
  245. " <strong>Nanny: </strong> tcp://127.0.0.1:61388\n",
  246. " </td>\n",
  247. " <td style=\"text-align: left;\"></td>\n",
  248. " </tr>\n",
  249. " <tr>\n",
  250. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  251. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-vzm9iito\n",
  252. " </td>\n",
  253. " </tr>\n",
  254. "\n",
  255. " \n",
  256. "\n",
  257. " \n",
  258. "\n",
  259. " </table>\n",
  260. " </details>\n",
  261. " </div>\n",
  262. " </div>\n",
  263. " \n",
  264. " <div style=\"margin-bottom: 20px;\">\n",
  265. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  266. " <div style=\"margin-left: 48px;\">\n",
  267. " <details>\n",
  268. " <summary>\n",
  269. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 2</h4>\n",
  270. " </summary>\n",
  271. " <table style=\"width: 100%; text-align: left;\">\n",
  272. " <tr>\n",
  273. " <td style=\"text-align: left;\">\n",
  274. " <strong>Comm: </strong> tcp://127.0.0.1:61420\n",
  275. " </td>\n",
  276. " <td style=\"text-align: left;\">\n",
  277. " <strong>Total threads: </strong> 4\n",
  278. " </td>\n",
  279. " </tr>\n",
  280. " <tr>\n",
  281. " <td style=\"text-align: left;\">\n",
  282. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:61423/status\" target=\"_blank\">http://127.0.0.1:61423/status</a>\n",
  283. " </td>\n",
  284. " <td style=\"text-align: left;\">\n",
  285. " <strong>Memory: </strong> 7.45 GiB\n",
  286. " </td>\n",
  287. " </tr>\n",
  288. " <tr>\n",
  289. " <td style=\"text-align: left;\">\n",
  290. " <strong>Nanny: </strong> tcp://127.0.0.1:61389\n",
  291. " </td>\n",
  292. " <td style=\"text-align: left;\"></td>\n",
  293. " </tr>\n",
  294. " <tr>\n",
  295. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  296. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-9xccpbw5\n",
  297. " </td>\n",
  298. " </tr>\n",
  299. "\n",
  300. " \n",
  301. "\n",
  302. " \n",
  303. "\n",
  304. " </table>\n",
  305. " </details>\n",
  306. " </div>\n",
  307. " </div>\n",
  308. " \n",
  309. " <div style=\"margin-bottom: 20px;\">\n",
  310. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  311. " <div style=\"margin-left: 48px;\">\n",
  312. " <details>\n",
  313. " <summary>\n",
  314. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 3</h4>\n",
  315. " </summary>\n",
  316. " <table style=\"width: 100%; text-align: left;\">\n",
  317. " <tr>\n",
  318. " <td style=\"text-align: left;\">\n",
  319. " <strong>Comm: </strong> tcp://127.0.0.1:61425\n",
  320. " </td>\n",
  321. " <td style=\"text-align: left;\">\n",
  322. " <strong>Total threads: </strong> 4\n",
  323. " </td>\n",
  324. " </tr>\n",
  325. " <tr>\n",
  326. " <td style=\"text-align: left;\">\n",
  327. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:61426/status\" target=\"_blank\">http://127.0.0.1:61426/status</a>\n",
  328. " </td>\n",
  329. " <td style=\"text-align: left;\">\n",
  330. " <strong>Memory: </strong> 7.45 GiB\n",
  331. " </td>\n",
  332. " </tr>\n",
  333. " <tr>\n",
  334. " <td style=\"text-align: left;\">\n",
  335. " <strong>Nanny: </strong> tcp://127.0.0.1:61390\n",
  336. " </td>\n",
  337. " <td style=\"text-align: left;\"></td>\n",
  338. " </tr>\n",
  339. " <tr>\n",
  340. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  341. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-m8eyzltj\n",
  342. " </td>\n",
  343. " </tr>\n",
  344. "\n",
  345. " \n",
  346. "\n",
  347. " \n",
  348. "\n",
  349. " </table>\n",
  350. " </details>\n",
  351. " </div>\n",
  352. " </div>\n",
  353. " \n",
  354. " <div style=\"margin-bottom: 20px;\">\n",
  355. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  356. " <div style=\"margin-left: 48px;\">\n",
  357. " <details>\n",
  358. " <summary>\n",
  359. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 4</h4>\n",
  360. " </summary>\n",
  361. " <table style=\"width: 100%; text-align: left;\">\n",
  362. " <tr>\n",
  363. " <td style=\"text-align: left;\">\n",
  364. " <strong>Comm: </strong> tcp://127.0.0.1:61416\n",
  365. " </td>\n",
  366. " <td style=\"text-align: left;\">\n",
  367. " <strong>Total threads: </strong> 4\n",
  368. " </td>\n",
  369. " </tr>\n",
  370. " <tr>\n",
  371. " <td style=\"text-align: left;\">\n",
  372. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:61417/status\" target=\"_blank\">http://127.0.0.1:61417/status</a>\n",
  373. " </td>\n",
  374. " <td style=\"text-align: left;\">\n",
  375. " <strong>Memory: </strong> 7.45 GiB\n",
  376. " </td>\n",
  377. " </tr>\n",
  378. " <tr>\n",
  379. " <td style=\"text-align: left;\">\n",
  380. " <strong>Nanny: </strong> tcp://127.0.0.1:61391\n",
  381. " </td>\n",
  382. " <td style=\"text-align: left;\"></td>\n",
  383. " </tr>\n",
  384. " <tr>\n",
  385. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  386. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-aun9_6pf\n",
  387. " </td>\n",
  388. " </tr>\n",
  389. "\n",
  390. " \n",
  391. "\n",
  392. " \n",
  393. "\n",
  394. " </table>\n",
  395. " </details>\n",
  396. " </div>\n",
  397. " </div>\n",
  398. " \n",
  399. " <div style=\"margin-bottom: 20px;\">\n",
  400. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  401. " <div style=\"margin-left: 48px;\">\n",
  402. " <details>\n",
  403. " <summary>\n",
  404. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 5</h4>\n",
  405. " </summary>\n",
  406. " <table style=\"width: 100%; text-align: left;\">\n",
  407. " <tr>\n",
  408. " <td style=\"text-align: left;\">\n",
  409. " <strong>Comm: </strong> tcp://127.0.0.1:61413\n",
  410. " </td>\n",
  411. " <td style=\"text-align: left;\">\n",
  412. " <strong>Total threads: </strong> 4\n",
  413. " </td>\n",
  414. " </tr>\n",
  415. " <tr>\n",
  416. " <td style=\"text-align: left;\">\n",
  417. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:61414/status\" target=\"_blank\">http://127.0.0.1:61414/status</a>\n",
  418. " </td>\n",
  419. " <td style=\"text-align: left;\">\n",
  420. " <strong>Memory: </strong> 7.45 GiB\n",
  421. " </td>\n",
  422. " </tr>\n",
  423. " <tr>\n",
  424. " <td style=\"text-align: left;\">\n",
  425. " <strong>Nanny: </strong> tcp://127.0.0.1:61392\n",
  426. " </td>\n",
  427. " <td style=\"text-align: left;\"></td>\n",
  428. " </tr>\n",
  429. " <tr>\n",
  430. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  431. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-led72bz4\n",
  432. " </td>\n",
  433. " </tr>\n",
  434. "\n",
  435. " \n",
  436. "\n",
  437. " \n",
  438. "\n",
  439. " </table>\n",
  440. " </details>\n",
  441. " </div>\n",
  442. " </div>\n",
  443. " \n",
  444. "\n",
  445. " </details>\n",
  446. "</div>\n",
  447. "\n",
  448. " </details>\n",
  449. " </div>\n",
  450. "</div>\n",
  451. " </details>\n",
  452. " \n",
  453. "\n",
  454. " </div>\n",
  455. "</div>"
  456. ],
  457. "text/plain": [
  458. "<Client: 'tcp://127.0.0.1:61384' processes=6 threads=24, memory=44.70 GiB>"
  459. ]
  460. },
  461. "execution_count": 2,
  462. "metadata": {},
  463. "output_type": "execute_result"
  464. }
  465. ],
  466. "source": [
  467. "from dask.distributed import Client\n",
  468. "client = Client(n_workers=6, threads_per_worker=4, processes=True, memory_limit='8GB')\n",
  469. "client"
  470. ]
  471. },
  472. {
  473. "attachments": {},
  474. "cell_type": "markdown",
  475. "metadata": {},
  476. "source": [
  477. "## Set global path for experiment"
  478. ]
  479. },
  480. {
  481. "cell_type": "code",
  482. "execution_count": 3,
  483. "metadata": {},
  484. "outputs": [],
  485. "source": [
  486. "groupList = [\n",
  487. " \"images/MOT_3D_Camera/in_situ_absorption\",\n",
  488. " \"images/ODT_1_Axis_Camera/in_situ_absorption\",\n",
  489. " \"images/ODT_2_Axis_Camera/in_situ_absorption\",\n",
  490. "]\n",
  491. "\n",
  492. "dskey = {\n",
  493. " \"images/MOT_3D_Camera/in_situ_absorption\": \"camera_0\",\n",
  494. " \"images/ODT_1_Axis_Camera/in_situ_absorption\": \"camera_1\",\n",
  495. " \"images/ODT_2_Axis_Camera/in_situ_absorption\": \"camera_2\",\n",
  496. "}\n"
  497. ]
  498. },
  499. {
  500. "cell_type": "code",
  501. "execution_count": 4,
  502. "metadata": {},
  503. "outputs": [],
  504. "source": [
  505. "img_dir = '//DyLabNAS/Data/'\n",
  506. "SequenceName = \"Evaporative_Cooling\" + \"/\"\n",
  507. "folderPath = img_dir + SequenceName + '2023/05/12'# get_date()"
  508. ]
  509. },
  510. {
  511. "cell_type": "code",
  512. "execution_count": 5,
  513. "metadata": {},
  514. "outputs": [
  515. {
  516. "data": {
  517. "text/html": [
  518. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  519. "<defs>\n",
  520. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  521. "<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",
  522. "<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",
  523. "<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",
  524. "</symbol>\n",
  525. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  526. "<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",
  527. "<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",
  528. "<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",
  529. "<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",
  530. "</symbol>\n",
  531. "</defs>\n",
  532. "</svg>\n",
  533. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  534. " *\n",
  535. " */\n",
  536. "\n",
  537. ":root {\n",
  538. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  539. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  540. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  541. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  542. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  543. " --xr-background-color: var(--jp-layout-color0, white);\n",
  544. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  545. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  546. "}\n",
  547. "\n",
  548. "html[theme=dark],\n",
  549. "body[data-theme=dark],\n",
  550. "body.vscode-dark {\n",
  551. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  552. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  553. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  554. " --xr-border-color: #1F1F1F;\n",
  555. " --xr-disabled-color: #515151;\n",
  556. " --xr-background-color: #111111;\n",
  557. " --xr-background-color-row-even: #111111;\n",
  558. " --xr-background-color-row-odd: #313131;\n",
  559. "}\n",
  560. "\n",
  561. ".xr-wrap {\n",
  562. " display: block !important;\n",
  563. " min-width: 300px;\n",
  564. " max-width: 700px;\n",
  565. "}\n",
  566. "\n",
  567. ".xr-text-repr-fallback {\n",
  568. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  569. " display: none;\n",
  570. "}\n",
  571. "\n",
  572. ".xr-header {\n",
  573. " padding-top: 6px;\n",
  574. " padding-bottom: 6px;\n",
  575. " margin-bottom: 4px;\n",
  576. " border-bottom: solid 1px var(--xr-border-color);\n",
  577. "}\n",
  578. "\n",
  579. ".xr-header > div,\n",
  580. ".xr-header > ul {\n",
  581. " display: inline;\n",
  582. " margin-top: 0;\n",
  583. " margin-bottom: 0;\n",
  584. "}\n",
  585. "\n",
  586. ".xr-obj-type,\n",
  587. ".xr-array-name {\n",
  588. " margin-left: 2px;\n",
  589. " margin-right: 10px;\n",
  590. "}\n",
  591. "\n",
  592. ".xr-obj-type {\n",
  593. " color: var(--xr-font-color2);\n",
  594. "}\n",
  595. "\n",
  596. ".xr-sections {\n",
  597. " padding-left: 0 !important;\n",
  598. " display: grid;\n",
  599. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  600. "}\n",
  601. "\n",
  602. ".xr-section-item {\n",
  603. " display: contents;\n",
  604. "}\n",
  605. "\n",
  606. ".xr-section-item input {\n",
  607. " display: none;\n",
  608. "}\n",
  609. "\n",
  610. ".xr-section-item input + label {\n",
  611. " color: var(--xr-disabled-color);\n",
  612. "}\n",
  613. "\n",
  614. ".xr-section-item input:enabled + label {\n",
  615. " cursor: pointer;\n",
  616. " color: var(--xr-font-color2);\n",
  617. "}\n",
  618. "\n",
  619. ".xr-section-item input:enabled + label:hover {\n",
  620. " color: var(--xr-font-color0);\n",
  621. "}\n",
  622. "\n",
  623. ".xr-section-summary {\n",
  624. " grid-column: 1;\n",
  625. " color: var(--xr-font-color2);\n",
  626. " font-weight: 500;\n",
  627. "}\n",
  628. "\n",
  629. ".xr-section-summary > span {\n",
  630. " display: inline-block;\n",
  631. " padding-left: 0.5em;\n",
  632. "}\n",
  633. "\n",
  634. ".xr-section-summary-in:disabled + label {\n",
  635. " color: var(--xr-font-color2);\n",
  636. "}\n",
  637. "\n",
  638. ".xr-section-summary-in + label:before {\n",
  639. " display: inline-block;\n",
  640. " content: 'â–º';\n",
  641. " font-size: 11px;\n",
  642. " width: 15px;\n",
  643. " text-align: center;\n",
  644. "}\n",
  645. "\n",
  646. ".xr-section-summary-in:disabled + label:before {\n",
  647. " color: var(--xr-disabled-color);\n",
  648. "}\n",
  649. "\n",
  650. ".xr-section-summary-in:checked + label:before {\n",
  651. " content: 'â–¼';\n",
  652. "}\n",
  653. "\n",
  654. ".xr-section-summary-in:checked + label > span {\n",
  655. " display: none;\n",
  656. "}\n",
  657. "\n",
  658. ".xr-section-summary,\n",
  659. ".xr-section-inline-details {\n",
  660. " padding-top: 4px;\n",
  661. " padding-bottom: 4px;\n",
  662. "}\n",
  663. "\n",
  664. ".xr-section-inline-details {\n",
  665. " grid-column: 2 / -1;\n",
  666. "}\n",
  667. "\n",
  668. ".xr-section-details {\n",
  669. " display: none;\n",
  670. " grid-column: 1 / -1;\n",
  671. " margin-bottom: 5px;\n",
  672. "}\n",
  673. "\n",
  674. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  675. " display: contents;\n",
  676. "}\n",
  677. "\n",
  678. ".xr-array-wrap {\n",
  679. " grid-column: 1 / -1;\n",
  680. " display: grid;\n",
  681. " grid-template-columns: 20px auto;\n",
  682. "}\n",
  683. "\n",
  684. ".xr-array-wrap > label {\n",
  685. " grid-column: 1;\n",
  686. " vertical-align: top;\n",
  687. "}\n",
  688. "\n",
  689. ".xr-preview {\n",
  690. " color: var(--xr-font-color3);\n",
  691. "}\n",
  692. "\n",
  693. ".xr-array-preview,\n",
  694. ".xr-array-data {\n",
  695. " padding: 0 5px !important;\n",
  696. " grid-column: 2;\n",
  697. "}\n",
  698. "\n",
  699. ".xr-array-data,\n",
  700. ".xr-array-in:checked ~ .xr-array-preview {\n",
  701. " display: none;\n",
  702. "}\n",
  703. "\n",
  704. ".xr-array-in:checked ~ .xr-array-data,\n",
  705. ".xr-array-preview {\n",
  706. " display: inline-block;\n",
  707. "}\n",
  708. "\n",
  709. ".xr-dim-list {\n",
  710. " display: inline-block !important;\n",
  711. " list-style: none;\n",
  712. " padding: 0 !important;\n",
  713. " margin: 0;\n",
  714. "}\n",
  715. "\n",
  716. ".xr-dim-list li {\n",
  717. " display: inline-block;\n",
  718. " padding: 0;\n",
  719. " margin: 0;\n",
  720. "}\n",
  721. "\n",
  722. ".xr-dim-list:before {\n",
  723. " content: '(';\n",
  724. "}\n",
  725. "\n",
  726. ".xr-dim-list:after {\n",
  727. " content: ')';\n",
  728. "}\n",
  729. "\n",
  730. ".xr-dim-list li:not(:last-child):after {\n",
  731. " content: ',';\n",
  732. " padding-right: 5px;\n",
  733. "}\n",
  734. "\n",
  735. ".xr-has-index {\n",
  736. " font-weight: bold;\n",
  737. "}\n",
  738. "\n",
  739. ".xr-var-list,\n",
  740. ".xr-var-item {\n",
  741. " display: contents;\n",
  742. "}\n",
  743. "\n",
  744. ".xr-var-item > div,\n",
  745. ".xr-var-item label,\n",
  746. ".xr-var-item > .xr-var-name span {\n",
  747. " background-color: var(--xr-background-color-row-even);\n",
  748. " margin-bottom: 0;\n",
  749. "}\n",
  750. "\n",
  751. ".xr-var-item > .xr-var-name:hover span {\n",
  752. " padding-right: 5px;\n",
  753. "}\n",
  754. "\n",
  755. ".xr-var-list > li:nth-child(odd) > div,\n",
  756. ".xr-var-list > li:nth-child(odd) > label,\n",
  757. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  758. " background-color: var(--xr-background-color-row-odd);\n",
  759. "}\n",
  760. "\n",
  761. ".xr-var-name {\n",
  762. " grid-column: 1;\n",
  763. "}\n",
  764. "\n",
  765. ".xr-var-dims {\n",
  766. " grid-column: 2;\n",
  767. "}\n",
  768. "\n",
  769. ".xr-var-dtype {\n",
  770. " grid-column: 3;\n",
  771. " text-align: right;\n",
  772. " color: var(--xr-font-color2);\n",
  773. "}\n",
  774. "\n",
  775. ".xr-var-preview {\n",
  776. " grid-column: 4;\n",
  777. "}\n",
  778. "\n",
  779. ".xr-index-preview {\n",
  780. " grid-column: 2 / 5;\n",
  781. " color: var(--xr-font-color2);\n",
  782. "}\n",
  783. "\n",
  784. ".xr-var-name,\n",
  785. ".xr-var-dims,\n",
  786. ".xr-var-dtype,\n",
  787. ".xr-preview,\n",
  788. ".xr-attrs dt {\n",
  789. " white-space: nowrap;\n",
  790. " overflow: hidden;\n",
  791. " text-overflow: ellipsis;\n",
  792. " padding-right: 10px;\n",
  793. "}\n",
  794. "\n",
  795. ".xr-var-name:hover,\n",
  796. ".xr-var-dims:hover,\n",
  797. ".xr-var-dtype:hover,\n",
  798. ".xr-attrs dt:hover {\n",
  799. " overflow: visible;\n",
  800. " width: auto;\n",
  801. " z-index: 1;\n",
  802. "}\n",
  803. "\n",
  804. ".xr-var-attrs,\n",
  805. ".xr-var-data,\n",
  806. ".xr-index-data {\n",
  807. " display: none;\n",
  808. " background-color: var(--xr-background-color) !important;\n",
  809. " padding-bottom: 5px !important;\n",
  810. "}\n",
  811. "\n",
  812. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  813. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  814. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  815. " display: block;\n",
  816. "}\n",
  817. "\n",
  818. ".xr-var-data > table {\n",
  819. " float: right;\n",
  820. "}\n",
  821. "\n",
  822. ".xr-var-name span,\n",
  823. ".xr-var-data,\n",
  824. ".xr-index-name div,\n",
  825. ".xr-index-data,\n",
  826. ".xr-attrs {\n",
  827. " padding-left: 25px !important;\n",
  828. "}\n",
  829. "\n",
  830. ".xr-attrs,\n",
  831. ".xr-var-attrs,\n",
  832. ".xr-var-data,\n",
  833. ".xr-index-data {\n",
  834. " grid-column: 1 / -1;\n",
  835. "}\n",
  836. "\n",
  837. "dl.xr-attrs {\n",
  838. " padding: 0;\n",
  839. " margin: 0;\n",
  840. " display: grid;\n",
  841. " grid-template-columns: 125px auto;\n",
  842. "}\n",
  843. "\n",
  844. ".xr-attrs dt,\n",
  845. ".xr-attrs dd {\n",
  846. " padding: 0;\n",
  847. " margin: 0;\n",
  848. " float: left;\n",
  849. " padding-right: 10px;\n",
  850. " width: auto;\n",
  851. "}\n",
  852. "\n",
  853. ".xr-attrs dt {\n",
  854. " font-weight: normal;\n",
  855. " grid-column: 1;\n",
  856. "}\n",
  857. "\n",
  858. ".xr-attrs dt:hover span {\n",
  859. " display: inline-block;\n",
  860. " background: var(--xr-background-color);\n",
  861. " padding-right: 10px;\n",
  862. "}\n",
  863. "\n",
  864. ".xr-attrs dd {\n",
  865. " grid-column: 2;\n",
  866. " white-space: pre-wrap;\n",
  867. " word-break: break-all;\n",
  868. "}\n",
  869. "\n",
  870. ".xr-icon-database,\n",
  871. ".xr-icon-file-text2,\n",
  872. ".xr-no-icon {\n",
  873. " display: inline-block;\n",
  874. " vertical-align: middle;\n",
  875. " width: 1em;\n",
  876. " height: 1.5em !important;\n",
  877. " stroke-width: 0;\n",
  878. " stroke: currentColor;\n",
  879. " fill: currentColor;\n",
  880. "}\n",
  881. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  882. "Dimensions: (sin_mod_freq: 37, y: 1200, x: 1920)\n",
  883. "Coordinates:\n",
  884. " * sin_mod_freq (sin_mod_freq) float64 65.0 66.0 67.0 ... 99.0 100.0 101.0\n",
  885. "Dimensions without coordinates: y, x\n",
  886. "Data variables:\n",
  887. " atoms (sin_mod_freq, y, x) uint16 dask.array&lt;chunksize=(29, 1200, 1920), meta=np.ndarray&gt;\n",
  888. " background (sin_mod_freq, y, x) uint16 dask.array&lt;chunksize=(29, 1200, 1920), meta=np.ndarray&gt;\n",
  889. " dark (sin_mod_freq, y, x) uint16 dask.array&lt;chunksize=(29, 1200, 1920), meta=np.ndarray&gt;\n",
  890. " shotNum (sin_mod_freq) &lt;U2 dask.array&lt;chunksize=(37,), meta=np.ndarray&gt;\n",
  891. " OD (sin_mod_freq, y, x) float64 dask.array&lt;chunksize=(29, 1200, 1920), meta=np.ndarray&gt;\n",
  892. "Attributes: (12/109)\n",
  893. " TOF_free: 0.01\n",
  894. " abs_img_freq: 110.858\n",
  895. " absorption_imaging_flag: True\n",
  896. " backup_data: True\n",
  897. " blink_off_time: 0.001\n",
  898. " blink_on_time: 0.001\n",
  899. " ... ...\n",
  900. " y_offset_img: 0\n",
  901. " z_offset: 0.189\n",
  902. " z_offset_img: 0.189\n",
  903. " sin_mod_freq: [ 65. 66. 67. 68. 69. 70. 71. 7...\n",
  904. " scanAxis: [&#x27;sin_mod_freq&#x27;]\n",
  905. " scanAxisLength: [37.]</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-e9e8209e-8ac6-4b77-9f1d-73edeb11ea6d' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-e9e8209e-8ac6-4b77-9f1d-73edeb11ea6d' 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'>sin_mod_freq</span>: 37</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-417885ee-6100-4a25-ac77-3188924f1706' class='xr-section-summary-in' type='checkbox' checked><label for='section-417885ee-6100-4a25-ac77-3188924f1706' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>sin_mod_freq</span></div><div class='xr-var-dims'>(sin_mod_freq)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>65.0 66.0 67.0 ... 99.0 100.0 101.0</div><input id='attrs-d1444090-98bc-4e52-b3e1-f72265109897' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d1444090-98bc-4e52-b3e1-f72265109897' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-55ca4ceb-6ab4-434c-b93f-f2da9a1091cc' class='xr-var-data-in' type='checkbox'><label for='data-55ca4ceb-6ab4-434c-b93f-f2da9a1091cc' 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([ 65., 66., 67., 68., 69., 70., 71., 72., 73., 74., 75., 76.,\n",
  906. " 77., 78., 79., 80., 81., 82., 83., 84., 85., 86., 87., 88.,\n",
  907. " 89., 90., 91., 92., 93., 94., 95., 96., 97., 98., 99., 100.,\n",
  908. " 101.])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-b8a760bd-af8b-48e6-b52e-fca5b647ef1c' class='xr-section-summary-in' type='checkbox' checked><label for='section-b8a760bd-af8b-48e6-b52e-fca5b647ef1c' 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'>(sin_mod_freq, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(29, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-9911f45b-c8d5-435e-9b25-0c5c0840948a' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-9911f45b-c8d5-435e-9b25-0c5c0840948a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-776f8147-9d5f-4979-8d77-e1633c65ae52' class='xr-var-data-in' type='checkbox'><label for='data-776f8147-9d5f-4979-8d77-e1633c65ae52' 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",
  909. " <tr>\n",
  910. " <td>\n",
  911. " <table style=\"border-collapse: collapse;\">\n",
  912. " <thead>\n",
  913. " <tr>\n",
  914. " <td> </td>\n",
  915. " <th> Array </th>\n",
  916. " <th> Chunk </th>\n",
  917. " </tr>\n",
  918. " </thead>\n",
  919. " <tbody>\n",
  920. " \n",
  921. " <tr>\n",
  922. " <th> Bytes </th>\n",
  923. " <td> 162.60 MiB </td>\n",
  924. " <td> 127.44 MiB </td>\n",
  925. " </tr>\n",
  926. " \n",
  927. " <tr>\n",
  928. " <th> Shape </th>\n",
  929. " <td> (37, 1200, 1920) </td>\n",
  930. " <td> (29, 1200, 1920) </td>\n",
  931. " </tr>\n",
  932. " <tr>\n",
  933. " <th> Dask graph </th>\n",
  934. " <td colspan=\"2\"> 2 chunks in 113 graph layers </td>\n",
  935. " </tr>\n",
  936. " <tr>\n",
  937. " <th> Data type </th>\n",
  938. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  939. " </tr>\n",
  940. " </tbody>\n",
  941. " </table>\n",
  942. " </td>\n",
  943. " <td>\n",
  944. " <svg width=\"196\" height=\"141\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  945. "\n",
  946. " <!-- Horizontal lines -->\n",
  947. " <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
  948. " <line x1=\"10\" y1=\"75\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  949. "\n",
  950. " <!-- Vertical lines -->\n",
  951. " <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"75\" style=\"stroke-width:2\" />\n",
  952. " <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"88\" />\n",
  953. " <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  954. "\n",
  955. " <!-- Colored Rectangle -->\n",
  956. " <polygon points=\"10.0,0.0 26.954332251750458,16.954332251750458 26.954332251750458,91.95433225175046 10.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  957. "\n",
  958. " <!-- Horizontal lines -->\n",
  959. " <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
  960. " <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
  961. " <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  962. "\n",
  963. " <!-- Vertical lines -->\n",
  964. " <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
  965. " <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  966. "\n",
  967. " <!-- Colored Rectangle -->\n",
  968. " <polygon points=\"10.0,0.0 130.0,0.0 146.95433225175046,16.954332251750458 26.954332251750458,16.954332251750458\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  969. "\n",
  970. " <!-- Horizontal lines -->\n",
  971. " <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  972. " <line x1=\"26\" y1=\"91\" x2=\"146\" y2=\"91\" style=\"stroke-width:2\" />\n",
  973. "\n",
  974. " <!-- Vertical lines -->\n",
  975. " <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  976. " <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"91\" style=\"stroke-width:2\" />\n",
  977. "\n",
  978. " <!-- Colored Rectangle -->\n",
  979. " <polygon points=\"26.954332251750458,16.954332251750458 146.95433225175046,16.954332251750458 146.95433225175046,91.95433225175046 26.954332251750458,91.95433225175046\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  980. "\n",
  981. " <!-- Text -->\n",
  982. " <text x=\"86.954332\" y=\"111.954332\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  983. " <text x=\"166.954332\" y=\"54.454332\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.954332,54.454332)\">1200</text>\n",
  984. " <text x=\"8.477166\" y=\"103.477166\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.477166,103.477166)\">37</text>\n",
  985. "</svg>\n",
  986. " </td>\n",
  987. " </tr>\n",
  988. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>background</span></div><div class='xr-var-dims'>(sin_mod_freq, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(29, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-c154fb06-a9e7-4d54-bc93-bf90465f7284' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-c154fb06-a9e7-4d54-bc93-bf90465f7284' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f0e9c8c7-6a18-48d7-a1ff-86d372b56fa3' class='xr-var-data-in' type='checkbox'><label for='data-f0e9c8c7-6a18-48d7-a1ff-86d372b56fa3' 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",
  989. " <tr>\n",
  990. " <td>\n",
  991. " <table style=\"border-collapse: collapse;\">\n",
  992. " <thead>\n",
  993. " <tr>\n",
  994. " <td> </td>\n",
  995. " <th> Array </th>\n",
  996. " <th> Chunk </th>\n",
  997. " </tr>\n",
  998. " </thead>\n",
  999. " <tbody>\n",
  1000. " \n",
  1001. " <tr>\n",
  1002. " <th> Bytes </th>\n",
  1003. " <td> 162.60 MiB </td>\n",
  1004. " <td> 127.44 MiB </td>\n",
  1005. " </tr>\n",
  1006. " \n",
  1007. " <tr>\n",
  1008. " <th> Shape </th>\n",
  1009. " <td> (37, 1200, 1920) </td>\n",
  1010. " <td> (29, 1200, 1920) </td>\n",
  1011. " </tr>\n",
  1012. " <tr>\n",
  1013. " <th> Dask graph </th>\n",
  1014. " <td colspan=\"2\"> 2 chunks in 113 graph layers </td>\n",
  1015. " </tr>\n",
  1016. " <tr>\n",
  1017. " <th> Data type </th>\n",
  1018. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  1019. " </tr>\n",
  1020. " </tbody>\n",
  1021. " </table>\n",
  1022. " </td>\n",
  1023. " <td>\n",
  1024. " <svg width=\"196\" height=\"141\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1025. "\n",
  1026. " <!-- Horizontal lines -->\n",
  1027. " <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1028. " <line x1=\"10\" y1=\"75\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1029. "\n",
  1030. " <!-- Vertical lines -->\n",
  1031. " <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1032. " <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"88\" />\n",
  1033. " <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1034. "\n",
  1035. " <!-- Colored Rectangle -->\n",
  1036. " <polygon points=\"10.0,0.0 26.954332251750458,16.954332251750458 26.954332251750458,91.95433225175046 10.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1037. "\n",
  1038. " <!-- Horizontal lines -->\n",
  1039. " <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1040. " <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
  1041. " <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1042. "\n",
  1043. " <!-- Vertical lines -->\n",
  1044. " <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1045. " <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1046. "\n",
  1047. " <!-- Colored Rectangle -->\n",
  1048. " <polygon points=\"10.0,0.0 130.0,0.0 146.95433225175046,16.954332251750458 26.954332251750458,16.954332251750458\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1049. "\n",
  1050. " <!-- Horizontal lines -->\n",
  1051. " <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1052. " <line x1=\"26\" y1=\"91\" x2=\"146\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1053. "\n",
  1054. " <!-- Vertical lines -->\n",
  1055. " <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1056. " <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1057. "\n",
  1058. " <!-- Colored Rectangle -->\n",
  1059. " <polygon points=\"26.954332251750458,16.954332251750458 146.95433225175046,16.954332251750458 146.95433225175046,91.95433225175046 26.954332251750458,91.95433225175046\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1060. "\n",
  1061. " <!-- Text -->\n",
  1062. " <text x=\"86.954332\" y=\"111.954332\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1063. " <text x=\"166.954332\" y=\"54.454332\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.954332,54.454332)\">1200</text>\n",
  1064. " <text x=\"8.477166\" y=\"103.477166\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.477166,103.477166)\">37</text>\n",
  1065. "</svg>\n",
  1066. " </td>\n",
  1067. " </tr>\n",
  1068. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>dark</span></div><div class='xr-var-dims'>(sin_mod_freq, y, x)</div><div class='xr-var-dtype'>uint16</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(29, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-4e20577d-5ca6-446c-8495-7308123c71e7' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-4e20577d-5ca6-446c-8495-7308123c71e7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6bc197f9-2081-472a-81c3-3fb2801df887' class='xr-var-data-in' type='checkbox'><label for='data-6bc197f9-2081-472a-81c3-3fb2801df887' 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",
  1069. " <tr>\n",
  1070. " <td>\n",
  1071. " <table style=\"border-collapse: collapse;\">\n",
  1072. " <thead>\n",
  1073. " <tr>\n",
  1074. " <td> </td>\n",
  1075. " <th> Array </th>\n",
  1076. " <th> Chunk </th>\n",
  1077. " </tr>\n",
  1078. " </thead>\n",
  1079. " <tbody>\n",
  1080. " \n",
  1081. " <tr>\n",
  1082. " <th> Bytes </th>\n",
  1083. " <td> 162.60 MiB </td>\n",
  1084. " <td> 127.44 MiB </td>\n",
  1085. " </tr>\n",
  1086. " \n",
  1087. " <tr>\n",
  1088. " <th> Shape </th>\n",
  1089. " <td> (37, 1200, 1920) </td>\n",
  1090. " <td> (29, 1200, 1920) </td>\n",
  1091. " </tr>\n",
  1092. " <tr>\n",
  1093. " <th> Dask graph </th>\n",
  1094. " <td colspan=\"2\"> 2 chunks in 113 graph layers </td>\n",
  1095. " </tr>\n",
  1096. " <tr>\n",
  1097. " <th> Data type </th>\n",
  1098. " <td colspan=\"2\"> uint16 numpy.ndarray </td>\n",
  1099. " </tr>\n",
  1100. " </tbody>\n",
  1101. " </table>\n",
  1102. " </td>\n",
  1103. " <td>\n",
  1104. " <svg width=\"196\" height=\"141\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1105. "\n",
  1106. " <!-- Horizontal lines -->\n",
  1107. " <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1108. " <line x1=\"10\" y1=\"75\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1109. "\n",
  1110. " <!-- Vertical lines -->\n",
  1111. " <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1112. " <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"88\" />\n",
  1113. " <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1114. "\n",
  1115. " <!-- Colored Rectangle -->\n",
  1116. " <polygon points=\"10.0,0.0 26.954332251750458,16.954332251750458 26.954332251750458,91.95433225175046 10.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1117. "\n",
  1118. " <!-- Horizontal lines -->\n",
  1119. " <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1120. " <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
  1121. " <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1122. "\n",
  1123. " <!-- Vertical lines -->\n",
  1124. " <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1125. " <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1126. "\n",
  1127. " <!-- Colored Rectangle -->\n",
  1128. " <polygon points=\"10.0,0.0 130.0,0.0 146.95433225175046,16.954332251750458 26.954332251750458,16.954332251750458\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1129. "\n",
  1130. " <!-- Horizontal lines -->\n",
  1131. " <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1132. " <line x1=\"26\" y1=\"91\" x2=\"146\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1133. "\n",
  1134. " <!-- Vertical lines -->\n",
  1135. " <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1136. " <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1137. "\n",
  1138. " <!-- Colored Rectangle -->\n",
  1139. " <polygon points=\"26.954332251750458,16.954332251750458 146.95433225175046,16.954332251750458 146.95433225175046,91.95433225175046 26.954332251750458,91.95433225175046\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1140. "\n",
  1141. " <!-- Text -->\n",
  1142. " <text x=\"86.954332\" y=\"111.954332\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1143. " <text x=\"166.954332\" y=\"54.454332\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.954332,54.454332)\">1200</text>\n",
  1144. " <text x=\"8.477166\" y=\"103.477166\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.477166,103.477166)\">37</text>\n",
  1145. "</svg>\n",
  1146. " </td>\n",
  1147. " </tr>\n",
  1148. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>shotNum</span></div><div class='xr-var-dims'>(sin_mod_freq)</div><div class='xr-var-dtype'>&lt;U2</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(37,), meta=np.ndarray&gt;</div><input id='attrs-c6cbff41-63d7-4214-a017-064a511f8ba6' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c6cbff41-63d7-4214-a017-064a511f8ba6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-86b931fe-e9c5-4d5c-893d-ec70ac96d8d3' class='xr-var-data-in' type='checkbox'><label for='data-86b931fe-e9c5-4d5c-893d-ec70ac96d8d3' 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",
  1149. " <tr>\n",
  1150. " <td>\n",
  1151. " <table style=\"border-collapse: collapse;\">\n",
  1152. " <thead>\n",
  1153. " <tr>\n",
  1154. " <td> </td>\n",
  1155. " <th> Array </th>\n",
  1156. " <th> Chunk </th>\n",
  1157. " </tr>\n",
  1158. " </thead>\n",
  1159. " <tbody>\n",
  1160. " \n",
  1161. " <tr>\n",
  1162. " <th> Bytes </th>\n",
  1163. " <td> 296 B </td>\n",
  1164. " <td> 296 B </td>\n",
  1165. " </tr>\n",
  1166. " \n",
  1167. " <tr>\n",
  1168. " <th> Shape </th>\n",
  1169. " <td> (37,) </td>\n",
  1170. " <td> (37,) </td>\n",
  1171. " </tr>\n",
  1172. " <tr>\n",
  1173. " <th> Dask graph </th>\n",
  1174. " <td colspan=\"2\"> 1 chunks in 1 graph layer </td>\n",
  1175. " </tr>\n",
  1176. " <tr>\n",
  1177. " <th> Data type </th>\n",
  1178. " <td colspan=\"2\"> <U2 numpy.ndarray </td>\n",
  1179. " </tr>\n",
  1180. " </tbody>\n",
  1181. " </table>\n",
  1182. " </td>\n",
  1183. " <td>\n",
  1184. " <svg width=\"170\" height=\"80\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1185. "\n",
  1186. " <!-- Horizontal lines -->\n",
  1187. " <line x1=\"0\" y1=\"0\" x2=\"120\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1188. " <line x1=\"0\" y1=\"30\" x2=\"120\" y2=\"30\" style=\"stroke-width:2\" />\n",
  1189. "\n",
  1190. " <!-- Vertical lines -->\n",
  1191. " <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"30\" style=\"stroke-width:2\" />\n",
  1192. " <line x1=\"120\" y1=\"0\" x2=\"120\" y2=\"30\" style=\"stroke-width:2\" />\n",
  1193. "\n",
  1194. " <!-- Colored Rectangle -->\n",
  1195. " <polygon points=\"0.0,0.0 120.0,0.0 120.0,30.769621904823087 0.0,30.769621904823087\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1196. "\n",
  1197. " <!-- Text -->\n",
  1198. " <text x=\"60.000000\" y=\"50.769622\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >37</text>\n",
  1199. " <text x=\"140.000000\" y=\"15.384811\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,140.000000,15.384811)\">1</text>\n",
  1200. "</svg>\n",
  1201. " </td>\n",
  1202. " </tr>\n",
  1203. "</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>OD</span></div><div class='xr-var-dims'>(sin_mod_freq, y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(29, 1200, 1920), meta=np.ndarray&gt;</div><input id='attrs-5f3479f7-3b42-4c65-ab5a-840978328d2a' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-5f3479f7-3b42-4c65-ab5a-840978328d2a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b41e5924-7c12-49d2-9150-bc059f217044' class='xr-var-data-in' type='checkbox'><label for='data-b41e5924-7c12-49d2-9150-bc059f217044' 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",
  1204. " <tr>\n",
  1205. " <td>\n",
  1206. " <table style=\"border-collapse: collapse;\">\n",
  1207. " <thead>\n",
  1208. " <tr>\n",
  1209. " <td> </td>\n",
  1210. " <th> Array </th>\n",
  1211. " <th> Chunk </th>\n",
  1212. " </tr>\n",
  1213. " </thead>\n",
  1214. " <tbody>\n",
  1215. " \n",
  1216. " <tr>\n",
  1217. " <th> Bytes </th>\n",
  1218. " <td> 650.39 MiB </td>\n",
  1219. " <td> 509.77 MiB </td>\n",
  1220. " </tr>\n",
  1221. " \n",
  1222. " <tr>\n",
  1223. " <th> Shape </th>\n",
  1224. " <td> (37, 1200, 1920) </td>\n",
  1225. " <td> (29, 1200, 1920) </td>\n",
  1226. " </tr>\n",
  1227. " <tr>\n",
  1228. " <th> Dask graph </th>\n",
  1229. " <td colspan=\"2\"> 2 chunks in 349 graph layers </td>\n",
  1230. " </tr>\n",
  1231. " <tr>\n",
  1232. " <th> Data type </th>\n",
  1233. " <td colspan=\"2\"> float64 numpy.ndarray </td>\n",
  1234. " </tr>\n",
  1235. " </tbody>\n",
  1236. " </table>\n",
  1237. " </td>\n",
  1238. " <td>\n",
  1239. " <svg width=\"196\" height=\"141\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
  1240. "\n",
  1241. " <!-- Horizontal lines -->\n",
  1242. " <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1243. " <line x1=\"10\" y1=\"75\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1244. "\n",
  1245. " <!-- Vertical lines -->\n",
  1246. " <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"75\" style=\"stroke-width:2\" />\n",
  1247. " <line x1=\"23\" y1=\"13\" x2=\"23\" y2=\"88\" />\n",
  1248. " <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1249. "\n",
  1250. " <!-- Colored Rectangle -->\n",
  1251. " <polygon points=\"10.0,0.0 26.954332251750458,16.954332251750458 26.954332251750458,91.95433225175046 10.0,75.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1252. "\n",
  1253. " <!-- Horizontal lines -->\n",
  1254. " <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
  1255. " <line x1=\"23\" y1=\"13\" x2=\"143\" y2=\"13\" />\n",
  1256. " <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1257. "\n",
  1258. " <!-- Vertical lines -->\n",
  1259. " <line x1=\"10\" y1=\"0\" x2=\"26\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1260. " <line x1=\"130\" y1=\"0\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1261. "\n",
  1262. " <!-- Colored Rectangle -->\n",
  1263. " <polygon points=\"10.0,0.0 130.0,0.0 146.95433225175046,16.954332251750458 26.954332251750458,16.954332251750458\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1264. "\n",
  1265. " <!-- Horizontal lines -->\n",
  1266. " <line x1=\"26\" y1=\"16\" x2=\"146\" y2=\"16\" style=\"stroke-width:2\" />\n",
  1267. " <line x1=\"26\" y1=\"91\" x2=\"146\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1268. "\n",
  1269. " <!-- Vertical lines -->\n",
  1270. " <line x1=\"26\" y1=\"16\" x2=\"26\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1271. " <line x1=\"146\" y1=\"16\" x2=\"146\" y2=\"91\" style=\"stroke-width:2\" />\n",
  1272. "\n",
  1273. " <!-- Colored Rectangle -->\n",
  1274. " <polygon points=\"26.954332251750458,16.954332251750458 146.95433225175046,16.954332251750458 146.95433225175046,91.95433225175046 26.954332251750458,91.95433225175046\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
  1275. "\n",
  1276. " <!-- Text -->\n",
  1277. " <text x=\"86.954332\" y=\"111.954332\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1920</text>\n",
  1278. " <text x=\"166.954332\" y=\"54.454332\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,166.954332,54.454332)\">1200</text>\n",
  1279. " <text x=\"8.477166\" y=\"103.477166\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,8.477166,103.477166)\">37</text>\n",
  1280. "</svg>\n",
  1281. " </td>\n",
  1282. " </tr>\n",
  1283. "</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-99883402-0d89-40d5-897d-46773993331e' class='xr-section-summary-in' type='checkbox' ><label for='section-99883402-0d89-40d5-897d-46773993331e' class='xr-section-summary' >Indexes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>sin_mod_freq</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-8724f3f5-f544-4ef1-8303-5dc158ba0f0d' class='xr-index-data-in' type='checkbox'/><label for='index-8724f3f5-f544-4ef1-8303-5dc158ba0f0d' 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([ 65.0, 66.0, 67.0, 68.0, 69.0, 70.0, 71.0, 72.0, 73.0,\n",
  1284. " 74.0, 75.0, 76.0, 77.0, 78.0, 79.0, 80.0, 81.0, 82.0,\n",
  1285. " 83.0, 84.0, 85.0, 86.0, 87.0, 88.0, 89.0, 90.0, 91.0,\n",
  1286. " 92.0, 93.0, 94.0, 95.0, 96.0, 97.0, 98.0, 99.0, 100.0,\n",
  1287. " 101.0],\n",
  1288. " dtype=&#x27;float64&#x27;, name=&#x27;sin_mod_freq&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-5816d034-00b7-4d1f-97fe-6ca868b9a7d3' class='xr-section-summary-in' type='checkbox' ><label for='section-5816d034-00b7-4d1f-97fe-6ca868b9a7d3' class='xr-section-summary' >Attributes: <span>(109)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>TOF_free :</span></dt><dd>0.01</dd><dt><span>abs_img_freq :</span></dt><dd>110.858</dd><dt><span>absorption_imaging_flag :</span></dt><dd>True</dd><dt><span>backup_data :</span></dt><dd>True</dd><dt><span>blink_off_time :</span></dt><dd>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>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.005</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.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.271</dd><dt><span>compZ_initial_current :</span></dt><dd>0</dd><dt><span>default_camera :</span></dt><dd>0</dd><dt><span>evap_1_arm_1_final_pow :</span></dt><dd>0.35</dd><dt><span>evap_1_arm_1_mod_depth_final :</span></dt><dd>0</dd><dt><span>evap_1_arm_1_mod_depth_initial :</span></dt><dd>1.0</dd><dt><span>evap_1_arm_1_mod_ramp_duration :</span></dt><dd>1.15</dd><dt><span>evap_1_arm_1_pow_ramp_duration :</span></dt><dd>1.65</dd><dt><span>evap_1_arm_1_start_pow :</span></dt><dd>7</dd><dt><span>evap_1_arm_2_final_pow :</span></dt><dd>5</dd><dt><span>evap_1_arm_2_ramp_duration :</span></dt><dd>0.5</dd><dt><span>evap_1_arm_2_start_pow :</span></dt><dd>0</dd><dt><span>evap_1_mod_ramp_trunc_value :</span></dt><dd>1</dd><dt><span>evap_1_pow_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_1_rate_constant_1 :</span></dt><dd>0.525</dd><dt><span>evap_1_rate_constant_2 :</span></dt><dd>0.51</dd><dt><span>evap_2_arm_1_final_pow :</span></dt><dd>0.1</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>1.71</dd><dt><span>evap_2_arm_2_start_pow :</span></dt><dd>5</dd><dt><span>evap_2_ramp_duration :</span></dt><dd>0.5</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.1</dd><dt><span>evap_3_ramp_duration :</span></dt><dd>0.1</dd><dt><span>evap_3_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_3_rate_constant_1 :</span></dt><dd>-0.879</dd><dt><span>evap_3_rate_constant_2 :</span></dt><dd>-0.297</dd><dt><span>final_amp :</span></dt><dd>0.0001</dd><dt><span>final_freq :</span></dt><dd>104.0</dd><dt><span>final_pow_1 :</span></dt><dd>0.1038</dd><dt><span>final_pow_2 :</span></dt><dd>1.71</dd><dt><span>gradCoil_current :</span></dt><dd>0.18</dd><dt><span>gradCoil_current_sg :</span></dt><dd>0</dd><dt><span>imaging_method :</span></dt><dd>in_situ_absorption</dd><dt><span>imaging_pulse_duration :</span></dt><dd>2.5e-05</dd><dt><span>imaging_wavelength :</span></dt><dd>4.21291e-07</dd><dt><span>initial_amp :</span></dt><dd>0.62</dd><dt><span>initial_freq :</span></dt><dd>102.13</dd><dt><span>mod_depth_fin :</span></dt><dd>0.43</dd><dt><span>mod_depth_ini :</span></dt><dd>0</dd><d
  1289. " 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92.\n",
  1290. " 93. 94. 95. 96. 97. 98. 99. 100. 101.]</dd><dt><span>scanAxis :</span></dt><dd>[&#x27;sin_mod_freq&#x27;]</dd><dt><span>scanAxisLength :</span></dt><dd>[37.]</dd></dl></div></li></ul></div></div>"
  1291. ],
  1292. "text/plain": [
  1293. "<xarray.Dataset>\n",
  1294. "Dimensions: (sin_mod_freq: 37, y: 1200, x: 1920)\n",
  1295. "Coordinates:\n",
  1296. " * sin_mod_freq (sin_mod_freq) float64 65.0 66.0 67.0 ... 99.0 100.0 101.0\n",
  1297. "Dimensions without coordinates: y, x\n",
  1298. "Data variables:\n",
  1299. " atoms (sin_mod_freq, y, x) uint16 dask.array<chunksize=(29, 1200, 1920), meta=np.ndarray>\n",
  1300. " background (sin_mod_freq, y, x) uint16 dask.array<chunksize=(29, 1200, 1920), meta=np.ndarray>\n",
  1301. " dark (sin_mod_freq, y, x) uint16 dask.array<chunksize=(29, 1200, 1920), meta=np.ndarray>\n",
  1302. " shotNum (sin_mod_freq) <U2 dask.array<chunksize=(37,), meta=np.ndarray>\n",
  1303. " OD (sin_mod_freq, y, x) float64 dask.array<chunksize=(29, 1200, 1920), meta=np.ndarray>\n",
  1304. "Attributes: (12/109)\n",
  1305. " TOF_free: 0.01\n",
  1306. " abs_img_freq: 110.858\n",
  1307. " absorption_imaging_flag: True\n",
  1308. " backup_data: True\n",
  1309. " blink_off_time: 0.001\n",
  1310. " blink_on_time: 0.001\n",
  1311. " ... ...\n",
  1312. " y_offset_img: 0\n",
  1313. " z_offset: 0.189\n",
  1314. " z_offset_img: 0.189\n",
  1315. " sin_mod_freq: [ 65. 66. 67. 68. 69. 70. 71. 7...\n",
  1316. " scanAxis: ['sin_mod_freq']\n",
  1317. " scanAxisLength: [37.]"
  1318. ]
  1319. },
  1320. "execution_count": 5,
  1321. "metadata": {},
  1322. "output_type": "execute_result"
  1323. }
  1324. ],
  1325. "source": [
  1326. "shotNum = \"0065\"\n",
  1327. "filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
  1328. "\n",
  1329. "# load the data from HDF5 files\n",
  1330. "dataSetDict = {\n",
  1331. " dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i])\n",
  1332. " for i in [0] # range(len(groupList))\n",
  1333. "}\n",
  1334. "\n",
  1335. "# selecte the data for centain camera\n",
  1336. "dataSet = dataSetDict[\"camera_0\"]\n",
  1337. "# flip the x and y axis\n",
  1338. "dataSet = swap_xy(dataSet)\n",
  1339. "\n",
  1340. "# get the scan axis name of the shot\n",
  1341. "scanAxis = get_scanAxis(dataSet)\n",
  1342. "\n",
  1343. "# rechunck the data for parallel computing\n",
  1344. "dataSet = auto_rechunk(dataSet)\n",
  1345. "\n",
  1346. "# calculate the absorption imaging\n",
  1347. "dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
  1348. "\n",
  1349. "dataSet\n",
  1350. "\n",
  1351. "OD = dataSet[\"OD\"]\n",
  1352. "\n",
  1353. "OD_np = OD.to_numpy()\n",
  1354. "\n",
  1355. "dataSet"
  1356. ]
  1357. },
  1358. {
  1359. "cell_type": "code",
  1360. "execution_count": 17,
  1361. "metadata": {},
  1362. "outputs": [
  1363. {
  1364. "data": {
  1365. "image/png": "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
  1366. "text/plain": [
  1367. "<Figure size 11200x300 with 38 Axes>"
  1368. ]
  1369. },
  1370. "metadata": {},
  1371. "output_type": "display_data"
  1372. }
  1373. ],
  1374. "source": [
  1375. "imageAnalyser.center = (950, 250)\n",
  1376. "imageAnalyser.span = (300, 300)\n",
  1377. "imageAnalyser.fraction = (0.1, 0.1)\n",
  1378. "\n",
  1379. "dataSet_cropOD = imageAnalyser.crop_image(dataSet.OD)\n",
  1380. "dataSet_cropOD = imageAnalyser.substract_offset(dataSet_cropOD).load()\n",
  1381. "\n",
  1382. "dataSet_cropOD.plot.pcolormesh(cmap='jet', vmin=0, col=scanAxis[0], row=scanAxis[1])\n",
  1383. "plt.show()"
  1384. ]
  1385. },
  1386. {
  1387. "cell_type": "code",
  1388. "execution_count": 18,
  1389. "metadata": {},
  1390. "outputs": [
  1391. {
  1392. "data": {
  1393. "text/html": [
  1394. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  1395. "<defs>\n",
  1396. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  1397. "<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",
  1398. "<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",
  1399. "<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",
  1400. "</symbol>\n",
  1401. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  1402. "<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",
  1403. "<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",
  1404. "<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",
  1405. "<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",
  1406. "</symbol>\n",
  1407. "</defs>\n",
  1408. "</svg>\n",
  1409. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  1410. " *\n",
  1411. " */\n",
  1412. "\n",
  1413. ":root {\n",
  1414. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  1415. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  1416. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  1417. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  1418. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  1419. " --xr-background-color: var(--jp-layout-color0, white);\n",
  1420. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  1421. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  1422. "}\n",
  1423. "\n",
  1424. "html[theme=dark],\n",
  1425. "body[data-theme=dark],\n",
  1426. "body.vscode-dark {\n",
  1427. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  1428. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  1429. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  1430. " --xr-border-color: #1F1F1F;\n",
  1431. " --xr-disabled-color: #515151;\n",
  1432. " --xr-background-color: #111111;\n",
  1433. " --xr-background-color-row-even: #111111;\n",
  1434. " --xr-background-color-row-odd: #313131;\n",
  1435. "}\n",
  1436. "\n",
  1437. ".xr-wrap {\n",
  1438. " display: block !important;\n",
  1439. " min-width: 300px;\n",
  1440. " max-width: 700px;\n",
  1441. "}\n",
  1442. "\n",
  1443. ".xr-text-repr-fallback {\n",
  1444. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  1445. " display: none;\n",
  1446. "}\n",
  1447. "\n",
  1448. ".xr-header {\n",
  1449. " padding-top: 6px;\n",
  1450. " padding-bottom: 6px;\n",
  1451. " margin-bottom: 4px;\n",
  1452. " border-bottom: solid 1px var(--xr-border-color);\n",
  1453. "}\n",
  1454. "\n",
  1455. ".xr-header > div,\n",
  1456. ".xr-header > ul {\n",
  1457. " display: inline;\n",
  1458. " margin-top: 0;\n",
  1459. " margin-bottom: 0;\n",
  1460. "}\n",
  1461. "\n",
  1462. ".xr-obj-type,\n",
  1463. ".xr-array-name {\n",
  1464. " margin-left: 2px;\n",
  1465. " margin-right: 10px;\n",
  1466. "}\n",
  1467. "\n",
  1468. ".xr-obj-type {\n",
  1469. " color: var(--xr-font-color2);\n",
  1470. "}\n",
  1471. "\n",
  1472. ".xr-sections {\n",
  1473. " padding-left: 0 !important;\n",
  1474. " display: grid;\n",
  1475. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  1476. "}\n",
  1477. "\n",
  1478. ".xr-section-item {\n",
  1479. " display: contents;\n",
  1480. "}\n",
  1481. "\n",
  1482. ".xr-section-item input {\n",
  1483. " display: none;\n",
  1484. "}\n",
  1485. "\n",
  1486. ".xr-section-item input + label {\n",
  1487. " color: var(--xr-disabled-color);\n",
  1488. "}\n",
  1489. "\n",
  1490. ".xr-section-item input:enabled + label {\n",
  1491. " cursor: pointer;\n",
  1492. " color: var(--xr-font-color2);\n",
  1493. "}\n",
  1494. "\n",
  1495. ".xr-section-item input:enabled + label:hover {\n",
  1496. " color: var(--xr-font-color0);\n",
  1497. "}\n",
  1498. "\n",
  1499. ".xr-section-summary {\n",
  1500. " grid-column: 1;\n",
  1501. " color: var(--xr-font-color2);\n",
  1502. " font-weight: 500;\n",
  1503. "}\n",
  1504. "\n",
  1505. ".xr-section-summary > span {\n",
  1506. " display: inline-block;\n",
  1507. " padding-left: 0.5em;\n",
  1508. "}\n",
  1509. "\n",
  1510. ".xr-section-summary-in:disabled + label {\n",
  1511. " color: var(--xr-font-color2);\n",
  1512. "}\n",
  1513. "\n",
  1514. ".xr-section-summary-in + label:before {\n",
  1515. " display: inline-block;\n",
  1516. " content: 'â–º';\n",
  1517. " font-size: 11px;\n",
  1518. " width: 15px;\n",
  1519. " text-align: center;\n",
  1520. "}\n",
  1521. "\n",
  1522. ".xr-section-summary-in:disabled + label:before {\n",
  1523. " color: var(--xr-disabled-color);\n",
  1524. "}\n",
  1525. "\n",
  1526. ".xr-section-summary-in:checked + label:before {\n",
  1527. " content: 'â–¼';\n",
  1528. "}\n",
  1529. "\n",
  1530. ".xr-section-summary-in:checked + label > span {\n",
  1531. " display: none;\n",
  1532. "}\n",
  1533. "\n",
  1534. ".xr-section-summary,\n",
  1535. ".xr-section-inline-details {\n",
  1536. " padding-top: 4px;\n",
  1537. " padding-bottom: 4px;\n",
  1538. "}\n",
  1539. "\n",
  1540. ".xr-section-inline-details {\n",
  1541. " grid-column: 2 / -1;\n",
  1542. "}\n",
  1543. "\n",
  1544. ".xr-section-details {\n",
  1545. " display: none;\n",
  1546. " grid-column: 1 / -1;\n",
  1547. " margin-bottom: 5px;\n",
  1548. "}\n",
  1549. "\n",
  1550. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  1551. " display: contents;\n",
  1552. "}\n",
  1553. "\n",
  1554. ".xr-array-wrap {\n",
  1555. " grid-column: 1 / -1;\n",
  1556. " display: grid;\n",
  1557. " grid-template-columns: 20px auto;\n",
  1558. "}\n",
  1559. "\n",
  1560. ".xr-array-wrap > label {\n",
  1561. " grid-column: 1;\n",
  1562. " vertical-align: top;\n",
  1563. "}\n",
  1564. "\n",
  1565. ".xr-preview {\n",
  1566. " color: var(--xr-font-color3);\n",
  1567. "}\n",
  1568. "\n",
  1569. ".xr-array-preview,\n",
  1570. ".xr-array-data {\n",
  1571. " padding: 0 5px !important;\n",
  1572. " grid-column: 2;\n",
  1573. "}\n",
  1574. "\n",
  1575. ".xr-array-data,\n",
  1576. ".xr-array-in:checked ~ .xr-array-preview {\n",
  1577. " display: none;\n",
  1578. "}\n",
  1579. "\n",
  1580. ".xr-array-in:checked ~ .xr-array-data,\n",
  1581. ".xr-array-preview {\n",
  1582. " display: inline-block;\n",
  1583. "}\n",
  1584. "\n",
  1585. ".xr-dim-list {\n",
  1586. " display: inline-block !important;\n",
  1587. " list-style: none;\n",
  1588. " padding: 0 !important;\n",
  1589. " margin: 0;\n",
  1590. "}\n",
  1591. "\n",
  1592. ".xr-dim-list li {\n",
  1593. " display: inline-block;\n",
  1594. " padding: 0;\n",
  1595. " margin: 0;\n",
  1596. "}\n",
  1597. "\n",
  1598. ".xr-dim-list:before {\n",
  1599. " content: '(';\n",
  1600. "}\n",
  1601. "\n",
  1602. ".xr-dim-list:after {\n",
  1603. " content: ')';\n",
  1604. "}\n",
  1605. "\n",
  1606. ".xr-dim-list li:not(:last-child):after {\n",
  1607. " content: ',';\n",
  1608. " padding-right: 5px;\n",
  1609. "}\n",
  1610. "\n",
  1611. ".xr-has-index {\n",
  1612. " font-weight: bold;\n",
  1613. "}\n",
  1614. "\n",
  1615. ".xr-var-list,\n",
  1616. ".xr-var-item {\n",
  1617. " display: contents;\n",
  1618. "}\n",
  1619. "\n",
  1620. ".xr-var-item > div,\n",
  1621. ".xr-var-item label,\n",
  1622. ".xr-var-item > .xr-var-name span {\n",
  1623. " background-color: var(--xr-background-color-row-even);\n",
  1624. " margin-bottom: 0;\n",
  1625. "}\n",
  1626. "\n",
  1627. ".xr-var-item > .xr-var-name:hover span {\n",
  1628. " padding-right: 5px;\n",
  1629. "}\n",
  1630. "\n",
  1631. ".xr-var-list > li:nth-child(odd) > div,\n",
  1632. ".xr-var-list > li:nth-child(odd) > label,\n",
  1633. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  1634. " background-color: var(--xr-background-color-row-odd);\n",
  1635. "}\n",
  1636. "\n",
  1637. ".xr-var-name {\n",
  1638. " grid-column: 1;\n",
  1639. "}\n",
  1640. "\n",
  1641. ".xr-var-dims {\n",
  1642. " grid-column: 2;\n",
  1643. "}\n",
  1644. "\n",
  1645. ".xr-var-dtype {\n",
  1646. " grid-column: 3;\n",
  1647. " text-align: right;\n",
  1648. " color: var(--xr-font-color2);\n",
  1649. "}\n",
  1650. "\n",
  1651. ".xr-var-preview {\n",
  1652. " grid-column: 4;\n",
  1653. "}\n",
  1654. "\n",
  1655. ".xr-index-preview {\n",
  1656. " grid-column: 2 / 5;\n",
  1657. " color: var(--xr-font-color2);\n",
  1658. "}\n",
  1659. "\n",
  1660. ".xr-var-name,\n",
  1661. ".xr-var-dims,\n",
  1662. ".xr-var-dtype,\n",
  1663. ".xr-preview,\n",
  1664. ".xr-attrs dt {\n",
  1665. " white-space: nowrap;\n",
  1666. " overflow: hidden;\n",
  1667. " text-overflow: ellipsis;\n",
  1668. " padding-right: 10px;\n",
  1669. "}\n",
  1670. "\n",
  1671. ".xr-var-name:hover,\n",
  1672. ".xr-var-dims:hover,\n",
  1673. ".xr-var-dtype:hover,\n",
  1674. ".xr-attrs dt:hover {\n",
  1675. " overflow: visible;\n",
  1676. " width: auto;\n",
  1677. " z-index: 1;\n",
  1678. "}\n",
  1679. "\n",
  1680. ".xr-var-attrs,\n",
  1681. ".xr-var-data,\n",
  1682. ".xr-index-data {\n",
  1683. " display: none;\n",
  1684. " background-color: var(--xr-background-color) !important;\n",
  1685. " padding-bottom: 5px !important;\n",
  1686. "}\n",
  1687. "\n",
  1688. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  1689. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  1690. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  1691. " display: block;\n",
  1692. "}\n",
  1693. "\n",
  1694. ".xr-var-data > table {\n",
  1695. " float: right;\n",
  1696. "}\n",
  1697. "\n",
  1698. ".xr-var-name span,\n",
  1699. ".xr-var-data,\n",
  1700. ".xr-index-name div,\n",
  1701. ".xr-index-data,\n",
  1702. ".xr-attrs {\n",
  1703. " padding-left: 25px !important;\n",
  1704. "}\n",
  1705. "\n",
  1706. ".xr-attrs,\n",
  1707. ".xr-var-attrs,\n",
  1708. ".xr-var-data,\n",
  1709. ".xr-index-data {\n",
  1710. " grid-column: 1 / -1;\n",
  1711. "}\n",
  1712. "\n",
  1713. "dl.xr-attrs {\n",
  1714. " padding: 0;\n",
  1715. " margin: 0;\n",
  1716. " display: grid;\n",
  1717. " grid-template-columns: 125px auto;\n",
  1718. "}\n",
  1719. "\n",
  1720. ".xr-attrs dt,\n",
  1721. ".xr-attrs dd {\n",
  1722. " padding: 0;\n",
  1723. " margin: 0;\n",
  1724. " float: left;\n",
  1725. " padding-right: 10px;\n",
  1726. " width: auto;\n",
  1727. "}\n",
  1728. "\n",
  1729. ".xr-attrs dt {\n",
  1730. " font-weight: normal;\n",
  1731. " grid-column: 1;\n",
  1732. "}\n",
  1733. "\n",
  1734. ".xr-attrs dt:hover span {\n",
  1735. " display: inline-block;\n",
  1736. " background: var(--xr-background-color);\n",
  1737. " padding-right: 10px;\n",
  1738. "}\n",
  1739. "\n",
  1740. ".xr-attrs dd {\n",
  1741. " grid-column: 2;\n",
  1742. " white-space: pre-wrap;\n",
  1743. " word-break: break-all;\n",
  1744. "}\n",
  1745. "\n",
  1746. ".xr-icon-database,\n",
  1747. ".xr-icon-file-text2,\n",
  1748. ".xr-no-icon {\n",
  1749. " display: inline-block;\n",
  1750. " vertical-align: middle;\n",
  1751. " width: 1em;\n",
  1752. " height: 1.5em !important;\n",
  1753. " stroke-width: 0;\n",
  1754. " stroke: currentColor;\n",
  1755. " fill: currentColor;\n",
  1756. "}\n",
  1757. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray &#x27;OD&#x27; (sin_mod_freq: 37, y: 300, x: 300)&gt;\n",
  1758. "array([[[ 0.0020338 , 0.11597806, 0.01753798, ..., 0.03280546,\n",
  1759. " 0.0020338 , -0.03570653],\n",
  1760. " [-0.08497758, 0.02072593, -0.12425993, ..., 0.0020338 ,\n",
  1761. " 0.21334289, -0.05405567],\n",
  1762. " [-0.0865196 , 0.11123309, 0.06265842, ..., 0.21774237,\n",
  1763. " 0.0903264 , -0.08373303],\n",
  1764. " ...,\n",
  1765. " [ 0.0020338 , 0.01803414, -0.15960755, ..., -0.04448622,\n",
  1766. " -0.012565 , -0.03935142],\n",
  1767. " [ 0.02038294, 0.18072559, 0.05246465, ..., 0.16367515,\n",
  1768. " 0.0020338 , 0.05838673],\n",
  1769. " [-0.07207418, 0.03712512, -0.04756314, ..., 0.01730127,\n",
  1770. " 0.0020338 , -0.06465758]],\n",
  1771. "\n",
  1772. " [[-0.16688474, -0.04827899, -0.03207702, ..., 0.16731735,\n",
  1773. " -0.03088725, 0.03810562],\n",
  1774. " [-0.0855391 , -0.12560308, -0.03335334, ..., -0.04577586,\n",
  1775. " 0.06861158, 0.05261124],\n",
  1776. " [-0.0871368 , 0.10017805, 0.0030143 , ..., 0.06755282,\n",
  1777. " 0.12079734, 0.0749878 ],\n",
  1778. "...\n",
  1779. " [-0.12844621, 0.19080233, -0.02825124, ..., 0.06307244,\n",
  1780. " 0.03539053, -0.00930355],\n",
  1781. " [ 0.02488781, 0.06014496, 0.10686788, ..., 0.00508518,\n",
  1782. " 0.07919316, 0.00508518],\n",
  1783. " [ 0.02217962, 0.09861124, 0.02247693, ..., 0.01990027,\n",
  1784. " 0.05020562, -0.0421677 ]],\n",
  1785. "\n",
  1786. " [[-0.06362606, 0.08931324, -0.03830825, ..., -0.08509483,\n",
  1787. " 0.02421211, 0.01016299],\n",
  1788. " [ 0.01016299, -0.1559566 , -0.02523617, ..., 0.08483673,\n",
  1789. " -0.00753659, 0.00927053],\n",
  1790. " [-0.00753659, 0.15609283, 0.01266612, ..., -0.00753659,\n",
  1791. " 0.0079676 , -0.02280406],\n",
  1792. " ...,\n",
  1793. " [-0.04527692, -0.06064642, 0.06266767, ..., -0.07652946,\n",
  1794. " -0.03784194, 0.00553549],\n",
  1795. " [-0.08164456, 0.01048191, -0.02492833, ..., 0.02063429,\n",
  1796. " -0.05478948, -0.07848833],\n",
  1797. " [-0.00753659, -0.09608999, 0.08261451, ..., 0.02276876,\n",
  1798. " 0.1259948 , -0.08056173]]])\n",
  1799. "Coordinates:\n",
  1800. " * sin_mod_freq (sin_mod_freq) float64 65.0 66.0 67.0 ... 99.0 100.0 101.0\n",
  1801. "Dimensions without coordinates: y, x\n",
  1802. "Attributes:\n",
  1803. " IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
  1804. " IMAGE_VERSION: 1.2\n",
  1805. " IMAGE_WHITE_IS_ZERO: 0\n",
  1806. " x_start: 800\n",
  1807. " x_end: 1100\n",
  1808. " y_end: 400\n",
  1809. " y_start: 100\n",
  1810. " x_center: 950\n",
  1811. " y_center: 250\n",
  1812. " x_span: 300\n",
  1813. " 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'>sin_mod_freq</span>: 37</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-0e4133bb-76ac-46d4-aab5-73edaf57cfe7' class='xr-array-in' type='checkbox' checked><label for='section-0e4133bb-76ac-46d4-aab5-73edaf57cfe7' 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.002034 0.116 0.01754 -0.05108 ... -0.03929 0.02277 0.126 -0.08056</span></div><div class='xr-array-data'><pre>array([[[ 0.0020338 , 0.11597806, 0.01753798, ..., 0.03280546,\n",
  1814. " 0.0020338 , -0.03570653],\n",
  1815. " [-0.08497758, 0.02072593, -0.12425993, ..., 0.0020338 ,\n",
  1816. " 0.21334289, -0.05405567],\n",
  1817. " [-0.0865196 , 0.11123309, 0.06265842, ..., 0.21774237,\n",
  1818. " 0.0903264 , -0.08373303],\n",
  1819. " ...,\n",
  1820. " [ 0.0020338 , 0.01803414, -0.15960755, ..., -0.04448622,\n",
  1821. " -0.012565 , -0.03935142],\n",
  1822. " [ 0.02038294, 0.18072559, 0.05246465, ..., 0.16367515,\n",
  1823. " 0.0020338 , 0.05838673],\n",
  1824. " [-0.07207418, 0.03712512, -0.04756314, ..., 0.01730127,\n",
  1825. " 0.0020338 , -0.06465758]],\n",
  1826. "\n",
  1827. " [[-0.16688474, -0.04827899, -0.03207702, ..., 0.16731735,\n",
  1828. " -0.03088725, 0.03810562],\n",
  1829. " [-0.0855391 , -0.12560308, -0.03335334, ..., -0.04577586,\n",
  1830. " 0.06861158, 0.05261124],\n",
  1831. " [-0.0871368 , 0.10017805, 0.0030143 , ..., 0.06755282,\n",
  1832. " 0.12079734, 0.0749878 ],\n",
  1833. "...\n",
  1834. " [-0.12844621, 0.19080233, -0.02825124, ..., 0.06307244,\n",
  1835. " 0.03539053, -0.00930355],\n",
  1836. " [ 0.02488781, 0.06014496, 0.10686788, ..., 0.00508518,\n",
  1837. " 0.07919316, 0.00508518],\n",
  1838. " [ 0.02217962, 0.09861124, 0.02247693, ..., 0.01990027,\n",
  1839. " 0.05020562, -0.0421677 ]],\n",
  1840. "\n",
  1841. " [[-0.06362606, 0.08931324, -0.03830825, ..., -0.08509483,\n",
  1842. " 0.02421211, 0.01016299],\n",
  1843. " [ 0.01016299, -0.1559566 , -0.02523617, ..., 0.08483673,\n",
  1844. " -0.00753659, 0.00927053],\n",
  1845. " [-0.00753659, 0.15609283, 0.01266612, ..., -0.00753659,\n",
  1846. " 0.0079676 , -0.02280406],\n",
  1847. " ...,\n",
  1848. " [-0.04527692, -0.06064642, 0.06266767, ..., -0.07652946,\n",
  1849. " -0.03784194, 0.00553549],\n",
  1850. " [-0.08164456, 0.01048191, -0.02492833, ..., 0.02063429,\n",
  1851. " -0.05478948, -0.07848833],\n",
  1852. " [-0.00753659, -0.09608999, 0.08261451, ..., 0.02276876,\n",
  1853. " 0.1259948 , -0.08056173]]])</pre></div></div></li><li class='xr-section-item'><input id='section-def02fb1-6419-434d-8a6d-a1b7b7440783' class='xr-section-summary-in' type='checkbox' checked><label for='section-def02fb1-6419-434d-8a6d-a1b7b7440783' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>sin_mod_freq</span></div><div class='xr-var-dims'>(sin_mod_freq)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>65.0 66.0 67.0 ... 99.0 100.0 101.0</div><input id='attrs-2a660019-c652-42be-a4f0-501b33b35ca1' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-2a660019-c652-42be-a4f0-501b33b35ca1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6d2ea97e-619a-4664-95cf-ecafb962ccf2' class='xr-var-data-in' type='checkbox'><label for='data-6d2ea97e-619a-4664-95cf-ecafb962ccf2' 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([ 65., 66., 67., 68., 69., 70., 71., 72., 73., 74., 75., 76.,\n",
  1854. " 77., 78., 79., 80., 81., 82., 83., 84., 85., 86., 87., 88.,\n",
  1855. " 89., 90., 91., 92., 93., 94., 95., 96., 97., 98., 99., 100.,\n",
  1856. " 101.])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-b02b99fa-20ca-41e0-9675-550269d1c088' class='xr-section-summary-in' type='checkbox' ><label for='section-b02b99fa-20ca-41e0-9675-550269d1c088' class='xr-section-summary' >Indexes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>sin_mod_freq</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-ed459eef-a562-4b1a-92ae-65933232625f' class='xr-index-data-in' type='checkbox'/><label for='index-ed459eef-a562-4b1a-92ae-65933232625f' 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([ 65.0, 66.0, 67.0, 68.0, 69.0, 70.0, 71.0, 72.0, 73.0,\n",
  1857. " 74.0, 75.0, 76.0, 77.0, 78.0, 79.0, 80.0, 81.0, 82.0,\n",
  1858. " 83.0, 84.0, 85.0, 86.0, 87.0, 88.0, 89.0, 90.0, 91.0,\n",
  1859. " 92.0, 93.0, 94.0, 95.0, 96.0, 97.0, 98.0, 99.0, 100.0,\n",
  1860. " 101.0],\n",
  1861. " dtype=&#x27;float64&#x27;, name=&#x27;sin_mod_freq&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-2411aff5-d5b4-4aec-a24b-ce540656b031' class='xr-section-summary-in' type='checkbox' ><label for='section-2411aff5-d5b4-4aec-a24b-ce540656b031' class='xr-section-summary' >Attributes: <span>(11)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><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><dt><span>x_start :</span></dt><dd>800</dd><dt><span>x_end :</span></dt><dd>1100</dd><dt><span>y_end :</span></dt><dd>400</dd><dt><span>y_start :</span></dt><dd>100</dd><dt><span>x_center :</span></dt><dd>950</dd><dt><span>y_center :</span></dt><dd>250</dd><dt><span>x_span :</span></dt><dd>300</dd><dt><span>y_span :</span></dt><dd>300</dd></dl></div></li></ul></div></div>"
  1862. ],
  1863. "text/plain": [
  1864. "<xarray.DataArray 'OD' (sin_mod_freq: 37, y: 300, x: 300)>\n",
  1865. "array([[[ 0.0020338 , 0.11597806, 0.01753798, ..., 0.03280546,\n",
  1866. " 0.0020338 , -0.03570653],\n",
  1867. " [-0.08497758, 0.02072593, -0.12425993, ..., 0.0020338 ,\n",
  1868. " 0.21334289, -0.05405567],\n",
  1869. " [-0.0865196 , 0.11123309, 0.06265842, ..., 0.21774237,\n",
  1870. " 0.0903264 , -0.08373303],\n",
  1871. " ...,\n",
  1872. " [ 0.0020338 , 0.01803414, -0.15960755, ..., -0.04448622,\n",
  1873. " -0.012565 , -0.03935142],\n",
  1874. " [ 0.02038294, 0.18072559, 0.05246465, ..., 0.16367515,\n",
  1875. " 0.0020338 , 0.05838673],\n",
  1876. " [-0.07207418, 0.03712512, -0.04756314, ..., 0.01730127,\n",
  1877. " 0.0020338 , -0.06465758]],\n",
  1878. "\n",
  1879. " [[-0.16688474, -0.04827899, -0.03207702, ..., 0.16731735,\n",
  1880. " -0.03088725, 0.03810562],\n",
  1881. " [-0.0855391 , -0.12560308, -0.03335334, ..., -0.04577586,\n",
  1882. " 0.06861158, 0.05261124],\n",
  1883. " [-0.0871368 , 0.10017805, 0.0030143 , ..., 0.06755282,\n",
  1884. " 0.12079734, 0.0749878 ],\n",
  1885. "...\n",
  1886. " [-0.12844621, 0.19080233, -0.02825124, ..., 0.06307244,\n",
  1887. " 0.03539053, -0.00930355],\n",
  1888. " [ 0.02488781, 0.06014496, 0.10686788, ..., 0.00508518,\n",
  1889. " 0.07919316, 0.00508518],\n",
  1890. " [ 0.02217962, 0.09861124, 0.02247693, ..., 0.01990027,\n",
  1891. " 0.05020562, -0.0421677 ]],\n",
  1892. "\n",
  1893. " [[-0.06362606, 0.08931324, -0.03830825, ..., -0.08509483,\n",
  1894. " 0.02421211, 0.01016299],\n",
  1895. " [ 0.01016299, -0.1559566 , -0.02523617, ..., 0.08483673,\n",
  1896. " -0.00753659, 0.00927053],\n",
  1897. " [-0.00753659, 0.15609283, 0.01266612, ..., -0.00753659,\n",
  1898. " 0.0079676 , -0.02280406],\n",
  1899. " ...,\n",
  1900. " [-0.04527692, -0.06064642, 0.06266767, ..., -0.07652946,\n",
  1901. " -0.03784194, 0.00553549],\n",
  1902. " [-0.08164456, 0.01048191, -0.02492833, ..., 0.02063429,\n",
  1903. " -0.05478948, -0.07848833],\n",
  1904. " [-0.00753659, -0.09608999, 0.08261451, ..., 0.02276876,\n",
  1905. " 0.1259948 , -0.08056173]]])\n",
  1906. "Coordinates:\n",
  1907. " * sin_mod_freq (sin_mod_freq) float64 65.0 66.0 67.0 ... 99.0 100.0 101.0\n",
  1908. "Dimensions without coordinates: y, x\n",
  1909. "Attributes:\n",
  1910. " IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
  1911. " IMAGE_VERSION: 1.2\n",
  1912. " IMAGE_WHITE_IS_ZERO: 0\n",
  1913. " x_start: 800\n",
  1914. " x_end: 1100\n",
  1915. " y_end: 400\n",
  1916. " y_start: 100\n",
  1917. " x_center: 950\n",
  1918. " y_center: 250\n",
  1919. " x_span: 300\n",
  1920. " y_span: 300"
  1921. ]
  1922. },
  1923. "execution_count": 18,
  1924. "metadata": {},
  1925. "output_type": "execute_result"
  1926. }
  1927. ],
  1928. "source": [
  1929. "dataSet_cropOD"
  1930. ]
  1931. },
  1932. {
  1933. "cell_type": "code",
  1934. "execution_count": 19,
  1935. "metadata": {},
  1936. "outputs": [
  1937. {
  1938. "data": {
  1939. "text/plain": [
  1940. "array([[[ 0.0020338 , 0.11597806, 0.01753798, ..., 0.03280546,\n",
  1941. " 0.0020338 , -0.03570653],\n",
  1942. " [-0.08497758, 0.02072593, -0.12425993, ..., 0.0020338 ,\n",
  1943. " 0.21334289, -0.05405567],\n",
  1944. " [-0.0865196 , 0.11123309, 0.06265842, ..., 0.21774237,\n",
  1945. " 0.0903264 , -0.08373303],\n",
  1946. " ...,\n",
  1947. " [ 0.0020338 , 0.01803414, -0.15960755, ..., -0.04448622,\n",
  1948. " -0.012565 , -0.03935142],\n",
  1949. " [ 0.02038294, 0.18072559, 0.05246465, ..., 0.16367515,\n",
  1950. " 0.0020338 , 0.05838673],\n",
  1951. " [-0.07207418, 0.03712512, -0.04756314, ..., 0.01730127,\n",
  1952. " 0.0020338 , -0.06465758]],\n",
  1953. "\n",
  1954. " [[-0.16688474, -0.04827899, -0.03207702, ..., 0.16731735,\n",
  1955. " -0.03088725, 0.03810562],\n",
  1956. " [-0.0855391 , -0.12560308, -0.03335334, ..., -0.04577586,\n",
  1957. " 0.06861158, 0.05261124],\n",
  1958. " [-0.0871368 , 0.10017805, 0.0030143 , ..., 0.06755282,\n",
  1959. " 0.12079734, 0.0749878 ],\n",
  1960. " ...,\n",
  1961. " [-0.03402697, -0.03270378, -0.03207702, ..., 0.04882384,\n",
  1962. " -0.10395782, 0.10099471],\n",
  1963. " [-0.0960766 , 0.0030143 , 0.0030143 , ..., -0.01225317,\n",
  1964. " -0.07833134, -0.04143746],\n",
  1965. " [-0.05414411, -0.0150042 , 0.13654569, ..., 0.0030143 ,\n",
  1966. " -0.02775736, -0.01298604]],\n",
  1967. "\n",
  1968. " [[ 0.08257612, -0.06604552, 0.08946478, ..., 0.08946478,\n",
  1969. " -0.06819837, 0.05256022],\n",
  1970. " [-0.06932959, -0.09006039, 0.01651151, ..., 0.0497863 ,\n",
  1971. " 0.03128283, -0.20035786],\n",
  1972. " [-0.11070629, -0.001507 , -0.04151233, ..., -0.001507 ,\n",
  1973. " 0.07486598, 0.04294477],\n",
  1974. " ...,\n",
  1975. " [-0.02092508, 0.06518438, 0.01718514, ..., 0.04501302,\n",
  1976. " 0.18081456, -0.02748248],\n",
  1977. " [-0.001507 , -0.05461682, -0.01889874, ..., 0.11985386,\n",
  1978. " 0.01530012, 0.01376048],\n",
  1979. " [-0.13503839, -0.01889874, 0.03421109, ..., -0.06122623,\n",
  1980. " -0.0332557 , 0.08946478]],\n",
  1981. "\n",
  1982. " ...,\n",
  1983. "\n",
  1984. " [[-0.03833677, -0.05668591, 0.06356322, ..., 0.08146443,\n",
  1985. " -0.0991712 , -0.00261868],\n",
  1986. " [-0.0554312 , -0.0579863 , 0.0331222 , ..., -0.0174878 ,\n",
  1987. " -0.00232137, -0.06931006],\n",
  1988. " [-0.09058746, -0.00502957, 0.01477306, ..., -0.04494618,\n",
  1989. " 0.10178444, 0.10574484],\n",
  1990. " ...,\n",
  1991. " [-0.07703449, 0.01477306, -0.07537804, ..., -0.04238536,\n",
  1992. " 0.04334643, -0.07925589],\n",
  1993. " [-0.0579863 , -0.04585156, 0.14339044, ..., -0.01553229,\n",
  1994. " 0.05794523, 0.05794523],\n",
  1995. " [-0.06369856, -0.00175624, -0.02031826, ..., 0.07633095,\n",
  1996. " -0.03174696, 0.06058259]],\n",
  1997. "\n",
  1998. " [[-0.06511907, 0.07068247, -0.01066317, ..., -0.0421677 ,\n",
  1999. " 0.08512789, -0.03128246],\n",
  2000. " [-0.01326395, -0.1736066 , 0.04080327, ..., -0.04451176,\n",
  2001. " -0.01144412, -0.15655617],\n",
  2002. " [-0.04710057, 0.15350519, -0.1104277 , ..., -0.09176464,\n",
  2003. " -0.14009683, -0.0243287 ],\n",
  2004. " ...,\n",
  2005. " [-0.12844621, 0.19080233, -0.02825124, ..., 0.06307244,\n",
  2006. " 0.03539053, -0.00930355],\n",
  2007. " [ 0.02488781, 0.06014496, 0.10686788, ..., 0.00508518,\n",
  2008. " 0.07919316, 0.00508518],\n",
  2009. " [ 0.02217962, 0.09861124, 0.02247693, ..., 0.01990027,\n",
  2010. " 0.05020562, -0.0421677 ]],\n",
  2011. "\n",
  2012. " [[-0.06362606, 0.08931324, -0.03830825, ..., -0.08509483,\n",
  2013. " 0.02421211, 0.01016299],\n",
  2014. " [ 0.01016299, -0.1559566 , -0.02523617, ..., 0.08483673,\n",
  2015. " -0.00753659, 0.00927053],\n",
  2016. " [-0.00753659, 0.15609283, 0.01266612, ..., -0.00753659,\n",
  2017. " 0.0079676 , -0.02280406],\n",
  2018. " ...,\n",
  2019. " [-0.04527692, -0.06064642, 0.06266767, ..., -0.07652946,\n",
  2020. " -0.03784194, 0.00553549],\n",
  2021. " [-0.08164456, 0.01048191, -0.02492833, ..., 0.02063429,\n",
  2022. " -0.05478948, -0.07848833],\n",
  2023. " [-0.00753659, -0.09608999, 0.08261451, ..., 0.02276876,\n",
  2024. " 0.1259948 , -0.08056173]]])"
  2025. ]
  2026. },
  2027. "execution_count": 19,
  2028. "metadata": {},
  2029. "output_type": "execute_result"
  2030. }
  2031. ],
  2032. "source": [
  2033. "dataSet_cropOD.to_numpy()"
  2034. ]
  2035. },
  2036. {
  2037. "cell_type": "code",
  2038. "execution_count": null,
  2039. "metadata": {},
  2040. "outputs": [],
  2041. "source": []
  2042. },
  2043. {
  2044. "cell_type": "code",
  2045. "execution_count": null,
  2046. "metadata": {},
  2047. "outputs": [],
  2048. "source": [
  2049. "from Analyser.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, polylog2_2d\n",
  2050. "\n",
  2051. "fitModel = DensityProfileBEC2dModel()\n",
  2052. "# fitModel = ThomasFermi2dModel()\n",
  2053. "\n",
  2054. "fitAnalyser = FitAnalyser(fitModel, fitDim=2)\n",
  2055. "\n",
  2056. "# fitAnalyser = FitAnalyser(\"Gaussian-2D\", fitDim=2)\n",
  2057. "\n",
  2058. "# dataSet_cropOD = dataSet_cropOD.chunk((1,1,100,100))\n",
  2059. "\n",
  2060. "params = fitAnalyser.guess(dataSet_cropOD, guess_kwargs=dict(pureBECThreshold=0.3), dask=\"parallelized\")\n",
  2061. "fitResult = fitAnalyser.fit(dataSet_cropOD, params).load()"
  2062. ]
  2063. },
  2064. {
  2065. "cell_type": "code",
  2066. "execution_count": null,
  2067. "metadata": {},
  2068. "outputs": [],
  2069. "source": []
  2070. }
  2071. ],
  2072. "metadata": {
  2073. "kernelspec": {
  2074. "display_name": "base",
  2075. "language": "python",
  2076. "name": "python3"
  2077. },
  2078. "language_info": {
  2079. "codemirror_mode": {
  2080. "name": "ipython",
  2081. "version": 3
  2082. },
  2083. "file_extension": ".py",
  2084. "mimetype": "text/x-python",
  2085. "name": "python",
  2086. "nbconvert_exporter": "python",
  2087. "pygments_lexer": "ipython3",
  2088. "version": "3.9.12"
  2089. },
  2090. "orig_nbformat": 4
  2091. },
  2092. "nbformat": 4,
  2093. "nbformat_minor": 2
  2094. }