2023-08-01 18:52:06 +02:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Import supporting package"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import copy\n",
"import glob\n",
"from datetime import datetime\n",
"\n",
"# The package for data structure\n",
"import xarray as xr\n",
"import pandas as pd\n",
"import numpy as np\n",
"\n",
"# The packages for working with uncertainties\n",
"from uncertainties import ufloat\n",
"from uncertainties import unumpy as unp\n",
"from uncertainties import umath\n",
"\n",
"# The package for plotting\n",
"import matplotlib.pyplot as plt\n",
"plt.rcParams['font.size'] = 18 # Set the global font size\n",
"\n",
"# -------------- The modules written by us --------------\n",
"\n",
"# The packages for read data\n",
"from DataContainer.ReadData import read_hdf5_file, read_hdf5_global, read_hdf5_run_time, read_csv_file\n",
"\n",
"# The packages for data analysis\n",
"from Analyser.ImagingAnalyser import ImageAnalyser\n",
"from Analyser.FitAnalyser import FitAnalyser\n",
"from Analyser.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, Polylog22dModel\n",
"from Analyser.FFTAnalyser import fft, ifft, fft_nutou\n",
"from ToolFunction.ToolFunction import *\n",
"\n",
"# Add errorbar plot to xarray package\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"
]
},
{
"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",
2023-08-07 18:37:50 +02:00
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-f2bef319-3533-11ee-93d0-80e82ce2fa8e</p>\n",
2023-08-01 18:52:06 +02:00
" <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",
2023-08-07 18:37:50 +02:00
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">6feafb41</p>\n",
2023-08-01 18:52:06 +02:00
" <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> 6\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads:</strong> 60\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total memory:</strong> 55.88 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",
2023-08-07 18:37:50 +02:00
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-d874d42b-af02-44f9-8b31-e393671fca42</p>\n",
2023-08-01 18:52:06 +02:00
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Comm:</strong> tcp://127.0.0.1:62557\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Workers:</strong> 6\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> 60\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> 55.88 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",
2023-08-07 18:37:50 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:62591\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62595/status\" target=\"_blank\">http://127.0.0.1:62595/status</a>\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:62560\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-z88tts4o\n",
2023-08-01 18:52:06 +02:00
" </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",
2023-08-07 18:37:50 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:62587\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62588/status\" target=\"_blank\">http://127.0.0.1:62588/status</a>\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:62561\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-dnlgjo01\n",
2023-08-01 18:52:06 +02:00
" </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",
2023-08-07 18:37:50 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:62590\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62593/status\" target=\"_blank\">http://127.0.0.1:62593/status</a>\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:62562\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-jid5c__l\n",
2023-08-01 18:52:06 +02:00
" </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",
2023-08-07 18:37:50 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:62578\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62585/status\" target=\"_blank\">http://127.0.0.1:62585/status</a>\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:62563\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-g6ne7ypa\n",
2023-08-01 18:52:06 +02:00
" </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",
2023-08-07 18:37:50 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:62592\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62596/status\" target=\"_blank\">http://127.0.0.1:62596/status</a>\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:62564\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-q9ez95ng\n",
2023-08-01 18:52:06 +02:00
" </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",
2023-08-07 18:37:50 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:62599\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:62600/status\" target=\"_blank\">http://127.0.0.1:62600/status</a>\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:62565\n",
2023-08-01 18:52:06 +02:00
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
2023-08-07 18:37:50 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-52yeb577\n",
2023-08-01 18:52:06 +02:00
" </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": [
2023-08-07 18:37:50 +02:00
"<Client: 'tcp://127.0.0.1:62557' processes=6 threads=60, memory=55.88 GiB>"
2023-08-01 18:52:06 +02:00
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from dask.distributed import Client\n",
"client = Client(n_workers=6, threads_per_worker=10, processes=True, memory_limit='10GB')\n",
"client"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Load Data"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## With 10 Hz Modulation"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray 'CH1' (x: 1200)>\n",
"array([0.59 , 0.648, 0.62 , ..., 0.612, 0.576, 0.638])\n",
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398</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'>'CH1'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-3d9b8fab-33e7-4742-9d89-f17a9b75d35e' class='xr-array-in' type='checkbox' checked><label for='section-3d9b8fab-33e7-4742-9d89-f17a9b75d35e' 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.59 0.648 0.62 0.668 0.638 0.686 ... 0.582 0.544 0.612 0.576 0.638</span></div><div class='xr-array-data'><pre>array([0.59 , 0.648, 0.62 , ..., 0.612, 0.576, 0.638])</pre></div></div></li><li class='xr-section-item'><input id='section-d831cd50-e001-4e67-a945-46e6819ab05c' class='xr-section-summary-in' type='checkbox' checked><label for='section-d831cd50-e001-4e67-a945-46e6819ab05c' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.002 0.004 ... 2.396 2.398</div><input id='attrs-4ea7da9f-9ac8-4e87-bf65-f7b2c1e7c37e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-4ea7da9f-9ac8-4e87-bf65-f7b2c1e7c37e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9cc66621-0f93-4c99-9378-a76ddd5ec51b' class='xr-var-data-in' type='checkbox'><label for='data-9cc66621-0f93-4c99-9378-a76ddd5ec51b' 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.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-fc6402cb-311b-4051-ae36-9ffadb3b61c0' class='xr-section-summary-in' type='checkbox' ><label for='section-fc6402cb-311b-4051-ae36-9ffadb3b61c0' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-66ac611d-5c7d-457a-869f-a193fc0be7cb' class='xr-index-data-in' type='checkbox'/><label for='index-66ac611d-5c7d-457a-869f-a193fc0be7cb' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 0.002, 0.004,\n",
2023-08-01 18:52:06 +02:00
" 0.006, 0.008, 0.01,\n",
" 0.012, 0.014, 0.016,\n",
" 0.018000000000000002,\n",
" ...\n",
" 2.38, 2.382, 2.384,\n",
" 2.386, 2.388, 2.39,\n",
" 2.392, 2.394, 2.396,\n",
" 2.398],\n",
2023-08-07 18:37:50 +02:00
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-5d6ab24f-78cf-4c34-afcb-c0e2a68a3b47' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-5d6ab24f-78cf-4c34-afcb-c0e2a68a3b47' 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>"
2023-08-01 18:52:06 +02:00
],
"text/plain": [
"<xarray.DataArray 'CH1' (x: 1200)>\n",
"array([0.59 , 0.648, 0.62 , ..., 0.612, 0.576, 0.638])\n",
"Coordinates:\n",
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"filePath = r'F:\\Jianshun\\AccordionLatticeShorTermStability\\withModulation.csv'\n",
"\n",
"data = read_csv_file(filePath, csvEngine='pandas', csvKwargs=dict(header=[0], skiprows=[1], encoding = \"ISO-8859-1\",))\n",
"dataWithModulation = xr.DataArray(\n",
" data=data.CH1[0,:],\n",
" dims=['x'],\n",
" coords=dict(\n",
" x=data.X[0,:].to_numpy() * 2e-3\n",
" )\n",
")\n",
"dataWithModulation"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAnMAAAHECAYAAABSl6xeAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAADHKElEQVR4nO2deXxWxfX/P09IyJ6wKIQ9iCAgEZCiILggiGilWqliXUBRtFprtS6tS2mwX1zB/my1LtWKVhRF3GoVUIoVF0AUZBFBgbAjaxYSkpDk+f0R8uSuc2fmnrsl8369ePE8uXPPzDN37txzz5xzJhaPx+NQKBQKhUKhUESSpKAboFAoFAqFQqGQRylzCoVCoVAoFBFGKXMKhUKhUCgUEUYpcwqFQqFQKBQRRilzCoVCoVAoFBFGKXMKhUKhUCgUEUYpcwqFQqFQKBQRJjnoBijY1NXVYefOncjOzkYsFgu6OQqFQqFQKDiIx+MoKytDx44dkZTkre1MKXMhZ+fOnejSpUvQzVAoFAqFQiHBtm3b0LlzZ0/rUMpcyMnOzgZQPxhycnICbo1CoVAoFAoeSktL0aVLl8Rz3EuUMhdyGpZWc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ObX1mR+Exhmbvk6S/w7jc7XS2vvbJsK5ZsavSPkvUpWrR+D2Z+XoTfz13tXNiBa2Z+qf+Dy0kjrJtC7yw+jL/+9wdMe38d2f6zv5+7ytX52lZQOubf85b8uIgZFldfI05+SoGbrrJW5uTnh7zctMRnN3ty7tFY7N0ohc98Yh3
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"dataWithModulation.plot.errorbar()\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
2023-08-07 14:43:56 +02:00
"source": [
2023-08-07 18:37:50 +02:00
"dataWithModulation = dataWithModulation - dataWithModulation.mean()"
2023-08-07 14:43:56 +02:00
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 18:37:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAogAAAHECAYAAAC6O9swAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAADBRUlEQVR4nO2deXxWxdXHf09ISMjKIhBAIAiyIwKiolJFEcRCtVLFHbVFq1arVdvXHWzVUhHfvtWqVCtaURRxqxVBKSq4oCCIIKICYd+XJCQkgeR5/wh5cvc7M/fc5Xlyvp8PH54nd+6ZeebOnXvumXPOxOLxeBwMwzAMwzAMc4S0sBvAMAzDMAzDRAtWEBmGYRiGYRgdrCAyDMMwDMMwOlhBZBiGYRiGYXSwgsgwDMMwDMPoYAWRYRiGYRiG0cEKIsMwDMMwDKMjPewGMMFTW1uLrVu3Ii8vD7FYLOzmMAzDMAwjQDweR1lZGdq3b4+0NH9tfKwgNkK2bt2Kjh07ht0MhmEYhmEU2LRpE44++mhf62AFsRGSl5cHoG6A5efnh9wahmEYhmFEKC0tRceOHRPPcT9hBbERUr+snJ+f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4+LLroIFRUVOPXUU7FmzRqUlJSgpKQE9913HwDgueeewyOPPKLUNr/RWou8UrynHJv2Nrwxe9nuyJhqolIx55ZWsTxcG8cyg2XSC5TzkJcJeFtppc4va+4qdd/G+zV+nwBQRbSdlhcee//7sJsgRBTy593yynLT3+Yp+llSLisCeoukl8AlbbvW7QpfKa+nnCj4wsqrkjLnoAq
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"dataWithModulation.plot.errorbar(ax=ax)\n",
"# ax.set_xlim([0.5, 1])\n",
"# ax.set_ylim([0, 0.25])\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
"dataWithModulationFFT = fft(dataWithModulation)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkUAAAHHCAYAAACx7iyPAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABc20lEQVR4nO3deXxTVcL/8U+6N01XEMpeRChLi4OADgMIDMjOjM8wjriMuKGjPjoi6OioCG6IgjzPb1weBRR0EMaKOgz7IiqLoCzKVkCWsrQUoUDTNnRL7u+P2pjSpiRpoU34vl+vvF5pzj0nJ7c3yTf3nnOvyTAMAxEREZHLXFBdd0BERESkPlAoEhEREUGhSERERARQKBIREREBFIpEREREAIUiEREREUChSERERARQKBIREREBFIpEREREAAip6w74C4fDQVZWFtHR0ZhMprrujoiIiHjAMAzy8vJo2rQpQUHV7wuqUSjKy8tj2rRpLFiwgEOHDhEcHEy7du0YNWoUDz/8MGFhYV63efbsWb766iu2bNnC1q1b2bJlC9nZ2QC8//773HnnndXW379/PwsXLmTNmjVs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ERFBo0aNGDRoEAsWLPCpXyIiIhLYQnytePjwYfr27UtGRgYAZrOZoqIiNm/ezObNm5k7dy6rV68mPj7eq3Y///xz7rrrLl+7BcCSJUu46aabsNlsAMTExJCTk8OKFStYsWIFd911F7NmzcJkMtXoeURERCRw+LSnyG63M2LECDIyMmjSpAkrV66koKAAm83G/PnziY6OZtu2bdx2220+dSoxMZEhQ4bw9NNPe71n59ChQ/zpT3/CZrPRs2dP9u7dS25uLrm5uUyYMAGA999/n9dee82nvomIiEhg8mlP0ezZs9mxYwcACxYsoEePHgAEBQVx880343A4uPXWW1m6dCmrV6+mf//+Hrd9++23c+edd/rSLQAmTJhAQUEBiYmJLFq0iLi4OAAsFguTJk0iOzubd999l5deeokxY8Z4vSdLREREApNPe4rmzJkDQL9+/ZyByNWoUaNo3bo1AB988IFXbYeE+HxEj4KCAueepQceeMAZiFw99dRTAFitVj7//HOfn0tEREQCi9ehyGazsX79egCGDBlS5TImk4nBgwcDsGLFihp0zzvr1q3j3Llz1fYtKSmJDh06XPK+iYiISP3mdShKT0/H4XAAkJKS4na58rLs7GxOnz7tY/e8s3PnTuf9Tp06uV2uvG+7du266H0SERER/+B1KMrKynLeb9asmdvlXMtc61xM5c8THx+P2Wx2u1x53y5Vv0RERKT+83oAT15envN+dcHDtcy1zsVU/jzV9cu1vLp+FRUVUVRU5PzbarXWQg9FRESkvtIZrd2YPHkysbGxzluLFi3quksiIiJyEXkdiqKjo533y0+OWBXXMtc6F1P581TXL9fy6vr11FNPOc9vlJuby9GjR2uvoyIiIlLveB2KmjZt6ryfmZnpdjnXMtc6F1P585w5c6baYFTet+r6FR4eTkxMTIWbiFy+jLrugIhcdF6Hog4dOhAUVFbNdbbX+crLEhMTSUhI8LF73nGdDVfdzLLyvlU3Q01EREQuL16HIrPZTM+ePQFYtmxZlcsYhsHy5csBGDhwYA26551evXoRGRlZbd8OHz5Menr6Je+biPg3XSlRJPD5NNB69OjRAKxZs4ZNmzZVKk9LS+PgwYMA3HHHHTXonneioqIYOXIkAG+//Ta5ubmVlpkyZQpQNp7oxhtvvGR9ExERkfrN51CUmpqKYRiMHDmS1atXA+BwOEhLS2PMmDFA2Vmlz7/u2cSJEzGZTJhMJjIyMqps/9SpUxVu5fLz8ys
2023-08-07 14:43:56 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"abs(dataWithModulationFFT).plot.errorbar(ax=ax, x='freq_x')\n",
2023-08-07 18:37:50 +02:00
"# ax.set_xlim([0.5, 1])\n",
"# ax.set_ylim([0, 0.25])\n",
2023-08-07 14:43:56 +02:00
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Without Modulation"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 9,
2023-08-01 18:52:06 +02:00
"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",
2023-08-07 14:43:56 +02:00
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray 'CH1' (x: 1200)>\n",
"array([0.59 , 0.74 , 0.75 , ..., 0.744, 0.738, 0.586])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398</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'>'CH1'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-65679b30-5eaa-4ff9-89cf-4715fd8d6c7a' class='xr-array-in' type='checkbox' checked><label for='section-65679b30-5eaa-4ff9-89cf-4715fd8d6c7a' 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.59 0.74 0.75 0.576 0.732 0.572 ... 0.746 0.582 0.744 0.738 0.586</span></div><div class='xr-array-data'><pre>array([0.59 , 0.74 , 0.75 , ..., 0.744, 0.738, 0.586])</pre></div></div></li><li class='xr-section-item'><input id='section-a1bba0ba-f579-40b0-8093-c842e7b8d880' class='xr-section-summary-in' type='checkbox' checked><label for='section-a1bba0ba-f579-40b0-8093-c842e7b8d880' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.002 0.004 ... 2.396 2.398</div><input id='attrs-aa45aff3-be45-4059-83ea-5bd56f52a536' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-aa45aff3-be45-4059-83ea-5bd56f52a536' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a97847ea-34db-47e0-b996-5f5211691cc7' class='xr-var-data-in' type='checkbox'><label for='data-a97847ea-34db-47e0-b996-5f5211691cc7' 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.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-dbe21854-f811-459a-a2d5-ae5c51125ab8' class='xr-section-summary-in' type='checkbox' ><label for='section-dbe21854-f811-459a-a2d5-ae5c51125ab8' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-6546220e-51f0-4d35-97ee-f550fac4cb28' class='xr-index-data-in' type='checkbox'/><label for='index-6546220e-51f0-4d35-97ee-f550fac4cb28' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 0.002, 0.004,\n",
2023-08-07 14:43:56 +02:00
" 0.006, 0.008, 0.01,\n",
" 0.012, 0.014, 0.016,\n",
" 0.018000000000000002,\n",
2023-08-01 18:52:06 +02:00
" ...\n",
2023-08-07 14:43:56 +02:00
" 2.38, 2.382, 2.384,\n",
" 2.386, 2.388, 2.39,\n",
" 2.392, 2.394, 2.396,\n",
" 2.398],\n",
2023-08-07 18:37:50 +02:00
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e2fb5382-c7a6-4e5a-85fb-639cd98052a4' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-e2fb5382-c7a6-4e5a-85fb-639cd98052a4' 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>"
2023-08-01 18:52:06 +02:00
],
"text/plain": [
2023-08-07 14:43:56 +02:00
"<xarray.DataArray 'CH1' (x: 1200)>\n",
"array([0.59 , 0.74 , 0.75 , ..., 0.744, 0.738, 0.586])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
2023-08-07 14:43:56 +02:00
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398"
2023-08-01 18:52:06 +02:00
]
},
2023-08-07 18:37:50 +02:00
"execution_count": 9,
2023-08-01 18:52:06 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
2023-08-01 18:52:06 +02:00
"source": [
2023-08-07 14:43:56 +02:00
"filePath = r'F:\\Jianshun\\AccordionLatticeShorTermStability\\withoutModulation.csv'\n",
"\n",
"data = read_csv_file(filePath, csvEngine='pandas', csvKwargs=dict(header=[0], skiprows=[1], encoding = \"ISO-8859-1\",))\n",
"dataWithoutModulation = xr.DataArray(\n",
" data=data.CH1[0,:],\n",
" dims=['x'],\n",
" coords=dict(\n",
" x=data.X[0,:].to_numpy() * 2e-3\n",
" )\n",
")\n",
"dataWithoutModulation"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 10,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoYAAAHECAYAAACk8uuDAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAADu3klEQVR4nOz9e7xdVXU2jj97n30uObmcJEhIgEgiFwETKyACL0GJoIQq1kJpUCjgBSz2bV99rbWIxcTPi5cW/bb92B9aUcCSiiKCWjVAI1RBwCKpEIjcQrglIZLbSXKSc9l7/f7YZ64919rzMsacc+2zdzKfz4cPSfZea829LnON+YxnPKOUJEmCiIiIiIiIiIiI/R7liR5AREREREREREREeyAGhhEREREREREREQBiYBgRERERERERETGOGBhGREREREREREQAiIFhRERERERERETEOGJgGBERERERERERASAGhhEREREREREREeOoTPQAIsyo1WrYsGEDpk6dilKpNNHDiYiIiIiIiCAgSRLs3LkTBx98MMrlzuHhYmDY5tiwYQPmzp070cOIiIiIiIiIcMCLL76IQw89dKKHQUYMDNscU6dOBVC/saZNmzbBo4mIiIiIiIigYHBwEHPnzk3f452CGBi2OUT6eNq0aTEwjIiIiIiI6DB0mgysc5LeERERERERERERhSIGhhEREREREREREQBiYBgRERERERERETGOGBhGREREREREREQAiIFhRERERERERETEOGJgGBERERERERERASAGhhEREREREREREeOIgWFERERERERERASAGBhGRERERERERESMIwaGERERERERERERAGJgGBERERERERERMY4YGEZERERERERERACIgWFERERERERERMQ4YmAYEREREREREREBIAaGERERERERERER44iBYUREREREREREBIAYGEZERERERERERIwjBoYREREREREREREAYmAYERERERERERExjhgYRkREREREREREAIiBYURERERERERExDhiYBgREREREREREQEgBoYRERERERERERHjiIFhREREREREREQEAKAy0QOIiIiI4KBaS/Dr57Zi8869mDW1D2+ZPxNd5dJEDysiIiJin0AMDCMiIjoGK9dsxPIfP4GNO/am/zZnoA+fPedYLFkwZwJHFhEREbFvIKaSIyIiOgIr12zEFTc/kgkKAWDTjr244uZHsHLNxgkaWURERMS+g8gYRkREtD2qtQTLf/wEEsVnCYASgOU/fgLvOHb2hKeVY6rbjniOIiLaFzEwjIiIaHv8+rmtTUyhjATAxh178evntuKUww9o3cByiKluO+I5iohob8RUckRERNtj8059UOjyvSIQU912xHMUEdH+iIFhRERE22PW1L6g3wsNW6obqKe6qzXVN/YPxHMU0SpUawkeeHYLfvg/L+OBZ7fEe4qJmEqOiIhoe7xl/kzMGejDph17lYFFCcDsgbpWbSLQKanuiUQ8RxGtQJQq+CMyhhEREW2PrnIJnz3nWAD1IFCG+Ptnzzl2wgoYOiHVPdGI5yiiaESpQhjEwDAiIqIjsGTBHFx30fGYPZBNF88e6MN1Fx0/oWxAu6e62wHxHEUUiYmQKuyrKeuYSo6IiOgYLFkwB+84djZO/sJ/4vc7R/C+E+fi//3xwgm3Omn3VHc7IJ6jiCLRaqnCvpyyjoxhRERER6GrXEJXqT51zZk+acKDQiCb6s6jHVLd7YB4jiKKRCulCvt6yjoGhhERE4B9NQXRKoxWawCAsfH/twNEqvs1U3oy/94Oqe52gThH0/qyyap4juiIc4carZIq7A/V9TGVHBHRYuzLKYhWYWQ8IBypttfku2T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wd33303du/ejaGhIdxyyy2YOnUqVq9ejQsvvJC137lz52LTpk3G//7
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"dataWithoutModulation.plot.errorbar(fmt='o-')\n",
"plt.xlim([0, 0.15])\n",
"plt.show()"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"dataWithoutModulation = dataWithoutModulation - dataWithoutModulation.mean()"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAogAAAHECAYAAAC6O9swAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABudUlEQVR4nO3deXwTdf4/8Fd63wcglLvIDS3IpSCgVJBDYdeVRVCUQxdcRVwPdNcLwa/IIuD+XFEUcTkURRFFRI5CBQWUowUFSuUq5SrlaOl9N/P7IyRMkkkyk0yOaV7Px6MPSmbmk0+mk+Q978+lEwRBABERERHRdQHergARERER+RYGiERERERkhgEiEREREZlhgEhEREREZhggEhEREZEZBohEREREZIYBIhERERGZCfJ2Bcjz9Ho9cnNzER0dDZ1O5+3qEBERkQyCIKCkpATNmjVDQIB7c3wMEP1Qbm4uWrZs6e1qEBERkRPOnTuHFi1auPU5GCD6oejoaACGCywmJsbLtSEiIiI5iouL0bJlS9P3uDsxQPRDxmblmJgYBohEREQa44nuYRykQkRERERmGCASERERkRkGiERERERkhgEiEREREZlhgEhEREREZhggEhEREZEZBohEREREZIYBIhERERGZYYBIRERERGYYIBIRERGRGQaIRERERGSGASIRERERmWGASOQmFdV13q4CERGRUxggErnBf7YeR+eZm/Hz8SvergoREZFiDBCJ3ODdtBMAgNfXZ3q5JkRERMoxQCRyI53O2zUgIiJSj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ejQoQPi4uIQGxuL119
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"dataWithoutModulation.plot.errorbar(ax=ax)\n",
"# ax.set_xlim([0.5, 1])\n",
"# ax.set_ylim([0, 0.25])\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
"dataWithModulationFFT = fft(dataWithModulation)"
]
},
{
"cell_type": "code",
"execution_count": 14,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [],
"source": [
"dataWithoutModulationFFT = fft(dataWithoutModulation)"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 15,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAHPCAYAAABpxG/+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAACaUUlEQVR4nO3deXwU9fkH8M/uZnNsNgnhDDeoEEAQMYAiUEAQpGi1WgWPelatWg8EbbEeWKu2Ctr+ijdW0aJUvIrIJYgKKDdyH3IEEAhHQs7Nscf8/tjM5DuzM7Mzm2QT4PN+vXwZdndmZ8959vk+3+frkCRJAhERERHVK2dDHwARERHRmYBBFxEREVEcMOgiIiIiigMGXURERERxwKCLiIiIKA4YdBERERHFAYMuIiIiojhg0EVEREQUBwy6iIiIiOKAQRcRERFRHNQq6CopKcHkyZPRq1cveL1eZGRkoF+/fpg6dSqqqqpqdWBHjx7FhAkTkJ2djZSUFDRt2hSDBw/G9OnTYbZy0a233gqHwxH1v0AgUKvjIyIiIrLDEevai/v378fQoUORm5sLAPB4PAgGg6isrAQA9OnTB0uWLEFmZqbtfa9btw6jRo1Cf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Wc5kRW1zs3bvX1rZEREREsbIddHXv3l0pRBNnG2rJ12VlZVkqogfUMxat7LtHjx6W9ktERETU0GwHXR6PBwMHDgQALFiwQPc2kiRh4cKFAMLrJFqVnZ2NDh06mO67rKwMy5Yts71v2cqVK5W/9ZqvEhEREdWHmOZO3nLLLQCApUuXYtWqVRHXz549Wxm6u/nmm23tW779rFmzlMW0Ra+88gpKS0vhcrki1naMtnZ3QUEBnnvuOQBAu3bt0KdPH1vHRkRERBSrmIOuXr16QZIkXHPNNcr6iqFQCLNnz8add94JINxVfvjw4aptJ0+eDIfDAYfDoRtUTZw4EVlZWfD5fBgzZgzWrVsHAKiqqsJrr72GJ554AgBw1113oWvXrqpt//Of/+Dqq6/GJ598gmPHjimXl5eX4/PPP8dFF12kBINTpkxp8H4dREREdOaIqWVEQkIC5syZg2HDhiE3NxcjRoyAx+NBKBRCRUUFAKBPnz4xrY2YkZGBuXPnYtSoUdi2bRv69u2LtLQ0VFRUwO/3AwgPK7788ssR2waDQXz22Wf47LPPAACpqalITk5GYWEhgsEggPCsxJdeegljx46N5aETERERxSTmVE+nTp2wadMmPPnkk+jZsyccDgfcbjdycnIwZcoUrFy5EpmZmTHtOycnB1u3bsX48ePRpUsX+P1+pKamYtCgQXjrrbcwf/583XYOw4YNw7PPPovLL78cZ599NtxuN4qKipCeno5+/frhj3/8I7Zv345777031odNREREFBOHFK0QigCEm6tlZGQoQRwRERE1fo3p/M2iJiIiIqI4YNBFREREFAcMuoiIiIjigEEXERERURww6CIiIiKKAwZdRERERHHAoIuIiIgoDhh0EREREcUBgy4iIiKiOGDQRURERBQHDLqIiIiI4oBBFxEREVEcMOgiIiIiigMGXURERERxwKCLiIiIKA4YdBERERHFAYMuIiIiojhg0EVEREQUBwy6iIiIiOKAQRcRERFRHDDoIiIiIooDBl1EREREccCgi4iIiCgOGHQRERERxQGDLiIiIqI4YNBFREREFAcMuoiIiIjigEEXERERURww6CIiIiKKAwZdRERERHHAoIuIiIgoDhh0EREREcUBgy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4MJo2bVrn+y4uLkZpaSm8Xq/q+i+++AIffPABevbsiUcffTTq/eqprKxUZmLK90VEREQUK9uZrpKSEuVvj8djeDvxOnGb+t53UVER7rnnHji
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
2023-08-07 14:43:56 +02:00
"abs(dataWithoutModulationFFT).plot.errorbar(ax=ax, x='freq_x')\n",
"ax.set_xlim([0.5, 250])\n",
"ax.set_ylim([0, 0.05])\n",
2023-08-01 18:52:06 +02:00
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2023-08-07 14:43:56 +02:00
"## Dark"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 16,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray 'CH1' (x: 1200)>\n",
2023-08-07 14:43:56 +02:00
"array([-0.0376, -0.0336, -0.0328, ..., -0.0328, -0.0336, -0.0388])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398</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'>'CH1'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-a50e155f-54b3-4d46-84cc-f7448f5df969' class='xr-array-in' type='checkbox' checked><label for='section-a50e155f-54b3-4d46-84cc-f7448f5df969' 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.0376 -0.0336 -0.0328 -0.0374 ... -0.038 -0.0328 -0.0336 -0.0388</span></div><div class='xr-array-data'><pre>array([-0.0376, -0.0336, -0.0328, ..., -0.0328, -0.0336, -0.0388])</pre></div></div></li><li class='xr-section-item'><input id='section-f8b92283-d7f4-4964-a2fd-32ab92f5418c' class='xr-section-summary-in' type='checkbox' checked><label for='section-f8b92283-d7f4-4964-a2fd-32ab92f5418c' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.002 0.004 ... 2.396 2.398</div><input id='attrs-d7c0c185-49ed-4015-92b8-2d517b52d676' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d7c0c185-49ed-4015-92b8-2d517b52d676' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9d8ba920-afa3-4ca4-9a06-1a2e970bfa5b' class='xr-var-data-in' type='checkbox'><label for='data-9d8ba920-afa3-4ca4-9a06-1a2e970bfa5b' 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.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-4b26487b-960f-419d-bfcf-b0d20b84bf91' class='xr-section-summary-in' type='checkbox' ><label for='section-4b26487b-960f-419d-bfcf-b0d20b84bf91' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-4333720f-1d9a-4942-a55b-c46bdaa92ab6' class='xr-index-data-in' type='checkbox'/><label for='index-4333720f-1d9a-4942-a55b-c46bdaa92ab6' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 0.002, 0.004,\n",
2023-08-01 18:52:06 +02:00
" 0.006, 0.008, 0.01,\n",
" 0.012, 0.014, 0.016,\n",
" 0.018000000000000002,\n",
" ...\n",
" 2.38, 2.382, 2.384,\n",
" 2.386, 2.388, 2.39,\n",
" 2.392, 2.394, 2.396,\n",
" 2.398],\n",
2023-08-07 18:37:50 +02:00
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-3901bc48-674e-4f94-a591-7ee2dbb7e636' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-3901bc48-674e-4f94-a591-7ee2dbb7e636' 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>"
2023-08-01 18:52:06 +02:00
],
"text/plain": [
"<xarray.DataArray 'CH1' (x: 1200)>\n",
2023-08-07 14:43:56 +02:00
"array([-0.0376, -0.0336, -0.0328, ..., -0.0328, -0.0336, -0.0388])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398"
]
},
2023-08-07 18:37:50 +02:00
"execution_count": 16,
2023-08-01 18:52:06 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"filePath = r'F:\\Jianshun\\AccordionLatticeShorTermStability\\dark.csv'\n",
2023-08-01 18:52:06 +02:00
"\n",
"data = read_csv_file(filePath, csvEngine='pandas', csvKwargs=dict(header=[0], skiprows=[1], encoding = \"ISO-8859-1\",))\n",
2023-08-07 14:43:56 +02:00
"dataDark = xr.DataArray(\n",
2023-08-01 18:52:06 +02:00
" data=data.CH1[0,:],\n",
" dims=['x'],\n",
" coords=dict(\n",
" x=data.X[0,:].to_numpy() * 2e-3\n",
" )\n",
")\n",
2023-08-07 14:43:56 +02:00
"dataDark"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 17,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAApgAAAHECAYAAACdlVrYAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAACFJUlEQVR4nO3deXwTZf4H8E9636VFaCk3AuVoQS4FAaWCHAse64mi4oUHiiuCungB64HKobsLCyIuxy6CsqI/QLkFBRTlUmjLDQUslJue9Mz8/ggJk2QmmUkmyUzzeb9evEgzM888mczxzTPP8x2TIAgCiIiIiIg0EhLoChARERFR7cIAk4iIiIg0xQCTiIiIiDTFAJOIiIiINMUAk4iIiIg0xQCTiIiIiDTFAJOIiIiINBUW6AqQ8ZjNZpw8eRLx8fEwmUyBrg4REREpIAgCiouLkZaWhpAQ37YxMsAk1U6ePInGjRsHuhpERETkgRMnTqBRo0Y+XQcDTFItPj4egGUHTUhICHBtiIiISImioiI0btzYdh33JQaYpJr1tnhCQgIDTCIiIoPxR/c2DvIhIiIiIk0xwCQiIiIiTTHAJCIiIiJNMcAkIiIiIk0xwCQiIiIiTTHAJCIiIiJNMcAkIiIiIk0xwCQiIiIiTTHAJCIiIiJNMcAkIiIiIk0xwCQiIiIiTTHAJCIiIiJNMcAkMojLlTWBrgIREZEiDDCJDOCf6w+i7VursGHfmUBXhYiIyC0GmEQGMHXtAQDAG99kB7gmRERE7jHAJCIiIiJNMcAkIiIiIk0xwCQiIiIiTTHAJDIQQRACXQUiIiK3GGASERERkaYYYBIZiMlkCnQVSEfW7z2N305cCnQ1iIichAW6AkREpN6RsyV4Yv52AEDe+4MDXBsiIntB34JZXFyMCRMmIDMzE3FxcUhMTES3bt0wdepUVFZWel3+6dOnMWbMGKSnpyM6OhrJycno3bs35syZ47I/3fLlyzF27FhkZWXh2muvRUJCAiIiIpCWloZBgwZh7ty5qK6ull1+9+7dePfddzFgwAA0bNgQERERiI+PR0ZGBl544QUcOHDA689GRIFz/EJZoKtARCTLJATxqIFjx46hT58+yMvLAwDExMSgpqYGFRUVAIBOnTph/fr1SEpK8qj8HTt2YMCAATh//jwAIC4uDuXl5bbAsH///li2bBkiIyOdls3IyEBOTo7t7/j4eFRVVaG8vNz2XufOnfHdd98hJSXFbtmFCxfioYcesnsvMTERJSUlqKmxPG4wIiIC//jHP/D000+r/lxFRUVITExEYWEhEhISVC9P6jX767cAgLTEKPw0rm+Aa0N6sGH/GTw2dxsAtmASkTL+vH4HbQtmTU0NbrvtNuTl5aFBgwZYu3YtSktLUVZWhsWLFyM+Ph67du3CsGHDPCq/sLAQQ4YMwfnz59GmTRts27YNxcXFKC0txfTp0xEeHo41a9Zg9OjRksvfc889mD17NnJyclBWVoaioiJcvnwZ+fn5mDhxIkJCQrBz504MHz7cadmqqipERkbioYcewrfffovCwkJcunQJZWVlWLduHTIyMlBZWYlnn30W69at8+jzEVGABW3TABEZghCk5syZI8ByihZ++uknp+mff/65bfq6detUl//GG28IAITo6GjhyJEjTtPfe+89AYAQGhoq7N+/X3X548aNs9XvxIkTdtP27dsn5Ofnyy578eJFITU1VQAg9O3bV/W6CwsLBQBCYWGh6mXJM01fXSE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t2YMmUKli5diqNHjyI8PBzt27fHAw88gFGjRiEiIsLj8rt06YKcnBx88MEHWLFiBU6cOIHY2FhkZGRg+PDhePzxxyXzUA4ePBizZ8/Gxo0b8fvvv+P06dO4ePE
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"dataDark.plot.errorbar()\n",
2023-08-01 18:52:06 +02:00
"plt.show()"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"dataDark = dataDark - dataDark.mean()"
]
},
{
"cell_type": "code",
"execution_count": 19,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [],
"source": [
2023-08-07 14:43:56 +02:00
"dataDarkFFT = fft(dataDark)"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 20,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAHPCAYAAABpxG/+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABKZklEQVR4nO3deXyU5b338e9kz2QmQwJC2EELAST6YEClkEpcWAq2ttZKxYraQo9aeqQsPbQu2B6xVdA+T1Fbwbr0oFTUehBlEURFFISIIltYQkIkhCUJk2WYLDPX80ea6cQsZCbhTqif9+s1r9edua7rN9fMnTvzzcy92IwxRgAAADinItp7AgAAAF8HhC4AAAALELoAAAAsQOgCAACwAKELAADAAoQuAAAACxC6AAAALEDoAgAAsAChCwAAwAKELgAAAAu0KnSVlZVp/vz5SktLk8PhkMvl0ogRI7Ro0SJVVVW1amLHjx/XrFmzlJqaq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goICJScnt3nt0tJSlZeXy+Fw1Gt/88039dJLL2no0KGaO3fuWR+3MZWVlYEjMeseCwAAIFwhf9JVVlYWWLbb7U32C24LHnOua7vdbt11112KiIjQkiVLFB0d3aLH/qpHHnlELpcrcOvdu3dYdQAAAKR/wzPSz5o1S0ePHtXdd9+tK6+8Muw68+bNk9vtDtzy8/PbcJYAAODrJuSvF51OZ2DZ4/E02S+4LXhMKLWbOolZU7XXr1+vZ59
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
2023-08-07 14:43:56 +02:00
"abs(dataDarkFFT).plot.errorbar(ax=ax, x='freq_x')\n",
2023-08-01 18:52:06 +02:00
"ax.set_xlim([0.5, 250])\n",
"ax.set_ylim([0, 0.05])\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2023-08-07 14:43:56 +02:00
"## Only One Beam"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 21,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray 'CH1' (x: 1200)>\n",
2023-08-07 14:43:56 +02:00
"array([0.229, 0.242, 0.241, ..., 0.225, 0.225, 0.235])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398</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'>'CH1'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-b7e78c7c-7134-42a6-824b-0b53f19ef2e5' class='xr-array-in' type='checkbox' checked><label for='section-b7e78c7c-7134-42a6-824b-0b53f19ef2e5' 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.229 0.242 0.241 0.227 0.242 0.227 ... 0.237 0.237 0.225 0.225 0.235</span></div><div class='xr-array-data'><pre>array([0.229, 0.242, 0.241, ..., 0.225, 0.225, 0.235])</pre></div></div></li><li class='xr-section-item'><input id='section-29d4fd3a-d80c-4f9b-8f5d-691555f92266' class='xr-section-summary-in' type='checkbox' checked><label for='section-29d4fd3a-d80c-4f9b-8f5d-691555f92266' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.002 0.004 ... 2.396 2.398</div><input id='attrs-3758bcb0-96ee-4102-bc8a-ee79c06b8f6d' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3758bcb0-96ee-4102-bc8a-ee79c06b8f6d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f9a571ca-d791-4c7c-a423-3ffc606f3fbc' class='xr-var-data-in' type='checkbox'><label for='data-f9a571ca-d791-4c7c-a423-3ffc606f3fbc' 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.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-78831768-94ae-40a1-a66e-7e9b555e379c' class='xr-section-summary-in' type='checkbox' ><label for='section-78831768-94ae-40a1-a66e-7e9b555e379c' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-93558b68-c74f-476f-a4e4-22959b390fc9' class='xr-index-data-in' type='checkbox'/><label for='index-93558b68-c74f-476f-a4e4-22959b390fc9' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 0.002, 0.004,\n",
2023-08-01 18:52:06 +02:00
" 0.006, 0.008, 0.01,\n",
" 0.012, 0.014, 0.016,\n",
" 0.018000000000000002,\n",
" ...\n",
" 2.38, 2.382, 2.384,\n",
" 2.386, 2.388, 2.39,\n",
" 2.392, 2.394, 2.396,\n",
" 2.398],\n",
2023-08-07 18:37:50 +02:00
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-fbe5da7b-c284-457c-adae-1b70667478a7' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-fbe5da7b-c284-457c-adae-1b70667478a7' 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>"
2023-08-01 18:52:06 +02:00
],
"text/plain": [
"<xarray.DataArray 'CH1' (x: 1200)>\n",
2023-08-07 14:43:56 +02:00
"array([0.229, 0.242, 0.241, ..., 0.225, 0.225, 0.235])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398"
]
},
2023-08-07 18:37:50 +02:00
"execution_count": 21,
2023-08-01 18:52:06 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"filePath = r'F:\\Jianshun\\AccordionLatticeShorTermStability\\onlyOneBeam.csv'\n",
2023-08-01 18:52:06 +02:00
"\n",
"data = read_csv_file(filePath, csvEngine='pandas', csvKwargs=dict(header=[0], skiprows=[1], encoding = \"ISO-8859-1\",))\n",
2023-08-07 14:43:56 +02:00
"dataOnlyOneBeam = xr.DataArray(\n",
2023-08-01 18:52:06 +02:00
" data=data.CH1[0,:],\n",
" dims=['x'],\n",
" coords=dict(\n",
" x=data.X[0,:].to_numpy() * 2e-3\n",
" )\n",
")\n",
2023-08-07 14:43:56 +02:00
"dataOnlyOneBeam"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 22,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoMAAAHECAYAAABC2yDHAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAAB29klEQVR4nO3dd3wUdf4/8Nfupm4aAUwoQUJVSlRQVIoUEQTBLlIFD7FxP64i31NPCXonKOCdZzlElHLST+REKdI7IgEpMSglgRgIBEKy6cnuzu+PdZfZvjNbZ/f1fDx4sNmZ+cxnZj87895PG5UgCAKIiIiIKCKpg50BIiIiIgoeBoNEREREEYzBIBEREVEEYzBIREREFMEYDBIRERFFMAaDRERERBGMwSARERFRBIsKdgbIv4xGIy5cuICkpCSoVKpgZ4eIiIg8IAgCKioq0KJFC6jV/q27YzAY5i5cuIBWrVoFOxtEREQkQ2FhITIyMvy6DwaDYS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ZsmVOa+/+/Oc/o6ioCJMnT8bdd98d4Jxae/nll1FeXm75V1hYGNT8eM3ZRchNMMrftUREPsILathTxKTT5sETgGkwiTPiZeJtpDIYDBg3bhzWrl2LqKgoLFu2DIMHD3a47pYtW/Dpp58iIyMDb731luR9mfPp6rjEy90dV2xsLGJjYyXnQ6pAXRs8nXSa40yIiHyDsV/kUUTNoHnuP8D06DhnxMvE20hhDgRXrlwJjUaDzz//HE888YTT9Z999lkAwDvvvAOVSoXKykqrf+bRxwaDwe49cT5dHZd4udzjUir
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"dataOnlyOneBeam.plot.errorbar()\n",
2023-08-01 18:52:06 +02:00
"plt.show()"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
"dataOnlyOneBeam = dataOnlyOneBeam - dataOnlyOneBeam.mean()"
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAApgAAAHECAYAAACdlVrYAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAAB1oUlEQVR4nO3deXwTdf4/8Fd6H2nTApZyF+SGogjoIgVhBQoCuyiL4gkegOjP7y4r+pVdhcJ3VRTQ73fVBQWXw8VFEJZlkUIRQQEBoSDQUkCOUiyUo1d60CuZ3x81YZJMjkknySR5PR8PHqSZ+XzmM5PJzDufazSCIAggIiIiIlJIiK8LQERERESBhQEmERERESmKASYRERERKYoBJhEREREpigEmERERESmKASYRERERKYoBJhEREREpKszXBSD/YzQacfnyZcTFxUGj0fi6OEREROQCQRBQUVGB1q1bIyTEs3WMDDBJt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/7+g3s7QUQUQB7+eD9yCvWYuHS/03UNopGXggC8/7VtxYpaPbvqME4Ulrt036FbgjbArK6uxr59+wAAo0ePllxHo9Fg1KhRAICsrCyX8z59+jQKCgoc5q3VajF48GDZebtix44d5tem8ltLS0tDXFycR7bvLldatavqGmtbS6vlDb6qqm0wv66oqXcpTU29Zc1uWbVr6YiIgonBhWk7jFYjL6vr1NFyJofexXsHNQraADMvLw/GX4a19e7d2+56pmVFRUUoKSlxKe+cnByb9I7yPnnypEv5usq0/aSkJCQlJUmuExoaiu7duwMAcnNzFd2+NxiMztcRE3cq5yS/RETe1cC544JO0AaYly9fNr9u06aN3fXEy8RplMxbr9ejstK1foFytu9o2+LlzvartrYWer3e4p9HyLj+WP8aNjq5eImnxWB8SUTkXc6u0RR4gjbArKi41Vk3JibG7nriZeI0vspbzvYdbVu83Nm23377beh0OvO/du3aKVPQJrBukjE4mfgyLEQcYDLCJCLyJptmdMabAS9oA0xy3ezZs1FeXm7+d+nSJY9sR87clda/hp31AQqxaCKXVy4iImoaZ5UAFHiCdqJ10wAXoHHAjz3iZeI0cvKOj49XLG8523e0X+LlzrYdGRkpORm8L9k0kTu5eImDSnf7YPLySETkHlcGAlFgCdoazNatW5tfFxYW2l1PvEycRsm84+PjodVqXcpbzvYdbVu83NX98jQ5P3Ctfw0760AeqmETORGRrzDADD5BG2D26NEDISGNuy8e9W3NtCw5ORnNmjVzKW/xyHFX8u7Zs6dL+brKtP1r167h+nXpScENBgNOnWqc37FXr16Kbt8bjEbrvz3fRM6wlIjIPTYBJi+oAS9oA8yYmBgMGjQIALBt2zbJdQRBwPbt2wEAI0eOdDnvbt26oX379g7zrqqqwp49e2Tn7YoRI0aYX9vb/r59+8yDe5Tevrvk/L61rsF09us4lKPIiYh8hjWYwSdoA0wAmDx5MgBg165dOHjwoM3y9evX4/z58wCAp556SlbepvXXrl2L/Px8m+UfffQRKisrERoa6tazzh3p1KkT0tLSAACLFy9Gfb3t5LALFiwAAHTo0AFDhgxRdPveYDOK3FmAyXkwiYh8hoN8gk/QB5ipqakQBAETJkwwP2/caDRi/fr1mDp1KoDGp/Hcf//9FmkzMjKg0Wig0WgkA8hZs2YhOTkZ1dXVGDNmDLKzswEAdXV1WLJkCd544w0AwLRp09C1a1eb9EajETdu3DD/Ky299azX8vJyi2W1tbbPdH333XcRGhqKY8eOYdKkSeb+liUlJXjhhReQmZlpsZ4aNOX64+ziJW4idze85OWRiMg9Nt2YeEENeEE7ihwAwsL
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"dataOnlyOneBeam.plot.errorbar()\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 24,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [],
"source": [
2023-08-07 14:43:56 +02:00
"dataOnlyOneBeamFFT = fft(dataOnlyOneBeam)"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 25,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAHPCAYAAABpxG/+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABWx0lEQVR4nO3deXRU5eHG8WeyZzJJSEAIO4gQwATEABWBCoIg4vbTqijuFqxYrMjS0iqC1qUK0lbUCqigRSiIWkQ2iagsskVkJ6wJgRCWhEyWyTpzf3/EDBOzkEngJtTv55w552beZd6Zmzv3mbtaDMMwBAAAgIvKp64HAAAA8EtA6AIAADABoQsAAMAEhC4AAAATELoAAABMQOgCAAAwAaELAADABIQuAAAAExC6AAAATEDoAgAAMEGtQld2drYmT56s2NhY2Ww2hYeHq0ePHpo2bZoKCwtrNbCTJ09q7Nixio6OVnBw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AAJiB0AQAAmIDQBQAAYAJCFwAAgAkIXQAAACYgdAEAAJiA0AUAAGACQhcAAIAJCF0AAAAmIHQBAACYgNAFAABgAkIXAACACQhdAAAAJiB0AQAAmIDQBQAAYAJCFwAAgAkIXQAAACYgdAEAAJiA0AUAAGACQhcAAIAJCF0AAAAmIHQBAACYgNAFAABgAkIXAACACQhdAAAAJiB0AQAAmIDQBQAAYAJCFwAAgAkIXQAAACYgdAEAAJigVqErOztbkydPVmxsrGw2m8LDw9WjRw9NmzZNhYWFtRrYyZMnNXbsWEVHRys4OFiRkZHq27evZs+eLcMwvO5vyJAhslgsslgs6tevX63GBgAA4C2LUZMEIyk5OVn9+vVTUlKSJMlqtcrpdKqgoECS1K1bN8XHxysiIsLrvhMSEjR48GClp6dLkmw2m/Lz81VcXCxJGjRokJYsWaLAwMBq9Tdnzhw98sgj7r+vu+46ffPNN16NKSsrS+Hh4bLb7QoLC/OqLQAAqBv1af1doy1dTqdTt9xyi5KSktS0aVN99dVXys3NlcPh0IIFCxQaGqpt27Zp+PDhXvdtt9t18803Kz09XR07dtSWLVuUnZ2t3NxczZgxQ/7+/lq1apXGjBlTrf7S0tL0zDPPqEGDBurUqZPX4wEAALgQahS65syZo507d0qSFi9erIEDB5Z05uOje+65R++++64kafny5YqPj/eq76lTpyotLU3BwcFatmyZunfvLkkKCAjQk08+qSlTpkiSZs6cqf3795+3v1GjRuns2bN6/fXX1bhxY6/GAgAAcKHUKHTNnTtXktS/f3/16tWrXPmwYcPUtm1bSdKHH37oVd+l9T378DR69GjZbDY5nU7Nmzevyr4WLlyozz77TNddd50ee+wxr8YBAABwIXkduhwOh9avXy+p5OD0ilgsFt14442SpFWrVlW778TERB09erTKvm02m/r27XvevtPT0zV69GgFBgZq5syZslgs1R4HAADAheZ16Nq7d69cLpckKSYmptJ6pWVpaWnKyMioVt+7du0q176qvvfs2VNpnaeeekqnTp3Sc889pw4dOlTr9QEAAC4WP28bpKamuqebN29eaT3PstTUVEVGRl7wvrOyspSTkyObzVam/IsvvtDHH3+smJgYTZgw4byvW5GCggL3mZilrwUAAFBTXm/pys7Odk9brdZK63mWeba52H3b7XY98cQT8vHx0axZs+Tv71+t1/65V155ReHh4e5Hy5Yta9QPAACA9D94RfqxY8fq+PHjGjVqlK655poa9zNx4kTZ7Xb3IyUl5QKOEgAA/NJ4vXsxNDTUPe1wOCqt51nm2cabviu7iFllfa9evVrvvfeeWrRooZdffrl
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
2023-08-07 14:43:56 +02:00
"abs(dataOnlyOneBeamFFT).plot.errorbar(ax=ax, x='freq_x')\n",
2023-08-01 18:52:06 +02:00
"ax.set_xlim([0.5, 250])\n",
"ax.set_ylim([0, 0.05])\n",
"plt.show()"
]
},
2023-08-07 14:43:56 +02:00
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 26,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAm0AAAHPCAYAAAABN+3GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAADAeUlEQVR4nO2dd5gURfrHv7PLsmwkKVkBPcnoIaA/BRQTGO8M54nhBPN5yhkAswRzQLwzoqIId5ycmE5RBEUMoChgQElKRhAk7i67smyo3x9FzVT3VHVX93RPWN7P88wzMx2qq2N9+w1VEcYYA0EQBEEQBJHWZKW6AgRBEARBEIQ7JNoIgiAIgiAyABJtBEEQBEEQGQCJNoIgCIIgiAyARBtBEARBEEQGQKKNIAiCIAgiAyDRRhAEQRAEkQGQaCMIgiAIgsgASLQRBEEQBEFkACTaCIIgCIIgMoCERFtZWRlGjx6N7t27o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kCijSAIgiAIIgMg0UYQBEEQBJEBkGgjCIIgCILIAEi0EQRBEARBZAAk2giCIAiCIDIAEm0EQRAEQRAZAIk2giAIgiB8Q2OPJg8SbQRBEARBBM7KlcDgwcDSpamuSd2hXqorQBAEQRBE3ePUU4FVq4C33wZ27kx1beoGZGkjCIIgCCJwVq3i37t2pbQadQoSbQRBEARBEBkAiTaCIAiCIIgMgEQbQRAEQRBEBkCijSAIgiAIIgMg0UYQBEEQBJEBkGgjCIIgCILIAEi0EQRBEAR
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"abs(dataOnlyOneBeamFFT).plot.errorbar(ax=ax, x='freq_x', fmt='r')\n",
"abs(dataWithoutModulationFFT).plot.errorbar(ax=ax, x='freq_x', fmt='b')\n",
"\n",
"ax.set_xlim([0.5, 250])\n",
"ax.set_ylim([0, 0.02])\n",
"plt.show()"
]
},
2023-08-01 18:52:06 +02:00
{
"cell_type": "markdown",
"metadata": {},
"source": [
2023-08-07 14:43:56 +02:00
"## Without Modulation # 2"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 27,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray 'CH1' (x: 1200)>\n",
2023-08-07 14:43:56 +02:00
"array([0.49 , 0.53 , 0.533, ..., 0.522, 0.498, 0.454])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 1e-05 2e-05 3e-05 ... 0.01197 0.01198 0.01199</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'>'CH1'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-2eac37f6-45e8-4b9b-b071-de4d23748327' class='xr-array-in' type='checkbox' checked><label for='section-2eac37f6-45e8-4b9b-b071-de4d23748327' 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.49 0.53 0.533 0.491 0.531 0.494 ... 0.506 0.47 0.522 0.498 0.454</span></div><div class='xr-array-data'><pre>array([0.49 , 0.53 , 0.533, ..., 0.522, 0.498, 0.454])</pre></div></div></li><li class='xr-section-item'><input id='section-bafcc823-32fc-4b66-a0be-415973ff983e' class='xr-section-summary-in' type='checkbox' checked><label for='section-bafcc823-32fc-4b66-a0be-415973ff983e' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 1e-05 2e-05 ... 0.01198 0.01199</div><input id='attrs-524aeb8b-5119-4d6b-86ab-4df0403179f4' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-524aeb8b-5119-4d6b-86ab-4df0403179f4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-32bfc995-c1a9-4df2-b8a1-12ed02736afd' class='xr-var-data-in' type='checkbox'><label for='data-32bfc995-c1a9-4df2-b8a1-12ed02736afd' 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.000e+00, 1.000e-05, 2.000e-05, ..., 1.197e-02, 1.198e-02, 1.199e-02])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-760ccdad-011a-453e-852b-f16468d1d9bd' class='xr-section-summary-in' type='checkbox' ><label for='section-760ccdad-011a-453e-852b-f16468d1d9bd' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-a8acc7d0-2f36-4da7-9855-d81ca29b5558' class='xr-index-data-in' type='checkbox'/><label for='index-a8acc7d0-2f36-4da7-9855-d81ca29b5558' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 1e-05,\n",
2023-08-07 14:43:56 +02:00
" 2e-05, 3.0000000000000004e-05,\n",
" 4e-05, 5e-05,\n",
" 6.000000000000001e-05, 7.000000000000001e-05,\n",
" 8e-05, 9e-05,\n",
2023-08-01 18:52:06 +02:00
" ...\n",
2023-08-07 14:43:56 +02:00
" 0.0119, 0.01191,\n",
" 0.011920000000000002, 0.011930000000000001,\n",
" 0.011940000000000001, 0.01195,\n",
" 0.01196, 0.011970000000000001,\n",
" 0.011980000000000001, 0.01199],\n",
2023-08-07 18:37:50 +02:00
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-d7ab66d7-d847-4bd2-9bca-641fad4acbfb' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-d7ab66d7-d847-4bd2-9bca-641fad4acbfb' 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>"
2023-08-01 18:52:06 +02:00
],
"text/plain": [
"<xarray.DataArray 'CH1' (x: 1200)>\n",
2023-08-07 14:43:56 +02:00
"array([0.49 , 0.53 , 0.533, ..., 0.522, 0.498, 0.454])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
2023-08-07 14:43:56 +02:00
" * x (x) float64 0.0 1e-05 2e-05 3e-05 ... 0.01197 0.01198 0.01199"
2023-08-01 18:52:06 +02:00
]
},
2023-08-07 18:37:50 +02:00
"execution_count": 27,
2023-08-01 18:52:06 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"filePath = r'F:\\Jianshun\\AccordionLatticeShorTermStability\\withoutModulation_2.csv'\n",
2023-08-01 18:52:06 +02:00
"\n",
"data = read_csv_file(filePath, csvEngine='pandas', csvKwargs=dict(header=[0], skiprows=[1], encoding = \"ISO-8859-1\",))\n",
2023-08-07 14:43:56 +02:00
"dataWithoutModulation2 = xr.DataArray(\n",
2023-08-01 18:52:06 +02:00
" data=data.CH1[0,:],\n",
" dims=['x'],\n",
" coords=dict(\n",
2023-08-07 14:43:56 +02:00
" x=data.X[0,:].to_numpy() * 1e-05\n",
2023-08-01 18:52:06 +02:00
" )\n",
")\n",
2023-08-07 14:43:56 +02:00
"dataWithoutModulation2"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 28,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAosAAAHECAYAAABRDGAzAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAADl90lEQVR4nOyde3xUxfn/P7u5kkBupJJANYkIlRDuhUIDWBAtomDVWkG8/VTQ1trWu2hRKFXES2371XpB/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AT755BMAwD333IO0tDTnGxsGyLGEPu4jSzDGQ3Z5CmOciAdzIi5LNIYrGm254dUdOHI8PHFSbogHpNkwoyCL6f5wxffJ8iW1trkHO77j5rjSaCBqNouxsbFYtWoVpkyZgoqKCkybNg1JSUnw+XxoaQk4wahRo/DKK69wlev3+7F+/XqsX78eQODlk+TkZDQ0NKC9PfAF4PV6ceedd9oS23Yjso8lusMxh5shsTr650gkLkc09siJuCzRGK5otEW7UQTsjwcNp8Zflg3PFlUwlRGu+D6ZvqTWNndgx3fcHlfqdqJmswgAubm5+Pzzz/Hwww/jrbfeQnl5OeLi4jB06FDMmTMHN954I+Lj47nKHDZsGB5++GEUFxdj9+7dqKmpwZEjR5CUlIT8/HxMmjQJ8+fPx7BhwxxqVWQRkSwIZ3mKAE7Gg/HGZTkZwxVNttBwIk7KDfGALGnjvB7A74cr4vtkxxuqtS3yiMzJaIordTMev1XQniKiNDY2IjU1FQ0NDUhJSYm0OYoIUVxWiznLt1pe99q88UJfaOSJEWAsraF9asVzrQj
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"dataWithoutModulation2.plot.errorbar(fmt='o')\n",
"# plt.xlim([0, 0.0075])\n",
2023-08-01 18:52:06 +02:00
"plt.show()"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
"dataWithoutModulation2 = dataWithoutModulation2 - dataWithoutModulation2.mean()"
]
},
{
"cell_type": "code",
"execution_count": 30,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [],
"source": [
2023-08-07 14:43:56 +02:00
"dataWithoutModulationFFT2 = fft(dataWithoutModulation2)"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 31,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {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BCCIACiqKbbroJPp/P/I8QQgghpJIoiChatGgRrrvuukKcihBCCCGkJOQtihKJBL7//e+ju7sbBxxwQCHaRAghhBDS6+Qtiu666y68/fbbOO2003DUUUcVok2EEEIIIb1OXqJo+fLluPrqqzFw4EDccccdhWoTIYQQQkivE8zn4HPPPRcdHR245557MHjw4EK1iRBCCCGk18nZUjRz5ky8/PLLOOKII3DmmWcWsk2EEEIIIb1OTpai1atXY/r06aipqcG9996b85dHIhFEIhHz362trTmfixBCCCEkH3KyFJ1//vloaWnBtddei+222y7nL7/xxhvR1NRk/jd69Oicz0UIIYQQkg9Zi6KHHnoIzzzzDPbcc09ceumleX35VVddhZaWFvO/VatW5XU+QgghhJBcycp9tmHDBlx88cUIBAKYOXMmgsG84rQRDocRDofzOgchhBBCSCHIStX87Gc/Q3NzMy644ALsvPPOaG9vt7zf09Nj/i3eC4VCCIVCBWgqIYQQQkjx8BmGYXj98CGHHILXX389qy+46KKLcOedd3r6bGtrK5qamtDS0oLGxsasvocQQgghpaGvzN8F2xCWEEIIIaSSyUoUvfbaazAMw/G/GTNmmJ8Vr3m1EhFCCCGElBJaigghhBBCQFFECCGEEAKAoogQQgghBECW2WfFpq9ErxNCCCHbEn1l/qaliBBCCCEEFEWEEEIIIQAoigghhBBCAFAUEUIIIYQAoCgihBBCCAFAUUQIIYQ
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
2023-08-07 14:43:56 +02:00
"abs(dataWithoutModulationFFT2).plot.errorbar(ax=ax, x='freq_x')\n",
"ax.set_xlim([1, 40000])\n",
"ax.set_ylim([0, 0.00005])\n",
2023-08-01 18:52:06 +02:00
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2023-08-07 14:43:56 +02:00
"## Only One Beam # 2"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 32,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray 'CH1' (x: 1200)>\n",
2023-08-07 14:43:56 +02:00
"array([0.215, 0.197, 0.195, ..., 0.194, 0.218, 0.198])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 1e-05 2e-05 3e-05 ... 0.01197 0.01198 0.01199</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'>'CH1'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-a7a0b230-0379-4f74-a464-a3fc5c3e347e' class='xr-array-in' type='checkbox' checked><label for='section-a7a0b230-0379-4f74-a464-a3fc5c3e347e' 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.215 0.197 0.195 0.214 0.218 0.194 ... 0.214 0.218 0.194 0.218 0.198</span></div><div class='xr-array-data'><pre>array([0.215, 0.197, 0.195, ..., 0.194, 0.218, 0.198])</pre></div></div></li><li class='xr-section-item'><input id='section-0602ccf9-903e-4368-bc85-d089b2719e12' class='xr-section-summary-in' type='checkbox' checked><label for='section-0602ccf9-903e-4368-bc85-d089b2719e12' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 1e-05 2e-05 ... 0.01198 0.01199</div><input id='attrs-1a981a2e-a56c-42a1-9ac1-63ae1cf4e068' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-1a981a2e-a56c-42a1-9ac1-63ae1cf4e068' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-988b4bde-e74a-45ff-a356-1f4653df312e' class='xr-var-data-in' type='checkbox'><label for='data-988b4bde-e74a-45ff-a356-1f4653df312e' 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.000e+00, 1.000e-05, 2.000e-05, ..., 1.197e-02, 1.198e-02, 1.199e-02])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-f136a99c-5f01-46fc-991f-dcc0674540b9' class='xr-section-summary-in' type='checkbox' ><label for='section-f136a99c-5f01-46fc-991f-dcc0674540b9' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-911abc08-a315-446d-9789-794c48cb5b1f' class='xr-index-data-in' type='checkbox'/><label for='index-911abc08-a315-446d-9789-794c48cb5b1f' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 1e-05,\n",
2023-08-01 18:52:06 +02:00
" 2e-05, 3.0000000000000004e-05,\n",
" 4e-05, 5e-05,\n",
" 6.000000000000001e-05, 7.000000000000001e-05,\n",
" 8e-05, 9e-05,\n",
" ...\n",
" 0.0119, 0.01191,\n",
" 0.011920000000000002, 0.011930000000000001,\n",
" 0.011940000000000001, 0.01195,\n",
" 0.01196, 0.011970000000000001,\n",
" 0.011980000000000001, 0.01199],\n",
2023-08-07 18:37:50 +02:00
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e6ce165b-ceec-4e2d-8287-814dbc8264f2' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-e6ce165b-ceec-4e2d-8287-814dbc8264f2' 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>"
2023-08-01 18:52:06 +02:00
],
"text/plain": [
"<xarray.DataArray 'CH1' (x: 1200)>\n",
2023-08-07 14:43:56 +02:00
"array([0.215, 0.197, 0.195, ..., 0.194, 0.218, 0.198])\n",
2023-08-01 18:52:06 +02:00
"Coordinates:\n",
" * x (x) float64 0.0 1e-05 2e-05 3e-05 ... 0.01197 0.01198 0.01199"
]
},
2023-08-07 18:37:50 +02:00
"execution_count": 32,
2023-08-01 18:52:06 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"filePath = r'F:\\Jianshun\\AccordionLatticeShorTermStability\\onlyOneBeam_2.csv'\n",
2023-08-01 18:52:06 +02:00
"\n",
"data = read_csv_file(filePath, csvEngine='pandas', csvKwargs=dict(header=[0], skiprows=[1], encoding = \"ISO-8859-1\",))\n",
2023-08-07 14:43:56 +02:00
"dataOnlyOneBeam2 = xr.DataArray(\n",
2023-08-01 18:52:06 +02:00
" data=data.CH1[0,:],\n",
" dims=['x'],\n",
" coords=dict(\n",
" x=data.X[0,:].to_numpy() * 1e-05\n",
" )\n",
")\n",
2023-08-07 14:43:56 +02:00
"dataOnlyOneBeam2"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 33,
2023-08-01 18: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9uZj+P64speJfacv4l8bjuCxT/dJrvPrhXvwwfY8fPlf5efckp2ncNsb2xSvH672F5T5zF9fHv/0Z3zx30J8uD1fs3SZJVh8+osDWLLzJO58a4fb/13jm79/lQs5R4sr8eq6w3jys/2y67l6e/NRLPz+JD7Ynie73vnKOry9+Ri+kxg4+1uNXjoX/3ASr6z5RZN9Ofxh2U/497fHNRv0+6ufz+CD7XnOmXWIzMQUwWJFRYXz98TERMn1XJe5buOvmpoajB8/HtXV1WjevLnqDirnzp3DpEmTYLPZ0KVLFzz22GM+t3niiSdQVlbm/Dl1yv8SFz2cLNGu9MZIZTXKSiGUrgcA5yrq/E1OxFKTv8Hcl80k46YfORv4fa7CjxK5U6U1qtYvrRY/hpbzOqtNk1JanVcXKnl/IPMy1TiLwdTY2IjJkydj9+7diI2NxeLFi2VLNT1VVlbi9ttvx4kTJ5CSkoIVK1YgOTnZ53bx8fGIjzdmHlclTFLg4lMUG96TDLO0WTQqmaHYWzxap4taq/3G8KZDJmaKksWUlBTn79XV0iVbrstct1HLarVi6tSpWLVqFWJiYrB48WKMGDFC8fZVVVW49dZb8f333yM5ORlff/01+vbt63d6QomA0HtI+COK3TRJRqNJihZtIRi0GUWvYCw2Wpv9RkeZ4nFLJMoUZ69j7EPAPjWfFNdlrtuo4QgUly1bhujoaCxcuBD33HOP4u0dgeKWLVuQlJSEr776ymuGFzMLl2eT0vt2uHzeUKVl/mq5L5PEioa9uvlqe62Ult9ZTLQ+jzOtgrwYjYJOIiOYIljs0aMHoi5dsPv3SzfCdizLyMhAs2bNVB/HarViypQpWLp0qTN
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"dataOnlyOneBeam2.plot.errorbar()\n",
2023-08-01 18:52:06 +02:00
"plt.show()"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 34,
"metadata": {},
"outputs": [],
"source": [
"dataOnlyOneBeam2 = dataOnlyOneBeam2 - dataOnlyOneBeam2.mean()"
]
},
{
"cell_type": "code",
"execution_count": 35,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [],
"source": [
2023-08-07 14:43:56 +02:00
"dataOnlyOneBeamFFT2 = fft(dataOnlyOneBeam2)"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 36,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 18:37:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkUAAAHdCAYAAAATow1yAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAAB0NklEQVR4nO3deXwTZf4H8E+Stknvm5azXHIpN4IIKIeKqKzorjfe67n6ExU8dwWPXVjBa3VRRFdYdfFEXWUB5ZT7PoVytlDK1ftKmzbJ/P5IZ/LMZCZJL3rweb9efb3aJJM8yaQz3/k+3+d5TJIkSSAiIiI6z5kbuwFERERETQGDIiIiIiIwKCIiIiICwKCIiIiICACDIiIiIiIADIqIiIiIADAoIiIiIgLAoIiIiIgIAIMiIiIiIgAMioiIiIgANOGgyG63Y/HixXjttddw4403Ii0tDSaTCSaTCdOmTWvs5tWY3HZ/PxMnTmzsZhIREZ23Qhq7AUY2b96Ma665prGbUe/i4+MRFhame19cXNy5bQwREREpmmxQBHgCiAEDBig/Tz75JE6fPt3YzaqThQsXYuTIkY3dDCIiItJoskHRiBEjkJ+fr7rtueeea6TWEBERUUvXZGuKLBZLnZ/jyJEjePzxx9GzZ09ERUUhIiICPXv2xKRJk3D8+PF6aCURERG1FE02U1RXc+fOxZ/+9CdUVVUBAKxWK8xmM9LT05Geno5PPvkE33zzDa688spGbikRERE1BU02U1QX33//PR588EEAni63zMxMlJeXo6ysDOnp6bjppptQXFyMP/zhD+c8Y/TUU0+hVatWCAsLQ3JyMsaMGYN//vOfsNvt57QdREREpNbigqLKyko89thjAIAPPvgA06dPVw3n7969O7766iv87ne/Q3FxMd58881z2r4dO3bAbrfDZrMhNzcXK1aswGOPPYb+/ftj//7957QtRERE5NXigqLFixcjOzsbKSkpuPfeew0fd9dddwEAli5dek7addddd2HRokXIy8tDaWkpiouLkZWVhb/85S8IDQ3FwYMHMXbsWBQWFp6T9hAREZFai6spWrt2LQCgoKAArVu3NnxcZWUlAODYsWM+95lMplq//i233IIvvvjC5/b58+f73NauXTu88sor6NevH37/+98jKysLb775Jl555ZVavz4RERHVTovLFJ08eRKAJ+g5c+aM4U9BQQEAoLy8vDGbCwC48cYbMWzYMACeeigiIiI691pcpsjlcgEArr76aixevLhWz5GTk1Pr17darbXabujQoVi3bh2OHj1a69cmIiKi2mtxQVFqaioAYM+ePbV+jqSkpPpqDhERETUTLa77TO6Gys7OVuqLmoONGzcCADp16tTILSEiIjo/1SoomjdvXlCrvi9btqy+2xvQ+PHjlQLrJ554IuD8P9qlRBqCJEl+7//++++VAO76669v8PYQERGRrzplisxmM1JSUgx/altfIysoKEBubq7y43a7AQB2u111e2lpqbKNzWbD7NmzYTKZsH37dgwbNgxLly5VRpsBQEZGBubMmYPBgwdj9uzZdWpjMG666SY899xz2LhxIyoqKpTbs7Oz8fLLL+OWW24BALRt2xZPP/10g7eHiIiIfJmkQGkMHfPmzcO9996LtLQ0ZGZmNkCzPDp27Kg7ZF7r7rvvxrx581S3ff7553jwwQeVTFFISAhiY2NRWloKh8OhPO61117Diy++WK/t1ho5ciRWr14NwBNIxsbGwuVyobi4WHlM9+7dsXDhQvTq1atB20JERET6WlyhteyOO+7A6NGjMXv2bCxZsgSHDx9GYWEhoqKi0LNnTwwfPhwTJkzA5Zdf3uBteeGFF9C/f39s2rQJWVlZyMvLg9vtRps2bdCvXz/ccMMNmDhxImw2W4O3hYiIiPQ16UwRERER0bnS4kafEREREdVGnYKinJwcDBw4EFFRUQgPD0fnzp0xceJErFq1qp6aR0RERHRu1Kn7TBYfH4+ysjLVCK97770XH374IUJCjMuWHA6HqujZ7XYjPz8fiYmJdVp/jIiIiM4dSZJQUlKCNm3awGxuxp1QUi0sXbpUmjp1qrRr1y6poqJCkiRJcjqd0rp166QrrrhCAiABkB577DG/zzN16lTlsfzhD3/4wx/+8Kd5/2RlZdUmrGgyapUp8sftduPGG2/EDz/8ALPZjPT0dFxwwQW6j9VmioqKitChQwdkZWUhJiamPptFREREDaS4uBjt27dHYWEhYmNjG7s5tVbvQREAHD58WAmE3njjDTz11FNBbVdcXIzY2FgUFRUxKCIiImomWsr5u0E6/rp27aosqspV34mIiKg5aMbVUERERET1p0GCoiNHjiA3NxcAV30nIiKi5qHGQVGgEiRJkjBlyhTPk5vNuO6662rXMiIiIqJzqMZB0bFjxzB48GDMmTMHR48eVYIkt9uNjRs3Yty4cfjuu+8AAA899BC6d+9evy0mIiIiagC1WhB2y5Yt2LJlCwDAarUiOjoaJSUlquH19957L/7xj3/UTyuJiIiIGliNg6KUlBS8++672LBhA3bu3ImcnBwUFBTAZrOhU6dOuPTSS3Hfffdh2LBhDdFeIiIiogbRIPMU1VZLmeeAiIjofNJSzt8ckk9EREQEBkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAajHoGjGjBkwmUzKDxEREVFzUi9B0YEDB/Dyyy/Xx1MRERERNYo6B0Vutxv3338/KioqMHTo0PpoExEREdE5V+eg6N1338W6detwxx134KqrrqqPNhERERGdc3UKijIyMvDiiy8iMTERb731Vn21iYiIiOicC6nLxg888ADKysowe/ZsJCcn11ebiIiIiM65WmeK5s6di+XLl+OKK67AXXfdVZ9tIiIiIjrnapUpys7OxpQpUxAeHo45c+bU+sUdDgccDofyd3Fxca2fi4iIiKguapUpeuihh1BUVIRp06ahc+fOtX7x6dOnIzY2Vvlp3759rZ+LiIiIqC5qHBR99tlnWLRoEfr164ennnqqTi/+/PPPo6ioSPnJysqq0/MRERER1VaNus/Onj2LSZMmwWKxYO7cuQgJqVOdNqxWK6xWa52eg4iIiKg+1CiqefbZZ5GXl4dHHnkEPXr0QGlpqer+yspK5Xf5vrCwMISFhdVDU4mIiIgajkmSJCnYB48cORKrV6+u0Qs88cQTePvtt4N6bHFxMWJjY1FUVISYmJgavQ4RERE1jpZy/q63BWGJiIiImrMaBUWrVq2CJEmGP1OnTlUeK98WbJaIiIiIqDExU0REREQEBkVEREREABgUEREREQGo4eizhtZSqteJiIjOJy3l/M1MEREREREYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAA
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
2023-08-07 14:43:56 +02:00
"abs(dataOnlyOneBeamFFT2).plot.errorbar(ax=ax, x='freq_x')\n",
"ax.set_xlim([1, 40000])\n",
"ax.set_ylim([0, 0.00005])\n",
"plt.show()"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 37,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 18:37:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkUAAAHdCAYAAAATow1yAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAACp9ElEQVR4nO2dd5gVRdbG3zs5kjOSTIAJI4rAp4gJ1+y6Zl11TauuEeOuWTGAWVbFVdw1LWsOq6iAroKCilkxgASRzDA5T39/1NTt6urqcNPMvcP7e5555t6+Haq7q6vePufUqYhlWRYIIYQQQjZzstq7AIQQQggh6QBFESGEEEIIKIoIIYQQQgBQFBFCCCGEAKAoIoQQQggBQFFECCGEEAKAoogQQgghBABFESGEEEIIAIoiQgghhBAAFEWEEEIIIQDSWBTV1NTgzTffxC233IKjjz4agwYNQiQSQSQSwQ033NDexYsZWXa/v5NPPrm9i0kIIYRstuS0dwG8WLBgAQ455JD2LkbS6dq1K/Ly8oy/denSpW0LQwghhJAoaSuKACEgdt111+jfJZdcgtWrV7d3sRLixRdfxL777tvexSCEEEKIRtqKorFjx2Ljxo2OZVdddVU7lYYQQgghHZ20jSnKzs5OeB+LFy/GhRdeiOHDh6OkpARFRUUYPnw4Lr74YixfvjwJpSSEEEJIRyFtLUWJMm3aNJx//vlobGwEAOTn5yMrKwuLFi3CokWL8MQTT+D555/HAQcc0M4lJYQQQkg6kLaWokR4+eWXcfbZZwMQLrelS5eitrYW1dXVWLRoEY499lhUVFTg97//fZtbjC699FL06tULeXl56NmzJ8aPH4+HHnoINTU1bVoOQgghhDjpcKKooaEBF1xwAQDg4YcfxqRJkxzD+YcOHYoZM2bg8MMPR0VFBe6+++42Ld/nn3+OmpoaFBQUYP369Zg9ezYuuOAC7LLLLvj+++/btCyEEEIIselwoujNN9/EypUr0bt3b5x++ume65166qkAgJkzZ7ZJuU499VS88cYb2LBhA6qqqlBRUYEVK1bgb3/7G3Jzc/Hjjz/ioIMOwqZNm9qkPIQQQghx0uFiij788EMAQFlZGfr27eu5XkNDAwBg2bJlrt8ikUjcxz/uuOPw3HPPuZY/+eSTrmVbbLEFbrrpJuy888445phjsGLFCtx999246aab4j4+IYQQQuKjw1mKfvvtNwBC9KxZs8bzr6ysDABQW1vbnsUFABx99NEYPXo0ABEPRQghhJC2p8NZipqbmwEABx98MN5888249rFu3bq4j5+fnx/XdqNGjcLcuXOxZMmSuI9NCCGEkPjpcKKoT58+AICvv/467n306NEjWcUhhBBCSIbQ4dxn0g21cuXKaHxRJvDxxx8DAIYMGdLOJSGEEEI2T+ISRdOnTw816/u7776b7PIGcthhh0UDrC+66KLA/D/6VCKpwLIs399ffvnlqIA74ogjUl4eQgghhLhJyFKUlZWF3r17e/7FG18jKSsrw/r166N/LS0tAICamhrH8qqqqug2BQUFmDp1KiKRCBYuXIjRo0dj5syZ0dFmAPDLL7/gkUcewciRIzF16tSEyhiGY489FldddRU+/vhj1NXVRZevXLkSN954I4477jgAQP/+/XHZZZelvDyEEEIIcROxgswYBqZPn47TTz8dgwYNwtKlS1NQLMHgwYONQ+Z1TjvtNEyfPt2x7Omnn8bZZ58dtRTl5OSgc+fOqKqqQn19fXS9W265Bddee21Sy62z77774v333wcghGTnzp3R3NyMioqK6DpDhw7Fiy++iO222y6lZSGEEEKImQ4XaC056aSTsN9++2Hq1Kl466238PPPP2PTpk0oKSnB8OHDMWbMGBx55JHYZ599Ul6Wa665Brvssgvmz5+PFStWYMOGDWhpaUG/fv2w884746ijjsLJJ5+MgoKClJeFEEIIIWbS2lJECCGEENJWdLjRZ4QQQggh8ZCQKFq3bh122203lJSUoLCwEFtuuSVOPvlkvPfee0kqHiGEEEJI25CQ+0zStWtXVFdXO0Z4nX766Xj00UeRk+MdtlRfX+8Iem5pacHGjRvRvXv3hOYfI4QQQkjbYVkWKisr0a9f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RAghhBACgKKIEEIIIQQARREhhBBCCACKIkIIIYQQABRFhBBCCCEAKIoIIYQQQgBQFBFCCCGEAEiiKLr99tsRiUSif4QQQgghmURSRNEPP/yAG2+8MRm7IoQQQghpFxIWRS0tLTjzzDNRV1eHUaNGJaNMhBBCCCFtTsKi6IEHHsDcuXNx0kkn4cADD0xGmQghhBBC2pyERNEvv/yCa6+9Ft27d8c999yTrDIRQgghhLQ5OYlsfNZZZ6G6uhpTp05Fz549k1UmQgghhJA2J25L0bRp0zBr1izsv//+OPXUU5NZJkIIIYSQNicuS9HKlSsxceJEFBYW4pFHHon74PX19aivr49+r6ioiHtfhBBCCCGJEJel6JxzzkF5eTluuOEGbLnllnEffNKkSejcuXP0b8CAAXHvixBCCCEkEWIWRU899RTeeOMN7Lzzzrj00ksTOvjVV1+N8vLy6N+KFSsS2h8hhBBCSLzE5D5bu3YtLr74YmRnZ2PatGnIyUkoThv5+fnIz89PaB+EEEIIIckgJlVz5ZVXYsOGDTjvvPMwbNgwVFVVOX5vaGiIfpa/5eXlIS8vLwlFJYQQQghJHRHLsqywK++77754//33YzrARRddhHvvvTfUuhUVFejcuTPKy8vRqVOnmI5DCCGEkPaho/TfSZsQlhBCCCEkk4lJFL333nuwLMvz7/rrr4+uK5eFtRIRQgghhLQntBQRQgghhICiiBBCCCEEAEURIYQQQgiAGEefpZqOEr1OCCGEbE50lP6bliJCCCGEEFAUEUIIIYQAoCgihBBCCAFAUUQIIYQQAoCiiBBCCCEEAEURIYQQQggAiiJ
2023-08-07 14:43:56 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"abs(dataOnlyOneBeamFFT2).plot.errorbar(ax=ax, x='freq_x', fmt='r')\n",
"abs(dataWithoutModulationFFT2).plot.errorbar(ax=ax, x='freq_x', fmt='b')\n",
"\n",
2023-08-01 18:52:06 +02:00
"ax.set_xlim([1, 40000])\n",
"ax.set_ylim([0, 0.00005])\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
2023-08-07 14:43:56 +02:00
"# Data analyse"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Transform intensity to phase"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 38,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [],
"source": [
"from Analyser.FitAnalyser import NewFitModel"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 39,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [],
"source": [
"def sine_with_offset(x, amplitude=1.0, frequency=1.0, shift=0.0, offset=0.0):\n",
" \"\"\"Return a sinusoidal function.\n",
"\n",
" sine(x, amplitude, frequency, shift) =\n",
" amplitude * sin(x*frequency + shift)\n",
"\n",
" \"\"\"\n",
" return amplitude*np.sin(x*frequency + shift) + offset"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 40,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [],
"source": [
"fitModel = NewFitModel(sine_with_offset)\n",
"fitAnalyser = FitAnalyser(fitModel, fitDim=1)"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 41,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [],
"source": [
"params = fitAnalyser.fitModel.make_params()\n",
"params.add(name=\"amplitude\", value= 0.1, max=np.inf, min=-np.inf, vary=True)\n",
"params.add(name=\"frequency\", value= 63, max=np.inf, min=-np.inf, vary=True)\n",
"params.add(name=\"shift\", value= 0.11, max=np.inf, min=-np.inf, vary=True)\n",
"params.add(name=\"offset\", value= 0.6, max=np.inf, min=-np.inf, vary=True)"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 42,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [],
"source": [
"# param = fitAnalyser.guess(dataWithModulation)\n",
"fitResult = fitAnalyser.fit(dataWithModulation, params)\n",
"fitCurve = fitAnalyser.eval(fitResult, x=dataWithModulation.x)"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 43,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 18:37:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAogAAAHECAYAAAC6O9swAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOy9ebxcRZk+/tTp7ts3yc3KFvYguyyyyAgDqCiyKIwLgzg6AjqDjuvoqDPDqBh01HEE/DkuKIICgqKIIiIIfBGVHRLBkLBKyEJCErLeLbfX+v1x+pzz1ula3jqns9zkvJ8PmqT7vre6uk7VU8/7vs8rpJQShRVWWGGFFVZYYYUV1rFgSw+gsMIKK6ywwgorrLCtywqAWFhhhRVWWGGFFVaYYgVALKywwgorrLDCCitMsQIgFlZYYYUVVlhhhRWmWAEQCyussMIKK6ywwgpTrACIhRVWWGGFFVZYYYUpVgDEwgorrLDCCiussMIUK2/pARS2+a3dbmP58uWYPHkyhBBbejiFFVZYYYUVVhjDpJQYGhrCbrvthiDYtBxfARC3Q1u+fDn23HPPLT2MwgorrLDCCissgy1duhR77LHHJv0dBUDcDm3y5MkAwgU2ZcqULTyawgorrLDCCiuMY4ODg9hzzz3jc3xTWgEQt0OLwspTpkwpAGJhhRVWWGGFjTPbHOlhRZFKYYUVVlhhhRVWWGGKFQCxsMIKK6ywwgorrDDFCoBYWGGFFVZYYYUVVphiBUAsrLDCCiussMIKK0yxAiAWVlhhhRVWWGGFFaZYARALK6ywwgorrLDCClOsAIiFFVZYYYUVVlhhhSlWAMTCCiussMIKK6ywwhQrAGJhhRVWWGGFFVZYYYoVALGwwgorrLDCCius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5K3L9/Ka0y+58Jnfj+yESqssb2qKhzTysX9rSh3FWWzfa2CouMb003TTnucjM2mES8Z3dD2WQgxxKAia9vKx5qdTfif/7e3zihsd6AmD//RfzsGa4d5eiLKb7urKeFYtWj+Ycjd0KgFhYYT20j/7ksfjPvWAQz/7eg7jlL8tzhRZ/8sgSPLQwyTfLmqN1zzOrcPUDi/AfNz3hfrPD3nf1o+o/5NyIttbG8svXb8T//f6v+PJtT/Ws3/R/3DQv18/TUfSyeOK/fpV9XYhUYPlnPRb87YXlmSo9QMy+P8yc2h//OU8P3lUkspAHaH7/T/pq76wuaXHL0rUbcfPjy3HpHc9kc0Zsw8YGPv/r+bn95DHdZTjrWqDf36awIsS8ndrQ0BBmz56Nww47DAMDA5g6dSqOOeYYXHrppajXs0kBrF+/Hr/+9a9x0UUX4YwzzsCuu+4KIQSEELj66qvZfp5//nl88IMfxD777IP+/n7svPPOOPXUU3HTTTdlGtfmsl4nxzdb7Th0uiyViOxjjy9Zr/w9qzo+1dfqZaUc0NsK2Ly+Wm2JsUarJ99npO0H9K6qfVHOvEEalsoDWjfl4TFv6aYpmshjebpK6NZkHoBIyb48IJ9+/+0cy3PFBj1QybpEdG0bl+bYA6lt6UK2Xj42umdwU/vf1m27B4iLFy/G4Ycfjosvvhjz58+HlBK1Wg1z5szBpz/9aRx77LFYt85frPbmm2/G2972NnzpS1/Cb3/7W6xY4R/2u+2223D44YfjiiuuwKJFi1CtVrFmzRrceeed+Pu//3u8//3v72lYrJf24rre0f2ttsRJl/4h/vteMyZm9rV4rTqurMUzlBE9+kt3YU4Pq2DzHE5py7M82m2Jky/7Iw76/O9w0Od/l0s37ZoHFuHU/+9P8d+3BtmjeS+ux/uvnhP//R+vejizr0/+bNMUgwDA4rVbvtr+5seWKX+/+oFFmcOTvQ4xU8b1oz/JHl2g4zr/6kcy+zFZVoChA+O9YuC
2023-08-07 14:43:56 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"dataWithModulation.plot.errorbar(ax=ax)\n",
"fitCurve.plot.errorbar(ax=ax)\n",
"plt.show()"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 44,
2023-08-01 18:52:06 +02:00
"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",
2023-08-07 14:43:56 +02:00
"</style><pre class='xr-text-repr-fallback'><xarray.Dataset>\n",
"Dimensions: ()\n",
"Data variables:\n",
" amplitude float64 0.09749\n",
" frequency float64 62.83\n",
" shift float64 0.162\n",
2023-08-07 18:37:50 +02:00
" offset float64 -5.246e-07</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-f3c1a267-ba98-4ae8-843d-ada6023f2ab3' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-f3c1a267-ba98-4ae8-843d-ada6023f2ab3' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-51aca2a7-52be-44c2-9677-ed6ed0b5a184' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-51aca2a7-52be-44c2-9677-ed6ed0b5a184' class='xr-section-summary' title='Expand/collapse section'>Coordinates: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-9cb03ce1-4f97-418f-a5ca-164e3fa46bef' class='xr-section-summary-in' type='checkbox' checked><label for='section-9cb03ce1-4f97-418f-a5ca-164e3fa46bef' class='xr-section-summary' >Data variables: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>amplitude</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.09749</div><input id='attrs-92e9e314-c94e-4bca-b282-675db789cb13' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-92e9e314-c94e-4bca-b282-675db789cb13' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7e48f35e-ac9b-4e8e-8933-e721ade1f14d' class='xr-var-data-in' type='checkbox'><label for='data-7e48f35e-ac9b-4e8e-8933-e721ade1f14d' 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.09749395)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>frequency</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>62.83</div><input id='attrs-86e9a2c0-f534-47c4-bcff-7afecb25bfb4' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-86e9a2c0-f534-47c4-bcff-7afecb25bfb4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bf381a99-293d-4396-9dc7-ac2e9731d14c' class='xr-var-data-in' type='checkbox'><label for='data-bf381a99-293d-4396-9dc7-ac2e9731d14c' 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(62.83446818)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>shift</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.162</div><input id='attrs-260cfbfc-5fcb-4d36-84ab-104198c7a1e0' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-260cfbfc-5fcb-4d36-84ab-104198c7a1e0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b177d131-c41f-436b-889a-12bbe265d096' class='xr-var-data-in' type='checkbox'><label for='data-b177d131-c41f-436b-889a-12bbe265d096' 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.16204272)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>offset</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-
2023-08-01 18:52:06 +02:00
],
"text/plain": [
2023-08-07 14:43:56 +02:00
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Data variables:\n",
" amplitude float64 0.09749\n",
" frequency float64 62.83\n",
" shift float64 0.162\n",
2023-08-07 18:37:50 +02:00
" offset float64 -5.246e-07"
2023-08-01 18:52:06 +02:00
]
},
2023-08-07 18:37:50 +02:00
"execution_count": 44,
2023-08-01 18:52:06 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"val = fitAnalyser.get_fit_value(fitResult)\n",
"val"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 45,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [],
"source": [
"def voltage_to_phase(voltage):\n",
" voltage = (voltage - val.offset)\n",
" # voltage = xr.where(voltage > val.amplitude, voltage % val.amplitude, voltage % val.amplitude - val.amplitude)\n",
" voltage = voltage / val.amplitude\n",
" voltage_frac, b= np.modf(voltage.to_numpy())\n",
" voltage = xr.where(np.abs(voltage) > 1, np.arcsin(voltage_frac) + np.trunc(voltage) * np.pi, np.arcsin(voltage))\n",
" return voltage"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 89,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
2023-08-07 14:43:56 +02:00
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\data\\AppData\\Roaming\\Python\\Python39\\site-packages\\xarray\\core\\computation.py:760: RuntimeWarning: invalid value encountered in arcsin\n",
" result_data = func(*input_data)\n"
]
2023-08-01 18:52:06 +02:00
}
],
"source": [
2023-08-07 18:37:50 +02:00
"phaseWithoutModulation = voltage_to_phase(dataWithoutModulation)"
2023-08-07 14:43:56 +02:00
]
},
{
"cell_type": "code",
2023-08-21 10:28:12 +02:00
"execution_count": 126,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-21 10:28:12 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAloAAAHECAYAAADh34REAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABqtUlEQVR4nO3de3wU5b0/8M9usrlsLpsEihsQSVRuMUEBsVCECgTkIrXVc46iVFo9aL39KkdRUZFwvCCKpZ5S8YK/qgWhtdqfiBIE1AqcIHIrhFCuCSIkYBLY3MiF7Pz+CLNuNju7M7Pz7M4mn/frlRchO/PMM8/Oznz3uVokSZJARERERIazRjoDRERERJ0VAy0iIiIiQRhoEREREQnCQIuIiIhIEAZaRERERIIw0CIiIiIShIEWERERkSCxkc5ANHO73Th58iRSUlJgsVginR0iIiJSQZIk1NbWomfPnrBaxdY5MdAKwcmTJ9G7d+9IZ4OIiIh0OH78OC6++GKhx2CgFYKUlBQAbW9UampqhHNDREREatTU1KB3796e57hIDLRCIDcXpqamMtAiIiKKMuHo9sPO8ERERESCMNAiIiIiEoSBFhEREZEgDLSIiIiIBGG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gEYaBFREREJAgDLSIiIiJBGGgRERERCcJAi4iIiEgQBlpEREREgjDQIiIiIhKEgRYRERGRIAy0iIiIiARhoEVEREQkCAMtIiIiIkEYaBEREREJwkCLiIiISBAGWkRERESCMNAiIiIiEoSBFhE
2023-08-07 14:43:56 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"(phaseWithoutModulation/np.pi).plot.errorbar(ax=ax, fmt='o')\n",
"\n",
"# ax.set_xlim([0, 0.1])\n",
"plt.show()"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 91,
2023-08-07 14:43:56 +02:00
"metadata": {},
"outputs": [],
"source": [
"def autocorr(x):\n",
" result = np.correlate(x, x, mode='full')\n",
" return result[len(result)//2:]"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def get_noise_spectrum(data):\n",
" dataAutoCorr = autocorr(data)\n",
" dataAutoCorr = xr.DataArray(\n",
" data=dataAutoCorr,\n",
" dims=['x'],\n",
" coords=dict(\n",
" x=data.x\n",
" )\n",
" )\n",
" \n",
" dataNoiseSpec = fft(dataAutoCorr)\n",
" \n",
" return dataNoiseSpec\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 92,
"metadata": {},
"outputs": [],
"source": [
"phaseWithoutModulation = phaseWithoutModulation - phaseWithoutModulation.mean()"
]
},
{
"cell_type": "code",
"execution_count": 93,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [],
"source": [
2023-08-07 14:43:56 +02:00
"phaseAutoCorrWithoutModulation = autocorr((phaseWithoutModulation/np.pi))\n",
"phaseAutoCorrWithoutModulation = xr.DataArray(\n",
" data=phaseAutoCorrWithoutModulation,\n",
" dims=['x'],\n",
" coords=dict(\n",
" x=phaseWithoutModulation.x\n",
" )\n",
")"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 94,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray (x: 1200)>\n",
2023-08-07 18:37:50 +02:00
"array([ 1.92834649e+02, -7.04156659e+01, 2.53150014e+00, ...,\n",
" -1.15671835e-01, -1.59932171e-01, 9.16532266e-02])\n",
2023-08-07 14:43:56 +02:00
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398</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'></div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-53c26ede-f108-4e2e-a9f9-ba989040b27b' class='xr-array-in' type='checkbox' checked><label for='section-53c26ede-f108-4e2e-a9f9-ba989040b27b' 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>192.8 -70.42 2.532 4.986 15.84 ... 0.3829 -0.1157 -0.1599 0.09165</span></div><div class='xr-array-data'><pre>array([ 1.92834649e+02, -7.04156659e+01, 2.53150014e+00, ...,\n",
" -1.15671835e-01, -1.59932171e-01, 9.16532266e-02])</pre></div></div></li><li class='xr-section-item'><input id='section-120abb18-cf75-461d-9d28-89a366fcc21f' class='xr-section-summary-in' type='checkbox' checked><label for='section-120abb18-cf75-461d-9d28-89a366fcc21f' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.002 0.004 ... 2.396 2.398</div><input id='attrs-fa777fe7-01da-46ba-87a5-8752bebdf97e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-fa777fe7-01da-46ba-87a5-8752bebdf97e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-98bb3468-05e8-4b68-90e7-6144a67079fc' class='xr-var-data-in' type='checkbox'><label for='data-98bb3468-05e8-4b68-90e7-6144a67079fc' 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.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-68a9c07f-0859-4d2c-9e2b-696458ab8d89' class='xr-section-summary-in' type='checkbox' ><label for='section-68a9c07f-0859-4d2c-9e2b-696458ab8d89' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-ba65b85a-12ac-4658-b1c6-136ea642a64b' class='xr-index-data-in' type='checkbox'/><label for='index-ba65b85a-12ac-4658-b1c6-136ea642a64b' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 0.002, 0.004,\n",
" 0.006, 0.008, 0.01,\n",
" 0.012, 0.014, 0.016,\n",
" 0.018000000000000002,\n",
2023-08-07 14:43:56 +02:00
" ...\n",
2023-08-07 18:37:50 +02:00
" 2.38, 2.382, 2.384,\n",
" 2.386, 2.388, 2.39,\n",
" 2.392, 2.394, 2.396,\n",
" 2.398],\n",
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-25f4e50b-dc59-4bca-81d3-9079b245eb13' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-25f4e50b-dc59-4bca-81d3-9079b245eb13' 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>"
2023-08-07 14:43:56 +02:00
],
2023-08-01 18:52:06 +02:00
"text/plain": [
2023-08-07 14:43:56 +02:00
"<xarray.DataArray (x: 1200)>\n",
2023-08-07 18:37:50 +02:00
"array([ 1.92834649e+02, -7.04156659e+01, 2.53150014e+00, ...,\n",
" -1.15671835e-01, -1.59932171e-01, 9.16532266e-02])\n",
2023-08-07 14:43:56 +02:00
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398"
2023-08-01 18:52:06 +02:00
]
},
2023-08-07 18:37:50 +02:00
"execution_count": 94,
2023-08-01 18:52:06 +02:00
"metadata": {},
2023-08-07 14:43:56 +02:00
"output_type": "execute_result"
2023-08-01 18:52:06 +02:00
}
],
"source": [
2023-08-07 14:43:56 +02:00
"phaseAutoCorrWithoutModulation"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 95,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 18:37:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAlIAAAHGCAYAAAC/wGW7AAAAO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EWyyUnJ+PZZ5+FTqdDr169kJiYCK1WC61Wi+nTpwMAVq1ahYULF1b2IzpO9cpzREREJIPDaqSio6ORmZlp8to777zjqM3bNH36dOTn5yMoKAibN29G7dq1AQBqtRqzZs1CWloaVqxYgTlz5mDs2LGoU6dOlewXERER1WwOq5Fyd3d31KYqJD8/X+wD9dprr4khSmrq1KkAgJycHPz0009VuHflY8seERGR63L5u/bi4+Nx584dAMCAAQMsrhMaGoo2bdoAAOLi4qps32xhyx4REZHrq1ZB6syZM4iMjISPjw/UajUiIiIwduxYHDt2zGqZ06dPi8/btWtndb3IyEjxPYiIiIgcoVoFqfT0dJw7dw6+vr4oLCzE+fPnsXLlSkRFRWHatGkWy6SmpgIwdHT39fW1uu3GjRubrG9JYWEhcnJyTB5ERERE1lSLINWqVSssWLAAiYmJKCgoQEZGBvLz87F9+3ZERUVBEATMmTMHixcvNiubm5sLADZDlHS5cX1L5s2bB41GIz5CQkIq8ansI3D8AyIiIpdVLYLU8OHDMWXKFISHh8PDwwMA4OnpiZiYGMTHx6Nr164ADAN3arVap+3H1KlTxWETtFotUlJSnPZe1Ww4KyIiIpKhWgQpW7y9vTF37lwAQF5eHnbt2mWy3N/fHwDEgTitMS43rm+Jl5cXAgICTB5ERERE1lT7IAUAPXr0EJ8
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
2023-08-07 14:43:56 +02:00
"phaseAutoCorrWithoutModulation.plot.errorbar(ax=ax)\n",
2023-08-01 18:52:06 +02:00
"plt.show()"
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 96,
2023-08-01 18:52:06 +02:00
"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",
2023-08-07 14:43:56 +02:00
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray 'x' (x: 1200)>\n",
2023-08-07 18:37:50 +02:00
"array([0.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])\n",
2023-08-07 14:43:56 +02:00
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398</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'>'x'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-4450e2ea-1980-4c10-8aba-aa4892e7c8f0' class='xr-array-in' type='checkbox' checked><label for='section-4450e2ea-1980-4c10-8aba-aa4892e7c8f0' 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.0 0.002 0.004 0.006 0.008 0.01 ... 2.39 2.392 2.394 2.396 2.398</span></div><div class='xr-array-data'><pre>array([0.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></div></li><li class='xr-section-item'><input id='section-5984cf45-0576-4743-b4e4-f711fdcea2b0' class='xr-section-summary-in' type='checkbox' checked><label for='section-5984cf45-0576-4743-b4e4-f711fdcea2b0' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.002 0.004 ... 2.396 2.398</div><input id='attrs-bd5e1a55-bad7-4a80-a2c8-bcf7cce2c5cb' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-bd5e1a55-bad7-4a80-a2c8-bcf7cce2c5cb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-38cbcdd8-69df-4ec5-9cb9-2f608380f252' class='xr-var-data-in' type='checkbox'><label for='data-38cbcdd8-69df-4ec5-9cb9-2f608380f252' 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.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-93ef5d77-98f4-4385-a0e9-e3eecdaa0098' class='xr-section-summary-in' type='checkbox' ><label for='section-93ef5d77-98f4-4385-a0e9-e3eecdaa0098' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-8a4a96a5-89b8-42c7-96af-4d6221b753a6' class='xr-index-data-in' type='checkbox'/><label for='index-8a4a96a5-89b8-42c7-96af-4d6221b753a6' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 0.002, 0.004,\n",
" 0.006, 0.008, 0.01,\n",
" 0.012, 0.014, 0.016,\n",
" 0.018000000000000002,\n",
2023-08-07 14:43:56 +02:00
" ...\n",
2023-08-07 18:37:50 +02:00
" 2.38, 2.382, 2.384,\n",
" 2.386, 2.388, 2.39,\n",
" 2.392, 2.394, 2.396,\n",
" 2.398],\n",
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-3485ed86-61a3-4f83-a633-7a5df6c82585' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-3485ed86-61a3-4f83-a633-7a5df6c82585' 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>"
2023-08-01 18:52:06 +02:00
],
"text/plain": [
2023-08-07 14:43:56 +02:00
"<xarray.DataArray 'x' (x: 1200)>\n",
2023-08-07 18:37:50 +02:00
"array([0.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])\n",
2023-08-07 14:43:56 +02:00
"Coordinates:\n",
2023-08-07 18:37:50 +02:00
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398"
2023-08-01 18:52:06 +02:00
]
},
2023-08-07 18:37:50 +02:00
"execution_count": 96,
2023-08-01 18:52:06 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"phaseAutoCorrWithoutModulation.x"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 97,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [],
"source": [
2023-08-07 18:37:50 +02:00
"powerSpecWithoutModulation = fft(phaseAutoCorrWithoutModulation)"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 18:37:50 +02:00
"execution_count": 98,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 18:37:50 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjUAAAHFCAYAAAAKbwgcAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6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U46cnpePKLNbGuiitQ1MQxf5uyAgBQ+PW6GNeEkMSBITWESBFn2Z7w42YEggLeW7g9hjVyD4oaQgghhHgCipo4xuvprAlxB5pqCFHD65ZMihpCCCHEw3hdyIihqCGEeIpk6sAJIVIoagghhJAkweuan6ImjvH5GFVDiFm83mkTYpZkeiYoauIYShpCCCFO4nX3LEUNIcRTeL3TJsQsybQeGkUNIYQQQjwBRQ0hhBCSNHjbakNRE8cwTpgQ8ySTqZ0QIyTTE0FRE9dQ1RBCCCFGoaghhHiKZHorJcQsXjdkUtQQQgghHsbrQkYMRQ0hxFMkUwdOiFm8/nhQ1MQxDBQmhBDiJF4PpKeoIYR4CsHz76KEmEP8THj96aCoiWNoqCGEEOIkHjfUUNQkGh5vj4TYhw8JIVKS6JmgqCGEEEKSBMbUkJihFChMlxQh2ni7yybEHl5/PihqEgyvN0hCCCHOIqj+4T0oauIYH+0yhJjG49Z1QogGFDUJBmUOIYQQogxFTYLBl1BCtGGeGkKkiK2XQY+bMilq4hhmFCaEEEKMQ1FDCPEUHn8RJcQ0zChMCCGEEJJgUNQQQjyF199ECbGD1y2ZFDVxDENqCCG
2023-08-01 18:52:06 +02:00
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
2023-08-07 14:43:56 +02:00
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"abs(powerSpecWithoutModulation).plot.errorbar(ax=ax, x='freq_x')\n",
2023-08-07 18:37:50 +02:00
"# ax.set_xlim([0, 250])\n",
"# ax.set_ylim([0, 0.001])\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 72,
"metadata": {},
"outputs": [],
"source": [
"phaseAutoCorrWithoutModulation = autocorr((dataWithoutModulation))\n",
"phaseAutoCorrWithoutModulation = xr.DataArray(\n",
" data=phaseAutoCorrWithoutModulation,\n",
" dims=['x'],\n",
" coords=dict(\n",
" x=phaseWithoutModulation.x\n",
" )\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 73,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray (x: 1200)>\n",
"array([ 8.13258367e+00, -3.87534581e+00, -1.52647527e-01, ...,\n",
" -7.66522583e-03, -1.13568061e-02, 6.45748028e-03])\n",
"Coordinates:\n",
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398</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'></div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-3e184d0c-70d0-4d25-a9a9-e517ac8f0266' class='xr-array-in' type='checkbox' checked><label for='section-3e184d0c-70d0-4d25-a9a9-e517ac8f0266' 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>8.133 -3.875 -0.1526 -0.002831 ... 0.02548 -0.007665 -0.01136 0.006457</span></div><div class='xr-array-data'><pre>array([ 8.13258367e+00, -3.87534581e+00, -1.52647527e-01, ...,\n",
" -7.66522583e-03, -1.13568061e-02, 6.45748028e-03])</pre></div></div></li><li class='xr-section-item'><input id='section-c253dbde-089a-4265-be30-c13ff8f09c05' class='xr-section-summary-in' type='checkbox' checked><label for='section-c253dbde-089a-4265-be30-c13ff8f09c05' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.002 0.004 ... 2.396 2.398</div><input id='attrs-b11e19e2-20d9-49b5-b463-033a06457bd3' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b11e19e2-20d9-49b5-b463-033a06457bd3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7391b73e-189d-4237-9764-71a498a530d6' class='xr-var-data-in' type='checkbox'><label for='data-7391b73e-189d-4237-9764-71a498a530d6' 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.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-56454e00-a907-4338-a43d-e70e91fd156d' class='xr-section-summary-in' type='checkbox' ><label for='section-56454e00-a907-4338-a43d-e70e91fd156d' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-749c9cd2-7498-4aae-b7f4-c7548e9587df' class='xr-index-data-in' type='checkbox'/><label for='index-749c9cd2-7498-4aae-b7f4-c7548e9587df' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 0.002, 0.004,\n",
" 0.006, 0.008, 0.01,\n",
" 0.012, 0.014, 0.016,\n",
" 0.018000000000000002,\n",
" ...\n",
" 2.38, 2.382, 2.384,\n",
" 2.386, 2.388, 2.39,\n",
" 2.392, 2.394, 2.396,\n",
" 2.398],\n",
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-fc26d3df-7d34-4264-9ae5-5fb9685e3c65' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-fc26d3df-7d34-4264-9ae5-5fb9685e3c65' 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.DataArray (x: 1200)>\n",
"array([ 8.13258367e+00, -3.87534581e+00, -1.52647527e-01, ...,\n",
" -7.66522583e-03, -1.13568061e-02, 6.45748028e-03])\n",
"Coordinates:\n",
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398"
]
},
"execution_count": 73,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"phaseAutoCorrWithoutModulation"
]
},
{
"cell_type": "code",
"execution_count": 74,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkMAAAHECAYAAAA6ZC5mAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABNeklEQVR4nO3dd3gUdeLH8c+mbXqkRyD0Lr1JERUpipVTT0UURCyH5acI0UO9E86CFEGFwwKnqGAvp4eCdBEUFelKEQkt9JJGSCDZ+f0RstnN7qZsstn2fj3PPk+yMzv7zWR25zPfNibDMAwBAAAEqRBvFwAAAMCbCEMAACCoEYYAAEBQIwwBAICgRhgCAABBjTAEAACCGmEIAAAEtTBvF8DTLBaLDh48qLi4OJlMJm8XBwAAlIFhGMrMzFTdunUVEuLZupuAD0MHDx5UUlKSt4sBAADcsH//ftWvX9+j7xHwYSguLk5Swc6Mj4/3cmkAAEBZZGRkKCkpyXoe96SAD0OFTWPx8fGEIQAA/ExVdHGhAzUAAAhqhCEA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2rgwIHeLk6JDMbWAwDg13wuDKWkpOipp55SjRo1NH36dG8XxyW6DAEAEBjCvF2A4u69916dPn1as2bNUq1atbxdHAAAEOB8qmZo9uzZWrZsmfr3769hw4Z5uzhlQiMZAAD+zWdqhlJTU5WcnKyoqCi98cYbbm8nNzdXubm51t8zMjIqo3gOfG2oPwAAcI/P1Az
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"phaseAutoCorrWithoutModulation.plot.errorbar(ax=ax)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 75,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray 'x' (x: 1200)>\n",
"array([0.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])\n",
"Coordinates:\n",
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398</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'>'x'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>x</span>: 1200</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-f71cffa9-a979-4a68-b116-1f5d0e97322a' class='xr-array-in' type='checkbox' checked><label for='section-f71cffa9-a979-4a68-b116-1f5d0e97322a' 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.0 0.002 0.004 0.006 0.008 0.01 ... 2.39 2.392 2.394 2.396 2.398</span></div><div class='xr-array-data'><pre>array([0.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></div></li><li class='xr-section-item'><input id='section-9cd5dede-9b7c-4250-ba5d-cd0209fd7514' class='xr-section-summary-in' type='checkbox' checked><label for='section-9cd5dede-9b7c-4250-ba5d-cd0209fd7514' 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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.002 0.004 ... 2.396 2.398</div><input id='attrs-3ddcac3e-1f37-41b2-b589-922a12846c36' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3ddcac3e-1f37-41b2-b589-922a12846c36' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-72fcace2-59a7-4f72-9dc2-b8672b203fa8' class='xr-var-data-in' type='checkbox'><label for='data-72fcace2-59a7-4f72-9dc2-b8672b203fa8' 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.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-c8f2ca9e-9cfd-4b1e-9b99-cb31813a1b56' class='xr-section-summary-in' type='checkbox' ><label for='section-c8f2ca9e-9cfd-4b1e-9b99-cb31813a1b56' 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>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-76230481-844a-42d3-a5dc-7bb87e7e1bb7' class='xr-index-data-in' type='checkbox'/><label for='index-76230481-844a-42d3-a5dc-7bb87e7e1bb7' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 0.002, 0.004,\n",
" 0.006, 0.008, 0.01,\n",
" 0.012, 0.014, 0.016,\n",
" 0.018000000000000002,\n",
" ...\n",
" 2.38, 2.382, 2.384,\n",
" 2.386, 2.388, 2.39,\n",
" 2.392, 2.394, 2.396,\n",
" 2.398],\n",
" dtype='float64', name='x', length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-03ea0763-d981-42ab-91b1-bbdadaa6adf7' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-03ea0763-d981-42ab-91b1-bbdadaa6adf7' 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.DataArray 'x' (x: 1200)>\n",
"array([0.000e+00, 2.000e-03, 4.000e-03, ..., 2.394e+00, 2.396e+00, 2.398e+00])\n",
"Coordinates:\n",
" * x (x) float64 0.0 0.002 0.004 0.006 0.008 ... 2.392 2.394 2.396 2.398"
]
},
"execution_count": 75,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"phaseAutoCorrWithoutModulation.x"
]
},
{
"cell_type": "code",
"execution_count": 76,
"metadata": {},
"outputs": [],
"source": [
"powerSpecWithoutModulation = fft(phaseAutoCorrWithoutModulation)"
]
},
{
"cell_type": "code",
"execution_count": 77,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAHLCAYAAADyVS3oAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliL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DUVJSgvLycowcORKPPPIImpqa0urY7t27cfvtt2PAgAEoLCxEhw4dMHbsWDz77LOObwmxWAzPPfcczjrrLBxxxBEIh8MoLS3F0KFD8Ytf/AIbN25Mq28EQRAE4YVH3/8Gu6ob8NiCDS3dFQOybuWOPK8bbtmyBePGjUNFRQUAoKioCI2NjVi6dCmWLl2KmTNnYv78+Wjfvr3rtpctW4ZJkyahsrISAFBSUoKamhosXLgQCxcuxOzZs/Hmm28iEolYtj1w4ADOOeccfP7558Z3paWlOHToEFatWoVVq1bhqaeewssvv4yLLrrI28ETBEEQhAcqaxtbugsWqAxQ7vBk6YrH4zj//PNRUVGBbt264f3330ddXR3q6+sxa9YslJaWYvny5bj88stdt11VVYXzzjsPlZWVGDhwIJYsWYKamhrU1dXhscceQzgcxrx583DbbbcJt//lL39pCK4pU6Zg3759qK6uRkNDAz788EMce+yxaGxsxFVXXYXt27d7OXyCIAiC8MSB+vS8QNmASxlBDsas4kl0zZgxAytXrgQAvP7665gwYUKysWAQF198MZ566ikAwJw5czB//nxXbU+bNg27du1CYWEh3n33XYwYMQIAkJ+fj5tvvhlTp04FADz99NN
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"abs(powerSpecWithoutModulation).plot.errorbar(ax=ax, x='freq_x')\n",
"ax.set_xlim([0, 250])\n",
"# ax.set_ylim([0, 0.001])\n",
2023-08-01 18:52:06 +02:00
"plt.show()"
]
},
2023-08-21 10:28:12 +02:00
{
"cell_type": "code",
"execution_count": 127,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"99.99999999999999 kHz\n",
"166.66666666666663 Hz\n"
]
}
],
"source": [
"dt = 5e-6\n",
"samplingFreq = 1/ dt\n",
"blockLength = 1200\n",
"df = samplingFreq / blockLength\n",
"print(str(samplingFreq / 2 / 1e3) + ' kHz')\n",
"print(str(df) + ' Hz')"
]
},
{
"cell_type": "code",
"execution_count": 122,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0.1 kHz\n",
"0.16666666666666666 Hz\n"
]
}
],
"source": [
"dt = 5e-3\n",
"samplingFreq = 1/ dt\n",
"blockLength = 1200\n",
"df = samplingFreq / blockLength\n",
"print(str(samplingFreq / 2 / 1e3) + ' kHz')\n",
"print(str(df) + ' Hz')"
]
},
2023-08-01 18:52:06 +02:00
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "base",
"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.12"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}