analyseScript/testLoadMongoDB.ipynb

2239 lines
738 KiB
Plaintext
Raw Normal View History

2023-10-30 17:53:03 +01:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Import supporting package"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import xarray as xr\n",
"import numpy as np\n",
"import copy\n",
"\n",
"from uncertainties import ufloat\n",
"from uncertainties import unumpy as unp\n",
"from uncertainties import umath\n",
"import random\n",
"import matplotlib.pyplot as plt\n",
"plt.rcParams['font.size'] = 12\n",
"\n",
"from DataContainer.ReadData import read_hdf5_file\n",
"from Analyser.ImagingAnalyser import ImageAnalyser\n",
"from Analyser.FitAnalyser import FitAnalyser\n",
"from Analyser.FitAnalyser import NewFitModel, DensityProfileBEC2dModel\n",
"from ToolFunction.ToolFunction import *\n",
"\n",
"from scipy.optimize import curve_fit\n",
"\n",
"from ToolFunction.HomeMadeXarrayFunction import errorbar, dataarray_plot_errorbar\n",
"xr.plot.dataarray_plot.errorbar = errorbar\n",
"xr.plot.accessor.DataArrayPlotAccessor.errorbar = dataarray_plot_errorbar\n",
"\n",
"imageAnalyser = ImageAnalyser()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Start a client for parallel computing"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
" <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-94357adc-773e-11ee-9a5c-80e82ce2fa8e</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
"\n",
" <tr>\n",
" \n",
" <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
" <td style=\"text-align: left;\"><strong>Cluster type:</strong> distributed.LocalCluster</td>\n",
" \n",
" </tr>\n",
"\n",
" \n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" \n",
"\n",
" </table>\n",
"\n",
" \n",
"\n",
" \n",
" <details>\n",
" <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
" <div class=\"jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-output\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\">\n",
" </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px; margin-top: 0px;\">LocalCluster</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">7a351263</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Workers:</strong> 8\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads:</strong> 128\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total memory:</strong> 149.01 GiB\n",
" </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <td style=\"text-align: left;\"><strong>Status:</strong> running</td>\n",
" <td style=\"text-align: left;\"><strong>Using processes:</strong> True</td>\n",
"</tr>\n",
"\n",
" \n",
" </table>\n",
"\n",
" <details>\n",
" <summary style=\"margin-bottom: 20px;\">\n",
" <h3 style=\"display: inline;\">Scheduler Info</h3>\n",
" </summary>\n",
"\n",
" <div style=\"\">\n",
" <div>\n",
" <div style=\"width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px;\">Scheduler</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-99d0c246-a105-478b-81bf-33932994241c</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm:</strong> tcp://127.0.0.1:56724\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Workers:</strong> 8\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads:</strong> 128\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Started:</strong> Just now\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total memory:</strong> 149.01 GiB\n",
" </td>\n",
" </tr>\n",
" </table>\n",
" </div>\n",
" </div>\n",
"\n",
" <details style=\"margin-left: 48px;\">\n",
" <summary style=\"margin-bottom: 20px;\">\n",
" <h3 style=\"display: inline;\">Workers</h3>\n",
" </summary>\n",
"\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 0</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:56777\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 16\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:56778/status\" target=\"_blank\">http://127.0.0.1:56778/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 18.63 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:56727\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-scratch-space\\worker-ucyjq_v1\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 1</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:56762\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 16\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:56763/status\" target=\"_blank\">http://127.0.0.1:56763/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 18.63 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:56728\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-scratch-space\\worker-so9sfbp3\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 2</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:56771\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 16\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:56772/status\" target=\"_blank\">http://127.0.0.1:56772/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 18.63 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:56729\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-scratch-space\\worker-ctb8wuk2\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 3</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:56774\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 16\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:56775/status\" target=\"_blank\">http://127.0.0.1:56775/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 18.63 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:56730\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-scratch-space\\worker-7cxq_u3t\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 4</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:56780\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 16\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:56781/status\" target=\"_blank\">http://127.0.0.1:56781/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 18.63 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:56731\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-scratch-space\\worker-x6vkv6n4\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 5</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:56759\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 16\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:56760/status\" target=\"_blank\">http://127.0.0.1:56760/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 18.63 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:56732\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-scratch-space\\worker-q3lqjful\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 6</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:56765\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 16\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:56767/status\" target=\"_blank\">http://127.0.0.1:56767/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 18.63 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:56733\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-scratch-space\\worker-459y2kku\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 7</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:56766\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 16\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:56768/status\" target=\"_blank\">http://127.0.0.1:56768/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 18.63 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:56734\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-scratch-space\\worker-26s665nm\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
"\n",
" </details>\n",
"</div>\n",
"\n",
" </details>\n",
" </div>\n",
"</div>\n",
" </details>\n",
" \n",
"\n",
" </div>\n",
"</div>"
],
"text/plain": [
"<Client: 'tcp://127.0.0.1:56724' processes=8 threads=128, memory=149.01 GiB>"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from dask.distributed import Client\n",
"client = Client(n_workers=8, threads_per_worker=16, processes=True, memory_limit='20GB')\n",
"client"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Start a client for Mongo DB"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"import pymongo\n",
"import xarray_mongodb\n",
"\n",
"from DataContainer.MongoDB import MongoDB\n",
"\n",
"mongoClient = pymongo.MongoClient('mongodb://control:DyLab2021@127.0.0.1:27017/?authMechanism=DEFAULT')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Set global path for experiment"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"groupList = [\n",
" \"images/MOT_3D_Camera/in_situ_absorption\",\n",
" \"images/ODT_1_Axis_Camera/in_situ_absorption\",\n",
" \"images/ODT_2_Axis_Camera/in_situ_absorption\",\n",
" \"images/Horizontal_Axis_Camera/in_situ_absorption\",\n",
" \"images/Vertical_Axis_Camera/in_situ_absorption\",\n",
"]\n",
"\n",
"dskey = {\n",
" \"images/MOT_3D_Camera/in_situ_absorption\": \"camera_0\",\n",
" \"images/ODT_1_Axis_Camera/in_situ_absorption\": \"camera_1\",\n",
" \"images/ODT_2_Axis_Camera/in_situ_absorption\": \"camera_2\",\n",
" \"images/Horizontal_Axis_Camera/in_situ_absorption\": \"camera_3\",\n",
" \"images/Vertical_Axis_Camera/in_situ_absorption\": \"camera_4\"\n",
"}\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Evaporative Cooling"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"# img_dir = 'C:/Users/control/DyLab/Experiments/DyBEC/'\n",
"img_dir = '//DyLabNAS/Data/'\n",
"SequenceName = \"Repetition_scan\"\n",
"folderPath = img_dir + SequenceName + \"/\" + '2023/06/14' # get_date()\n",
"\n",
"mongoDB = mongoClient[SequenceName]\n",
"\n",
"DB = MongoDB(mongoClient, mongoDB, date=get_date())"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[-0.01951217, 0.01438939, -0.04302442, ..., -0.01028454,\n",
" 0.03932833, 0.00296069],\n",
" [-0.01831671, -0.0077346 , -0.0178734 , ..., 0.05235344,\n",
" 0.02705824, -0.03094086],\n",
" [ 0.00296069, 0.00296069, -0.02602685, ..., 0.02649119,\n",
" -0.00846801, -0.02002883],\n",
" ...,\n",
" [ 0.00296069, -0.02143076, -0.00873535, ..., -0.00494449,\n",
" -0.02734466, 0.03349741],\n",
" [ 0.02595021, 0.00296069, -0.02084996, ..., -0.01266463,\n",
" -0.00464391, 0.00296069],\n",
" [ 0.00296069, 0.00296069, 0.02677134, ..., 0.00296069,\n",
" -0.00470218, -0.01968179]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.248\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[ 0.05044399, 0.0390153 , 0.07712738, ..., -0.0091481 ,\n",
" 0.00392398, 0.00392398],\n",
" [ 0.04648359, -0.02922823, 0.00392398, ..., 0.00392398,\n",
" 0.01590017, -0.00777206],\n",
" [ 0.00392398, 0.03348278, 0.03348278, ..., -0.00805221,\n",
" 0.0154848 , -0.00750472],\n",
" ...,\n",
" [ 0.00392398, 0.01619407, 0.01590017, ..., -0.01942339,\n",
" -0.01134349, -0.01158021],\n",
" [ 0.00392398, -0.01933288, 0.05155203, ..., 0.01170612,\n",
" 0.01896186, -0.00345613],\n",
" [ 0.00392398, 0.00392398, -0.05526489, ..., 0.02059103,\n",
" -0.01942339, -0.02661275]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.249\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[-0.00844481, 0.03740509, -0.00858003, ..., -0.00978739,\n",
" -0.00900535, 0.00311601],\n",
" [ 0.02416942, -0.0074661 , -0.0394436 , ..., 0.02811732,\n",
" 0.00311601, 0.01481205],\n",
" [ 0.02331872, 0.00311601, -0.01630207, ..., -0.04451203,\n",
" 0.04910113, 0.01428931],\n",
" ...,\n",
" [ 0.024856 , 0.00311601, -0.04451203, ..., 0.04233673,\n",
" 0.00311601, 0.01850093],\n",
" [ 0.01454471, -0.03197531, -0.04451203, ..., -0.0122689 ,\n",
" 0.01826782, 0.00311601],\n",
" [-0.02069463, -0.01910712, 0.02664651, ..., 0.00311601,\n",
" -0.01215146, 0.00311601]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.25\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[-0.0249 , 0.00887241, -0.03751847, ..., -0.00242715,\n",
" -0.0268186 , -0.00242715],\n",
" [-0.01300926, 0.00838377, -0.07732845, ..., 0.05970463,\n",
" 0.02167041, 0.03266417],\n",
" [-0.04126698, -0.01237748, -0.01218332, ..., -0.01454851,\n",
" 0.02056237, -0.00242715],\n",
" ...,\n",
" [ 0.07671017, -0.01469724, -0.03751847, ..., 0.00535499,\n",
" 0.0278782 , 0.01272466],\n",
" [-0.00242715, 0.02082972, 0.02226547, ..., -0.01014919,\n",
" 0.0278782 , 0.02720465],\n",
" [-0.00242715, 0.01979599, -0.01440334, ..., -0.00242715,\n",
" -0.01014919, 0.00512006]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.251\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[-0.02058956, 0.01318852, 0.02461154, ..., 0.01521077,\n",
" -0.01028383, -0.0098375 ],\n",
" [-0.06038167, -0.01913871, 0.02297277, ..., 0.00213869,\n",
" -0.02167196, 0.02539555],\n",
" [ 0.03140907, 0.05092885, 0.03140907, ..., -0.0098375 ,\n",
" 0.00213869, 0.03642776],\n",
" ...,\n",
" [-0.00879038, -0.02225277, 0.01383473, ..., 0.00213869,\n",
" 0.00213869, -0.00558336],\n",
" [-0.03254687, -0.0098375 , 0.00213869, ..., 0.00213869,\n",
" -0.00546591, 0.00951879],\n",
" [ 0.01440878, 0.00213869, -0.03254687, ..., -0.00595852,\n",
" -0.02102837, 0.01752361]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.252\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[-0.03065368, -0.03105017, -0.02017526, ..., -0.03558532,\n",
" 0.01575675, -0.02046216],\n",
" [ 0.01399818, -0.0070599 , -0.0181046 , ..., 0.00363539,\n",
" 0.01546985, -0.00806065],\n",
" [ 0.05389723, -0.01616724, -0.00612078, ..., -0.0318713 ,\n",
" -0.00753791, -0.00792543],\n",
" ...,\n",
" [ 0.02610825, 0.01575675, 0.00363539, ..., -0.01186879,\n",
" 0.02610825, -0.01151641],\n",
" [-0.03026616, -0.03105017, 0.01546985, ..., 0.01902031,\n",
" -0.01140249, 0.01856104],\n",
" [ 0.02744604, -0.0181046 , 0.02689225, ..., -0.02862547,\n",
" -0.01971197, 0.00363539]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.253\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[-0.02239215, 0.04478238, 0.02364164, ..., -0.01324109,\n",
" -0.00016901, 0.02392854],\n",
" [-0.00016901, -0.02167522, 0.03124718, ..., -0.00016901,\n",
" -0.02369951, -0.03485457],\n",
" [ 0.00958716, -0.03863529, -0.04895918, ..., -0.01200347,\n",
" 0.04529336, -0.03445809],\n",
" ...,\n",
" [ 0.04428275, -0.00016901, 0.03533768, ..., -0.00801219,\n",
" 0.01475664, -0.00771622],\n",
" [ 0.01125968, 0.02282051, -0.0121452 , ..., -0.01579433,\n",
" -0.02264187, 0.00710375],\n",
" [-0.00016901, -0.01159771, -0.02397966, ..., -0.00016901,\n",
" -0.00016901, -0.00016901]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.254\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[ 0.0062427 , 0.00637184, 0.04201065, ..., 0.00801522,\n",
" 0.0070645 , -0.00505686],\n",
" [-0.04672956, 0.00563843, 0.00563843, ..., -0.02944831,\n",
" 0.0067776 , 0.0062427 ],\n",
" [-0.03432724, -0.01462631, -0.02428822, ..., 0.04146316,\n",
" 0.0393949 , -0.07326511],\n",
" ...,\n",
" [ 0.00611644, -0.01717822, -0.00505686, ..., 0.01847364,\n",
" -0.01266146, -0.00505686],\n",
" [ 0.04092825, 0.00650396, -0.01689132, ..., 0.03416385,\n",
" -0.00505686, -0.00505686],\n",
" [-0.01703305, -0.00505686, 0.01847364, ..., 0.01884866,\n",
" -0.01290004, 0.01775782]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.255\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[ 0.02295447, 0.00048162, 0.00048162, ..., -0.01225741,\n",
" -0.01163974, 0.01260298],\n",
" [ 0.01095292, 0.01106373, 0.00048162, ..., 0.0130604 ,\n",
" 0.01275171, -0.01121442],\n",
" [ 0.00048162, -0.00918029, 0.01971298, ..., 0.00048162,\n",
" -0.03420394, -0.01081794],\n",
" ...,\n",
" [ 0.01165492, -0.01178847, 0.02373848, ..., -0.0151437 ,\n",
" 0.00814449, 0.01574909],\n",
" [-0.01094708, 0.01204244, 0.00048162, ..., -0.00718125,\n",
" 0.0232963 , -0.00684442],\n",
" [-0.01135284, -0.03304107, 0.01245781, ..., -0.03204157,\n",
" 0.00814449, -0.00706559]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.256\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[ 0.01979385, 0.04355583, 0.00899941, ..., -0.00242928,\n",
" -0.04949679, -0.03793597],\n",
" [ 0.01819 , 0.00826601, -0.01301139, ..., 0.02196217,\n",
" -0.01426374, -0.0484144 ],\n",
" [-0.00242928, 0.02628082, -0.03086722, ..., 0.00954691,\n",
" 0.03072292, -0.00242928],\n",
" ...,\n",
" [ 0.00899941, -0.01426374, 0.02138137, ..., 0.00535286,\n",
" 0.00535286, 0.00517532],\n",
" [-0.02515753, -0.01412532, -0.01426374, ..., -0.02614581,\n",
" 0.01272252, -0.03853429],\n",
" [-0.00242928, -0.00242928, -0.00242928, ..., 0.05381043,\n",
" -0.01817764, -0.03273463]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.257\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[-0.01306951, -0.02474792, 0.00981479, ..., 0.03720104,\n",
" 0.02207788, -0.01385413],\n",
" [ 0.01881442, -0.00201967, -0.00201967, ..., 0.02298163,\n",
" -0.00201967, 0.0571692 ],\n",
" [-0.02162814, -0.01177584, 0.01702853, ..., -0.00201967,\n",
" -0.03630874, -0.00201967],\n",
" ...,\n",
" [-0.00201967, -0.00201967, 0.02207788, ..., -0.00980181,\n",
" 0.0056432 , 0.005471 ],\n",
" [ 0.00927989, -0.01371571, 0.00995652, ..., 0.01313214,\n",
" 0.00552754, -0.03121882],\n",
" [-0.01371571, 0.02070858, 0.00995652, ..., -0.00992485,\n",
" -0.00201967, 0.02851705]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.258\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.DataArray 'OD' (x: 400, y: 400)>\n",
"array([[ 0.00590477, 0.00590477, 0.04141146, ..., -0.00734046,\n",
" 0.01773922, 0.01817486],\n",
" [ 0.02631364, 0.02695818, 0.02695818, ..., 0.01817486,\n",
" -0.01735209, 0.00590477],\n",
" [-0.00385141, -0.03256151, 0.01556668, ..., 0.05297228,\n",
" -0.00539479, -0.00539479],\n",
" ...,\n",
" [-0.05060744, 0.00590477, -0.00607142, ..., -0.00181728,\n",
" -0.0093627 , -0.00175811],\n",
" [ 0.02837762, 0.02916163, 0.02971542, ..., -0.00959942,\n",
" -0.00153021, 0.00590477],\n",
" [-0.00579127, -0.04935791, -0.03955761, ..., 0.00590477,\n",
" -0.00959942, -0.00902088]])\n",
"Coordinates:\n",
" compZ_final_current float64 0.259\n",
"Dimensions without coordinates: x, y\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.248\n",
"Data variables:\n",
" amplitude float64 -2.044e+04\n",
" centerx float64 144.9\n",
" centery float64 -6.568e+03\n",
" sigmax float64 122.9\n",
" sigmay float64 3.306e+04\n",
" fwhmx float64 289.5\n",
" fwhmy float64 7.786e+04\n",
" height float64 -0.0008003\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.249\n",
"Data variables:\n",
" amplitude float64 -273.6\n",
" centerx float64 557.9\n",
" centery float64 60.07\n",
" sigmax float64 709.2\n",
" sigmay float64 50.49\n",
" fwhmx float64 1.67e+03\n",
" fwhmy float64 118.9\n",
" height float64 -0.001216\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.25\n",
"Data variables:\n",
" amplitude float64 70.59\n",
" centerx float64 214.9\n",
" centery float64 193.9\n",
" sigmax float64 21.46\n",
" sigmay float64 37.87\n",
" fwhmx float64 50.53\n",
" fwhmy float64 89.17\n",
" height float64 0.01383\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.251\n",
"Data variables:\n",
" amplitude float64 -71.04\n",
" centerx float64 185.9\n",
" centery float64 28.38\n",
" sigmax float64 212.4\n",
" sigmay float64 41.08\n",
" fwhmx float64 500.3\n",
" fwhmy float64 96.73\n",
" height float64 -0.001296\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.252\n",
"Data variables:\n",
" amplitude float64 178.4\n",
" centerx float64 210.3\n",
" centery float64 193.9\n",
" sigmax float64 28.15\n",
" sigmay float64 39.43\n",
" fwhmx float64 66.28\n",
" fwhmy float64 92.84\n",
" height float64 0.02559\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.253\n",
"Data variables:\n",
" amplitude float64 321.4\n",
" centerx float64 208.1\n",
" centery float64 193.7\n",
" sigmax float64 31.72\n",
" sigmay float64 44.2\n",
" fwhmx float64 74.7\n",
" fwhmy float64 104.1\n",
" height float64 0.03648\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.254\n",
"Data variables:\n",
" amplitude float64 576.0\n",
" centerx float64 202.8\n",
" centery float64 195.5\n",
" sigmax float64 35.24\n",
" sigmay float64 46.21\n",
" fwhmx float64 82.99\n",
" fwhmy float64 108.8\n",
" height float64 0.0563\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.255\n",
"Data variables:\n",
" amplitude float64 871.8\n",
" centerx float64 203.1\n",
" centery float64 195.5\n",
" sigmax float64 37.21\n",
" sigmay float64 46.43\n",
" fwhmx float64 87.63\n",
" fwhmy float64 109.3\n",
" height float64 0.08031\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.256\n",
"Data variables:\n",
" amplitude float64 1.674e+03\n",
" centerx float64 202.8\n",
" centery float64 195.5\n",
" sigmax float64 39.01\n",
" sigmay float64 46.2\n",
" fwhmx float64 91.86\n",
" fwhmy float64 108.8\n",
" height float64 0.1478\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.257\n",
"Data variables:\n",
" amplitude float64 2.908e+03\n",
" centerx float64 202.1\n",
" centery float64 196.2\n",
" sigmax float64 39.62\n",
" sigmay float64 45.27\n",
" fwhmx float64 93.29\n",
" fwhmy float64 106.6\n",
" height float64 0.2581\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.258\n",
"Data variables:\n",
" amplitude float64 4.378e+03\n",
" centerx float64 202.3\n",
" centery float64 196.0\n",
" sigmax float64 40.28\n",
" sigmay float64 45.01\n",
" fwhmx float64 94.85\n",
" fwhmy float64 106.0\n",
" height float64 0.3843\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n",
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" compZ_final_current float64 0.259\n",
"Data variables:\n",
" amplitude float64 6.686e+03\n",
" centerx float64 201.2\n",
" centery float64 197.2\n",
" sigmax float64 40.21\n",
" sigmay float64 44.63\n",
" fwhmx float64 94.7\n",
" fwhmy float64 105.1\n",
" height float64 0.593\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400\n"
]
},
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
"Dimensions: (compZ_final_current: 12, x: 400, y: 400)\n",
"Coordinates:\n",
" * compZ_final_current (compZ_final_current) float64 0.248 0.249 ... 0.259\n",
"Dimensions without coordinates: x, y\n",
"Data variables:\n",
" OD (compZ_final_current, x, y) float64 -0.01951 ... -0....</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-4b6ee14c-a61c-4aec-b315-31e747c59c3c' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-4b6ee14c-a61c-4aec-b315-31e747c59c3c' 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'>compZ_final_current</span>: 12</li><li><span>x</span>: 400</li><li><span>y</span>: 400</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-b978d58f-3f75-4ba6-9d51-690e4e7952c4' class='xr-section-summary-in' type='checkbox' checked><label for='section-b978d58f-3f75-4ba6-9d51-690e4e7952c4' 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'>compZ_final_current</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.248 0.249 0.25 ... 0.258 0.259</div><input id='attrs-2dd90d40-4a7a-4499-b792-a738230be98a' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-2dd90d40-4a7a-4499-b792-a738230be98a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4d70f9a3-fef0-4dac-96e8-eb0aef5666f3' class='xr-var-data-in' type='checkbox'><label for='data-4d70f9a3-fef0-4dac-96e8-eb0aef5666f3' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([0.248, 0.249, 0.25 , 0.251, 0.252, 0.253, 0.254, 0.255, 0.256, 0.257,\n",
" 0.258, 0.259])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-144de1cb-24d9-48f2-9a7c-ab935fd2369d' class='xr-section-summary-in' type='checkbox' checked><label for='section-144de1cb-24d9-48f2-9a7c-ab935fd2369d' class='xr-section-summary' >Data variables: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>OD</span></div><div class='xr-var-dims'>(compZ_final_current, x, y)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-0.01951 0.01439 ... -0.009021</div><input id='attrs-76047075-e6e5-43d8-b66b-97575e783b13' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-76047075-e6e5-43d8-b66b-97575e783b13' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3b55f810-211c-4c62-b89e-a64bfaa6ce18' class='xr-var-data-in' type='checkbox'><label for='data-3b55f810-211c-4c62-b89e-a64bfaa6ce18' 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><dt><span>x_start :</span></dt><dd>105</dd><dt><span>x_end :</span></dt><dd>505</dd><dt><span>y_end :</span></dt><dd>1075</dd><dt><span>y_start :</span></dt><dd>675</dd><dt><span>x_center :</span></dt><dd>305</dd><dt><span>y_center :</span></dt><dd>875</dd><dt><span>x_span :</span></dt><dd>400</dd><dt><span>y_span :</span></dt><dd>400</dd></dl></div><div class='xr-var-data'><pre>array([[[-0.01951217, 0.01438939, -0.04302442, ..., -0.01028454,\n",
" 0.03932833, 0.00296069],\n",
" [-0.01831671, -0.0077346 , -0.0178734 , ..., 0.05235344,\n",
" 0.02705824, -0.03094086],\n",
" [ 0.00296069, 0.00296069, -0.02602685, ..., 0.02649119,\n",
" -0.00846801, -0.02002883],\n",
" ...,\n",
" [ 0.00296069, -0.02143076, -0.00873535, ..., -0.00494449,\n",
" -0.02734466, 0.03349741],\n",
" [ 0.02595021, 0.00296069, -0.02084996, ..., -0.01266463,\n",
" -0.00464391, 0.00296069],\n",
" [ 0.00296069, 0.00296069, 0.02677134, ..., 0.00296069,\n",
" -0.00470218, -0.01968179]],\n",
"\n",
" [[ 0.05044399, 0.0390153 , 0.07712738, ..., -0.0091481 ,\n",
" 0.00392398, 0.00392398],\n",
" [ 0.04648359, -0.02922823, 0.00392398, ..., 0.00392398,\n",
" 0.01590017, -0.00777206],\n",
" [ 0.00392398, 0.03348278, 0.03348278, ..., -0.00805221,\n",
" 0.0154848 , -0.00750472],\n",
"...\n",
" [-0.00201967, -0.00201967, 0.02207788, ..., -0.00980181,\n",
" 0.0056432 , 0.005471 ],\n",
" [ 0.00927989, -0.01371571, 0.00995652, ..., 0.01313214,\n",
" 0.00552754, -0.03121882],\n",
" [-0.01371571, 0.02070858, 0.00995652, ..., -0.00992485,\n",
" -0.00201967, 0.02851705]],\n",
"\n",
" [[ 0.00590477, 0.00590477, 0.04141146, ..., -0.00734046,\n",
" 0.01773922, 0.01817486],\n",
" [ 0.02631364, 0.02695818, 0.02695818, ..., 0.01817486,\n",
" -0.01735209, 0.00590477],\n",
" [-0.00385141, -0.03256151, 0.01556668, ..., 0.05297228,\n",
" -0.00539479, -0.00539479],\n",
" ...,\n",
" [-0.05060744, 0.00590477, -0.00607142, ..., -0.00181728,\n",
" -0.0093627 , -0.00175811],\n",
" [ 0.02837762, 0.02916163, 0.02971542, ..., -0.00959942,\n",
" -0.00153021, 0.00590477],\n",
" [-0.00579127, -0.04935791, -0.03955761, ..., 0.00590477,\n",
" -0.00959942, -0.00902088]]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-eb2b1077-4c23-4140-be2e-601205fbd026' class='xr-section-summary-in' type='checkbox' ><label for='section-eb2b1077-4c23-4140-be2e-601205fbd026' 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>compZ_final_current</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-2049f4a2-4781-4bfd-ac0e-6d750aa5701d' class='xr-index-data-in' type='checkbox'/><label for='index-2049f4a2-4781-4bfd-ac0e-6d750aa5701d' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([0.248, 0.249, 0.25, 0.251, 0.252, 0.253, 0.254, 0.255, 0.256, 0.257,\n",
" 0.258, 0.259],\n",
" dtype=&#x27;float64&#x27;, name=&#x27;compZ_final_current&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-d4354e6b-f096-4621-9c98-542e06733f95' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-d4354e6b-f096-4621-9c98-542e06733f95' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset>\n",
"Dimensions: (compZ_final_current: 12, x: 400, y: 400)\n",
"Coordinates:\n",
" * compZ_final_current (compZ_final_current) float64 0.248 0.249 ... 0.259\n",
"Dimensions without coordinates: x, y\n",
"Data variables:\n",
" OD (compZ_final_current, x, y) float64 -0.01951 ... -0...."
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"res = DB.load_data(shotNum='0007', date='2023/06/14')\n",
"res['OD']"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
"Dimensions: (compZ_final_current: 12)\n",
"Coordinates:\n",
" * compZ_final_current (compZ_final_current) float64 0.248 0.249 ... 0.259\n",
"Data variables:\n",
" amplitude (compZ_final_current) float64 -2.044e+04 ... 6.686e+03\n",
" centerx (compZ_final_current) float64 144.9 557.9 ... 201.2\n",
" centery (compZ_final_current) float64 -6.568e+03 ... 197.2\n",
" sigmax (compZ_final_current) float64 122.9 709.2 ... 40.21\n",
" sigmay (compZ_final_current) float64 3.306e+04 50.49 ... 44.63\n",
" fwhmx (compZ_final_current) float64 289.5 1.67e+03 ... 94.7\n",
" fwhmy (compZ_final_current) float64 7.786e+04 118.9 ... 105.1\n",
" height (compZ_final_current) float64 -0.0008003 ... 0.593\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400</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-284abc23-9a17-45e5-958d-32b2b5175955' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-284abc23-9a17-45e5-958d-32b2b5175955' 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'>compZ_final_current</span>: 12</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-8fba5d0c-2bd5-41d0-9776-4f22586e25ab' class='xr-section-summary-in' type='checkbox' checked><label for='section-8fba5d0c-2bd5-41d0-9776-4f22586e25ab' 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'>compZ_final_current</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.248 0.249 0.25 ... 0.258 0.259</div><input id='attrs-bc838f8f-886d-430b-bb09-765582e7bdd5' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-bc838f8f-886d-430b-bb09-765582e7bdd5' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ddca89f1-8005-4b94-a2e6-7aa61ac117ff' class='xr-var-data-in' type='checkbox'><label for='data-ddca89f1-8005-4b94-a2e6-7aa61ac117ff' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([0.248, 0.249, 0.25 , 0.251, 0.252, 0.253, 0.254, 0.255, 0.256, 0.257,\n",
" 0.258, 0.259])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-dea75056-7046-45bb-9069-05fd2fd1f587' class='xr-section-summary-in' type='checkbox' checked><label for='section-dea75056-7046-45bb-9069-05fd2fd1f587' class='xr-section-summary' >Data variables: <span>(8)</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>amplitude</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-2.044e+04 -273.6 ... 6.686e+03</div><input id='attrs-91de576b-8369-46d6-9294-dde30c46e3e9' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-91de576b-8369-46d6-9294-dde30c46e3e9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-26241b0e-da55-43bf-9ed6-9e3c33a9de80' class='xr-var-data-in' type='checkbox'><label for='data-26241b0e-da55-43bf-9ed6-9e3c33a9de80' 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([-20442.74109002, -273.61108483, 70.5885231 , -71.03875977,\n",
" 178.4312635 , 321.40240204, 576.0459047 , 871.8315381 ,\n",
" 1673.53355997, 2908.31290951, 4377.56937295, 6686.44064824])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>centerx</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>144.9 557.9 214.9 ... 202.3 201.2</div><input id='attrs-500cd200-ad40-4afc-90ac-42dbe4a36cad' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-500cd200-ad40-4afc-90ac-42dbe4a36cad' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-428130c5-f7cc-422e-8f84-1e9385f16be4' class='xr-var-data-in' type='checkbox'><label for='data-428130c5-f7cc-422e-8f84-1e9385f16be4' 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([144.91365492, 557.94232697, 214.90455359, 185.92964493,\n",
" 210.28797894, 208.07625145, 202.79582489, 203.11027931,\n",
" 202.78776608, 202.13500236, 202.34700526, 201.15984146])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>centery</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-6.568e+03 60.07 ... 196.0 197.2</div><input id='attrs-f11e477f-ada2-46b7-82c2-db3094a2d89c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-f11e477f-ada2-46b7-82c2-db3094a2d89c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c24960dd-d288-4cd1-8b99-07e6e44bff50' class='xr-var-data-in' type='checkbox'><label for='data-c24960dd-d288-4cd1-8b99-07e6e44bff50' 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([-6568.09143246, 60.06686036, 193.9378948 , 28.37919358,\n",
" 193.85526165, 193.65148403, 195.51558338, 195.48876433,\n",
" 195.51914715, 196.17935207, 195.98008326, 197.17920194])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sigmax</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>122.9 709.2 21.46 ... 40.28 40.21</div><input id='attrs-0c9cfc02-c5f4-429e-86e1-2109ac595996' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-0c9cfc02-c5f4-429e-86e1-2109ac595996' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ba029ed9-f11e-4b0f-8fdc-940d9f9a69e3' class='xr-var-data-in' type='checkbox'><label for='data-ba029ed9-f11e-4b0f-8fdc-940d9f9a69e3' 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([122.94761624, 709.18367585, 21.45764906, 212.43989894,\n",
" 28.14694668, 31.72133167, 35.24394074, 37.21242498,\n",
" 39.00998718, 39.61528143, 40.27752468, 40.21352092])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sigmay</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>3.306e+04 50.49 ... 45.01 44.63</div><input id='attrs-73709769-4329-4e10-9afb-81bec0599e8d' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-73709769-4329-4e10-9afb-81bec0599e8d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ec778ff6-7d5a-4ee4-966c-d1cfc4e8bf85' class='xr-var-data-in' type='checkbox'><label for='data-ec778ff6-7d5a-4ee4-966c-d1cfc4e8bf85' 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([33064.70652473, 50.49046689, 37.86860165, 41.07760347,\n",
" 39.42629444, 44.19995953, 46.20519234, 46.43134344,\n",
" 46.20426636, 45.26946096, 45.0098166 , 44.62576272])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>fwhmx</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>289.5 1.67e+03 50.53 ... 94.85 94.7</div><input id='attrs-6b1b29bb-c9fb-4da6-962e-e97de8e9d082' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6b1b29bb-c9fb-4da6-962e-e97de8e9d082' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2240e7f3-1510-4fe1-836e-c0b8c3a545ce' class='xr-var-data-in' type='checkbox'><label for='data-2240e7f3-1510-4fe1-836e-c0b8c3a545ce' 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([ 289.51950566, 1669.99990357, 50.52890116, 500.25772281,\n",
" 66.28099299, 74.69802625, 82.99313653, 87.62856259,\n",
" 91.86149802, 93.28685701, 94.84632066, 94.69560334])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>fwhmy</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>7.786e+04 118.9 ... 106.0 105.1</div><input id='attrs-cf46bc45-faa0-422e-adcc-ee673d2e6a05' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-cf46bc45-faa0-422e-adcc-ee673d2e6a05' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4122029f-ad2b-4a20-b787-b5792f6119e4' class='xr-var-data-in' type='checkbox'><label for='data-4122029f-ad2b-4a20-b787-b5792f6119e4' 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([77861.43105834, 118.89595948, 89.17373921, 96.73036077,\n",
" 92.84182528, 104.08294714, 108.8049094 , 109.33745452,\n",
" 108.80272889, 106.60143048, 105.99001474, 105.085637 ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>height</span></div><div class='xr-var-dims'>(compZ_final_current)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-0.0008003 -0.001216 ... 0.593</div><input id='attrs-bc729ae7-0fbc-4f1a-9347-58a135e6a5bf' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-bc729ae7-0fbc-4f1a-9347-58a135e6a5bf' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-91efa109-f7b1-4ac9-b733-cf7144f0144d' class='xr-var-data-in' type='checkbox'><label for='data-91efa109-f7b1-4ac9-b733-cf7144f0144d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([-0.00080034, -0.00121615, 0.01382588, -0.00129561, 0.0255902 ,\n",
" 0.03648345, 0.05629915, 0.08030699, 0.1477735 , 0.25810302,\n",
" 0.3843112 , 0.59300351])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-614a492e-7f58-4b59-b860-743cf47cc921' class='xr-section-summary-in' type='checkbox' ><label for='section-614a492e-7f58-4b59-b860-743cf47cc921' 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>compZ_final_current</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-6ef5d344-e305-4214-aa5a-e04993639a76' class='xr-index-data-in' type='checkbox'/><label for='index-6ef5d344-e305-4214-aa5a-e04993639a76' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([0.248, 0.249, 0.25, 0.251, 0.252, 0.253, 0.254, 0.255, 0.256, 0.257,\n",
" 0.258, 0.259],\n",
" dtype=&#x27;float64&#x27;, name=&#x27;compZ_final_current&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e0a4c1ad-4e0e-4c59-ac96-463a2f241753' class='xr-section-summary-in' type='checkbox' ><label for='section-e0a4c1ad-4e0e-4c59-ac96-463a2f241753' 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>105</dd><dt><span>x_end :</span></dt><dd>505</dd><dt><span>y_end :</span></dt><dd>1075</dd><dt><span>y_start :</span></dt><dd>675</dd><dt><span>x_center :</span></dt><dd>305</dd><dt><span>y_center :</span></dt><dd>875</dd><dt><span>x_span :</span></dt><dd>400</dd><dt><span>y_span :</span></dt><dd>400</dd></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset>\n",
"Dimensions: (compZ_final_current: 12)\n",
"Coordinates:\n",
" * compZ_final_current (compZ_final_current) float64 0.248 0.249 ... 0.259\n",
"Data variables:\n",
" amplitude (compZ_final_current) float64 -2.044e+04 ... 6.686e+03\n",
" centerx (compZ_final_current) float64 144.9 557.9 ... 201.2\n",
" centery (compZ_final_current) float64 -6.568e+03 ... 197.2\n",
" sigmax (compZ_final_current) float64 122.9 709.2 ... 40.21\n",
" sigmay (compZ_final_current) float64 3.306e+04 50.49 ... 44.63\n",
" fwhmx (compZ_final_current) float64 289.5 1.67e+03 ... 94.7\n",
" fwhmy (compZ_final_current) float64 7.786e+04 118.9 ... 105.1\n",
" height (compZ_final_current) float64 -0.0008003 ... 0.593\n",
"Attributes:\n",
" IMAGE_SUBCLASS: IMAGE_GRAYSCALE\n",
" IMAGE_VERSION: 1.2\n",
" IMAGE_WHITE_IS_ZERO: 0\n",
" x_start: 105\n",
" x_end: 505\n",
" y_end: 1075\n",
" y_start: 675\n",
" x_center: 305\n",
" y_center: 875\n",
" x_span: 400\n",
" y_span: 400"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"res['testFit']"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<Figure size 640x480 with 0 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAADI0AAAEcCAYAAADwCaUwAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9e5idVXn/j78TJpANzAgDmSAREmTARAmFUUMxVmiLFQ+oKFXxBPr51aootvVU26pgRWtrr3r6wcd6oHxErYdqWw/1QAto4yFiVGKbCIMmSNAEHCQDGSQD+/vHs19Z73XvtSenGUniel/XXLP386xnnZ51n++19qx2u91WRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFxT6F2Q90ByoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiqmH3XTSEVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFxT6IummkoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqJiH0TdNFJRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUbEPom4aqaioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKio2AdRN41UVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFTsg6ibRioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKvZB1E0jFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUV+yDqppGKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiop9EHXTSEURH/nIR7R48WLNmTNHhxxyiCTp9NNP1+mnnz6j7V500UWaNWvWjLZRUfGbgErDFRX7JiptV1TsPaj0WlGxd6PScEXF3o9KxxUVezcqDVdU7P2odFxRsXej0nBFxd6PSscVFXs3Kg1XVOz9qHRcUVFRUbGnoW4a2Qcwa9as7f5ddNFFO1zf2rVrdf755+vYY4/VBz7wAf3jP/7jzHW+oogtW7booosu0jXXXPOA9eFDH/qQlixZorlz5+q4447Te9/73h167jvf+Y5e8YpX6BGPeIQOOuggHX300XrWs56lG264Ycrntm7dqoc//OGaNWuW3vnOd3bd/9nPfqaXvOQlOuaYY9RqtXTsscfqz/7sz/SLX/xil8a3J6HS8L6HSsPdNDw6OqpzzjlHhx56qA488EA99rGP1dVXX71LY9tbUGl738NvCm2ff/75xfW6ePHi6R7OHoNKr/seKr120+sll1yipz71qZo/f/5Or+k9HZWG9z1UGs5peO3atXrd616nk046Sf39/Xrwgx+sJz/5ybruuuumZax7Aiod73uodJzT8a233qrnP//5etjDHqb+/n4dcsghWrZsma644gq12+1pGe8DiUrD+x4qDU9t/370ox/VrFmzdPDBB+/S2PZEVDre91DpOKfjdevW9Vzb//zP/zwt430gUWl430Ol4bIsvummm/Tc5z5XQ0NDarVaOu644/SXf/mXuzXOPQWVjvc9VDrO6ZgE5l5/K1asmJYxP1CoNLzvodJwtyzel/O2pErH+yIqHXfT8W9i7lZFRUWOvge6AxW7j4985CM971100UW66aabdMopp+xwfddcc43uv/9+vfvd79bw8PC261/5yld2q58VO44tW7bo4osvltTsMP514/3vf79e+tKX6pnPfKb+7M/+TF//+td14YUXasuWLXr9618/5bPveMc7tGLFCv3hH/6hTjzxRP385z/X+973Po2MjOhb3/qWTjjhhOJz733ve3XzzTcX791111069dRTdffdd+vlL3+5jjrqKP3gBz/Q+973Pl199dX67ne/q9mz9949cJWG9z1UGs7x05/+VKeeeqr2228/vfa1r9VBBx2kyy+/XH/wB3+g//zP/9TjHve43R7znohK2/sefpNo+4ADDtAHP/jB7NqDHvSgaR/TnoJKr/seKr120+tf/dVf6YgjjtDJJ5+sL3/5y7s/yD0IlYb3PVQazmn4gx/8oD70oQ/pmc98pl7+8pfrzjvv1Pvf/3799m//tr70pS/pjDPOmJ6BP4CodLzvodJxTse33367brnlFp1zzjk6+uijtXXrVn31q1/V+eefrx/96Ed629veNj0Df4BQaXjfQ6Xh3vbvXXfdpde97nU66KCDdn2AeyAqHe97qHRcpuNzzz1XT3rSk7Jrp5566i6McM9CpeF9D5WGu2n4+9//vk4//XQtWLBAr371q3XYYYfp5ptv1k9/+tPdH/AegErH+x4qHed0/IxnPCNbi+Av/uIvdNddd+nRj370Lo50z0Cl4X0PlYZzGt7X87akSsf7Iiod53T8m5q7VVFREdCu2GfxgQ98oC2p/cpXvnKnnrv44ovbktq33XbbDPWsN9785je397Rled9997UnJiaK9+66664ZafO2225rS2q/+c1vnpH6p8KWLVvahx12WPvJT35ydv15z3te+6CDDmqPjY1N+fyKFSvav/rVr7JrN9xwQ/uAAw5oP+95zys+s3HjxvaDHvSg9lve8pa2pPbf/d3fZfc/+tGPtiW1P//5z2fX3/SmN7UltVetWrWjw9urUGl4elBpuMEDScMvf/nL2319fe21a9duu3b33Xe3jzrqqPbIyMjODG+fQKXt6UGl7QYzQdvnnXde+6CDDpqeju/lqPQ6Paj02uCBptef/OQn7Xb7gZ2bXzcqDU8PKg03eCBp+LrrrmuPj49n126//fb2vHnz2suXL9/u83szKh1PDyodN3igZXEJT3nKU9oHHXRQe3Jycpfr2JNRaXh6UGm4wZ5Cw69//evbD3vYw7b1Z19HpePpQaXjBg8kHf/kJz8p+q73dVQanh5UGm7wQNLwfffd1z7hhBPap5xySnvLli07OJJ9A5WOpweVjhvsKTo1uPnmm9uzZs1q/9Ef/dEuPb83oNLw9KDScIMHkoZ/U/O22u1Kx9OFSscNHkg6rrlbFRUV7Xa7vWdJhz0At9xyS/vFL35x+8EPfnB7//33by9atKj90pe+NGPCN910U/ucc85pH3rooe1Wq9U+5ZRTupSiq6++ui2p/YlPfKJ90UUXtY888sj2wQcf3H7mM5/Z/uUvf9m+55572q961ava8+bNax900EHt888/v33PPfdkdUhqX3DBBe0rr7yyffzxx7cPOOCA9sjISPvaa6/d7jh++MMftlutVvvkk0/uqncqLFy4sC0p+0Nwnnbaae3TTjutOMa3vvWt7QULFrQPOOCA9u/93u+1b7zxxqzer33ta+1zzjmnfdRRR7X333//9kMe8pD2n/zJn3Q5dXZVaVmzZk37D//wD9uHH354e+7cue3jjz++/Rd/8Rfb7p933nnthQsXdj1Xas/n/eEPf3i7r6+v/dnPfrZ9+eWXtyW1r7nmmvbLXvay9rx589qHHHLItue++MUvth/72Me2DzzwwPbBBx/cftKTntT+4Q9/mNWNkL7lllvaT3va09oHHXRQ+/DDD2+/+tWv3hYcxnHd6z3MNL7whS+0JbW/8IUvZNe/8Y1vtCW1P/KRj+xSvSMjIz0VjBe96EXtZcuWtX/84x8XnfaXXXZZW1L7O9/5TvH6mjVrtl2rNFxpuNLwnkfDS5cubT/60Y/ueu6CCy5oS2rfcMMN222/0nal7Urbvz7aZj4mJyfbd955507XWem10mul1z2bXrfnIK00XGm40vCeTcOOZzzjGe3BwcGu65WOKx1XOt576PgVr3hFe9asWdk6qjRcabjS8J5LwzfccEN7//33b3/hC1+YMiBf6bjScaXjPY+OfdPIXXf
"text/plain": [
"<Figure size 3700x300 with 13 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"plt.figure()\n",
"\n",
"res['OD'].OD.plot.pcolormesh(col='compZ_final_current', cmap='jet', vmin=0, vmax=1)\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
}
},
"nbformat": 4,
"nbformat_minor": 2
}