analyseScript/AccordionLattice.ipynb

4867 lines
1.1 MiB
Plaintext
Raw Normal View History

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 14:43:56 +02:00
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-96d8b24a-350f-11ee-b2e8-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 14:43:56 +02:00
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">5c0f0cab</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 14:43:56 +02:00
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-3d7919f2-9d5a-4c3c-ad32-da552b0908f2</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 14:43:56 +02:00
" <strong>Comm:</strong> tcp://127.0.0.1:59147\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 14:43:56 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:59186\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 14:43:56 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:59188/status\" target=\"_blank\">http://127.0.0.1:59188/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 14:43:56 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:59150\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 14:43:56 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-d4jh3llm\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 14:43:56 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:59174\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 14:43:56 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:59175/status\" target=\"_blank\">http://127.0.0.1:59175/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 14:43:56 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:59151\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 14:43:56 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-7n_jzyyb\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 14:43:56 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:59183\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 14:43:56 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:59184/status\" target=\"_blank\">http://127.0.0.1:59184/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 14:43:56 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:59152\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 14:43:56 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-6lgabcpn\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 14:43:56 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:59178\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 14:43:56 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:59181/status\" target=\"_blank\">http://127.0.0.1:59181/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 14:43:56 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:59153\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 14:43:56 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-9839jr0d\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 14:43:56 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:59187\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 14:43:56 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:59190/status\" target=\"_blank\">http://127.0.0.1:59190/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 14:43:56 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:59154\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 14:43:56 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-_dcfvi3p\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 14:43:56 +02:00
" <strong>Comm: </strong> tcp://127.0.0.1:59177\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 14:43:56 +02:00
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:59179/status\" target=\"_blank\">http://127.0.0.1:59179/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 14:43:56 +02:00
" <strong>Nanny: </strong> tcp://127.0.0.1:59155\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 14:43:56 +02:00
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-8ax_4zju\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 14:43:56 +02:00
"<Client: 'tcp://127.0.0.1:59147' 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'>&lt;xarray.DataArray &#x27;CH1&#x27; (x: 1200)&gt;\n",
"array([0.59 , 0.648, 0.62 , ..., 0.612, 0.576, 0.638])\n",
"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</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-85d394ab-8897-405c-a1f1-d21d25f5f553' class='xr-array-in' type='checkbox' checked><label for='section-85d394ab-8897-405c-a1f1-d21d25f5f553' 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-ebb58d0b-caad-4ae3-b4eb-825d023a1478' class='xr-section-summary-in' type='checkbox' checked><label for='section-ebb58d0b-caad-4ae3-b4eb-825d023a1478' 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-3ba49d4d-eca2-47bd-baf8-850e0d73c4e4' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3ba49d4d-eca2-47bd-baf8-850e0d73c4e4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-29893755-b7ac-44cc-8227-58124c1cb1a5' class='xr-var-data-in' type='checkbox'><label for='data-29893755-b7ac-44cc-8227-58124c1cb1a5' 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-2d3a4c19-2384-4358-a2ae-b0a77ff951ac' class='xr-section-summary-in' type='checkbox' ><label for='section-2d3a4c19-2384-4358-a2ae-b0a77ff951ac' 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-a5c830f0-0d99-4879-a72d-7acc564e2948' class='xr-index-data-in' type='checkbox'/><label for='index-a5c830f0-0d99-4879-a72d-7acc564e2948' 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 14:43:56 +02:00
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-01e23822-a00c-4151-a28b-b400250ead32' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-01e23822-a00c-4151-a28b-b400250ead32' 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+fOnejSpUvQzVAoFAqFQiH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ul+yzomhfhcvWsFHKXEjJzs5OfK6osB8E2mPac2R47rnnANQvj9oFNmjrYbVLe9ypXampqcjJydH984ObX1mR+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": [
"dataWithModulationFFT = fft(dataWithModulation)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAlUAAAHPCAYAAAB6Ey8KAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABNl0lEQVR4nO3de3hU5aHv8d+aSTKTySQhCZdwk0QRRKEWEVsKnhqhKK1s3VoFxQu6N2Wrh27dij0e3RjtVqqC2lOPeAfcoihSqdvKRSM9LShUlF0EI1JIALmTkOskM8nMOn/EGSaXCZlhJVno9/M882Qy73rfeScrmfllrXe9r2GapikAAACcFEd3dwAAAODbgFAFAABgAUIVAACABQhVAAAAFiBUAQAAWIBQBQAAYAFCFQAAgAUIVQAAABYgVAEAAFiAUAUAAGCBkwpV1dXVKiws1IgRI+T1epWZmanRo0dr/vz5CgQCCbW5b98+PfPMM7r66qs1ePBgpaamKjU1Vfn5+br22mv14Ycftlt/+vTpMgzjhLfGxsaE+gcAANAWI9G1/3bv3q2LLrpIpaWlkiSPx6NgMCi/3y9JGjlyp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73qVopKSnRs88+K0maMmVKq3Oj4b5lZWXJ4/GcsG/Rr6Ulv98fuZJRajpdCAAAEEvcR6qqq6sj99sLLtFl0XUSVVdXF5kmIScnR3Pnzo3Zt/b6FV3eXr/
"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",
"ax.set_xlim([0.5, 50])\n",
"ax.set_ylim([0, 0.25])\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Without Modulation"
]
},
{
"cell_type": "code",
"execution_count": 7,
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'>&lt;xarray.DataArray &#x27;CH1&#x27; (x: 1200)&gt;\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</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-b7f5aa1b-dc0d-4821-9c71-89b2bde9ef50' class='xr-array-in' type='checkbox' checked><label for='section-b7f5aa1b-dc0d-4821-9c71-89b2bde9ef50' 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-ff049e25-7c3f-47e6-945e-5e7506a52f29' class='xr-section-summary-in' type='checkbox' checked><label for='section-ff049e25-7c3f-47e6-945e-5e7506a52f29' 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-02cd1f81-1e65-40f4-a64e-074e6f71a221' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-02cd1f81-1e65-40f4-a64e-074e6f71a221' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-384014d9-6ac0-4bd4-b3d2-b73f9b960acd' class='xr-var-data-in' type='checkbox'><label for='data-384014d9-6ac0-4bd4-b3d2-b73f9b960acd' 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-4d6fb09e-277d-4aa4-8e41-3ead7dc7d475' class='xr-section-summary-in' type='checkbox' ><label for='section-4d6fb09e-277d-4aa4-8e41-3ead7dc7d475' 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-b1faa13e-8e89-4cab-9ac2-3f2825646f39' class='xr-index-data-in' type='checkbox'/><label for='index-b1faa13e-8e89-4cab-9ac2-3f2825646f39' 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-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",
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-a4ed7e76-f5a1-41fe-8486-591cf3819de2' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-a4ed7e76-f5a1-41fe-8486-591cf3819de2' 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 14:43:56 +02:00
"execution_count": 7,
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 14:43:56 +02:00
"execution_count": 8,
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/V9TGVHBHRYuzLKYhWYWQ8IBypttfku2TBHBw8fRLe89X7AQDXnv9G/PFxh0YWTMKSBXPwwtYhfP6nv8PU3gr+9eI3x84nRMS5Q49W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 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",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"dataWithoutModulationFFT = fft(dataWithoutModulation)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAHPCAYAAABpxG/+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAACaUUlEQVR4nO3deXwU9fkH8M/uZnNsNgnhDDeoEEAQMYAiUEAQpGi1WgWPelatWg8EbbEeWKu2Ctr+ijdW0aJUvIrIJYgKKDdyH3IEEAhHQs7Nscf8/tjM5DuzM7Mzm2QT4PN+vXwZdndmZ8959vk+3+frkCRJAhERERHVK2dDHwARERHRmYBBFxEREVEcMOgiIiIiigMGXURERERxwKCLiIiIKA4YdBERERHFAYMuIiIiojhg0EVEREQUBwy6iIiIiOKAQRcRERFRHNQq6CopKcHkyZPRq1cveL1eZGRkoF+/fpg6dSqqqqpqdWBHjx7FhAkTkJ2djZSUFDRt2hSDBw/G9OnTYbZy0a233gqHwxH1v0AgUKvjIyIiIrLDEevai/v378fQoUORm5sLAPB4PAgGg6isrAQA9OnTB0uWLEFmZqbtfa9btw6jRo1Cfn4+AMDr9aKiokIJlEaOHIk5c+YgKSkpYttbb70VM2bMQHJyMjIyMgzv49ChQ3C5XLaPjYiIiCgWMWW6gsEgrrjiCuTm5qJ169b46quvUFZWBp/Ph1mzZiEtLQ0bNmzAjTfeaHvfRUVFuPzyy5Gfn49u3bphzZo1KCkpQVlZGaZNmwa3241FixZh/PjxpvsZO3Ys8vLyDP9jwEVERETxFFPQ9e6772Lz5s0Ag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EBnnvuOQBAu3bt0KdPH1vHRkRERBSrmIOuXr16QZIkXHPNNcr6iqFQCLNnz8add94JINxVfvjw4aptJ0+eDIfDAYfDoRtUTZw4EVlZWfD5fBgzZgzWrVsHAKiqqsJrr72GJ554AgBw1113oWvXrqpt//Of/+Dqq6/GJ598gmPHjimXl5eX4/PPP8dFF12kBINTpkxp8H4dREREdOaIqWVEQkIC5syZg2HDhiE3NxcjRoyAx+NBKBRCRUUFAKBPnz4xrY2YkZGBuXPnYtSoUdi2bRv69u2LtLQ0VFRUwO/3AwgPK7788ssR2waDQXz22Wf47LPPAACpqalITk5GYWEhgsEggPCsxJdeegljx46N5aETERERxSTmVE+nTp2wadMmPPnkk+jZsyccDgfcbjdycnIwZcoUrFy5EpmZmTHtOycnB1u3bsX48ePRpUsX+P1+pKamYtCgQXjrrbcwf/583XYOw4YNw7PPPovLL78cZ599NtxuN4qKipCeno5+/frhj3/8I7Zv345777031odNREREFBOHFK0QigCEm6tlZGQoQRwRERE1fo3p/M2iJiIiIqI4YNBFREREFAcMuoiIiIjigEEXERERURww6CIiIiKKAwZdRERERHHAoIuIiIgoDhh0EREREcUBgy4iIiKiOGDQRURERBQHDLqIiIiI4oBBFxEREVEcMOgiIiIiigMGXURERERxwKCLiIiIKA4YdBERERHFAYMuIiIiojhg0EVEREQUBwy6iIiIiOKAQRcRERFRHDDoIiIiIooDBl1EREREccCgi4iIiCgOGHQRERERxQGDLiIiIqI4YNBFREREFAcMuoiIiIjigEEXERERURww6CIiIiKKAwZdRERERHHAoIuIiIgoDhh0EREREcUBgy4iIiKiOGDQRURERBQHDLqIiIiI4oBBFxEREVEcMOgiIiIiigMGXURERERxwKCLiIiIKA4YdBERERHFAYMuIiIiojhg0EVEREQUBwy6iIiIiOKAQRcRERFRHDDoIiIiIooDBl1EREREccCgi4iIiCgOGHQRERERxQGDLiIiIqI4YNBFREREFAcMuoiIiIjigEEXERERURww6CIiIiKKAwZdRERERHHAoIuIiIgoDmoVdJWUlGDy5Mno1asXvF4vMjIy0K9fP0ydOhVVVVW1OrCjR49iwoQJyM7ORkpKCpo2bYrBgwdj+vTpkCTJ9v5Gjx4Nh8MBh8OBoUOH1urYiIiIiOxySLFEMAD279+PoUOHIjc3FwDg8XgQDAZRWVkJAOjTpw+WLFmCzMxM2/tet24dRo0ahfz8fACA1+tFRUUFAoEAAGDkyJGYM2cOkpKSLO3v3XffxW233ab8e8iQIfjmm29sHVNxcTEyMjJQVFSE9PR0W9sSERFRw2hM5++YMl3BYBBXXHEFcnNz0bp1a3z11VcoKyuDz+fDrFmzkJaWhg0bNuDGG2+0ve+ioiJcfvnlyM/PR7du3bBmzRqUlJSgrKwM06ZNg9vtxqJFizB+/HhL+8vLy8PDDz+MJk2aoHv37raPh4iIiKguxBR0vfvuu9i8eTMA4JNPPsGIESPCO3M6MXbsWLzxxhsAgPnz52PJkiW29j1lyhTk5eUhJSUF8+bNQ9++fQEAiYmJuO+++/D0008DAN58803s2rUr6v7uvfdenDx5Ei+++CJatmxp61iIiIiI6kpMQdeMGTMAAMOGDcOAAQMirh83bhw6d+4MAHjvvfds7Vu+vbgP0f333w+v14tgMIiZM2ea7uujjz7CZ599hiFDhuCOO+6wdRxEREREdcl20OXz+bBixQoA4eJ0PQ6HA5dddhkAYNGiRZb3vXPnThw4cMB0316vF4MHD4667/z8fNx///1ISkrCm2++CYfDYfk4iIiIiOqa7aBr+/btCIVCAICePXsa3k6+Li8vDwUFBZb2vWXLlojtzfa9bds2w9s88MADOHbsGJ544gl07drV0v0TERER1ZcEuxscPnxY+btt27aGtxOvO3z4MJo2bVrn+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 14:43:56 +02:00
"execution_count": 11,
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'>&lt;xarray.DataArray &#x27;CH1&#x27; (x: 1200)&gt;\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 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</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-70019e75-6ef4-4537-a08b-21b123c79e39' class='xr-array-in' type='checkbox' checked><label for='section-70019e75-6ef4-4537-a08b-21b123c79e39' 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-bdd85531-e2c8-4889-9d31-9399d24cb8d7' class='xr-section-summary-in' type='checkbox' checked><label for='section-bdd85531-e2c8-4889-9d31-9399d24cb8d7' 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-17825866-6e76-4d95-bb34-66d9acd5b0bd' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-17825866-6e76-4d95-bb34-66d9acd5b0bd' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9ef53c6c-2e47-47f9-ba2d-e2826e762e4f' class='xr-var-data-in' type='checkbox'><label for='data-9ef53c6c-2e47-47f9-ba2d-e2826e762e4f' 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-b59f35b9-a63a-4d5c-87f3-9bf5e669e898' class='xr-section-summary-in' type='checkbox' ><label for='section-b59f35b9-a63a-4d5c-87f3-9bf5e669e898' 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-c67e1c57-8b7b-49ae-8f94-73f3b7880a82' class='xr-index-data-in' type='checkbox'/><label for='index-c67e1c57-8b7b-49ae-8f94-73f3b7880a82' 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 14:43:56 +02:00
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-4906815f-4ed7-4c19-b1a3-c702f07fe853' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-4906815f-4ed7-4c19-b1a3-c702f07fe853' 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 14:43:56 +02:00
"execution_count": 11,
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 14:43:56 +02:00
"execution_count": 12,
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/W6CwsLBQBCYWGh6mXJM01fXSE0fXWFcOOk9YGuCunE+r0Ftv2CiEgJf16/g7YFc/78+QCArKws9OjRw2n60KFD0bx5cwDAggULVJdvXUZcjtioUaMQFxeHmpoaLFy4UHX53bt3t73Oz8+3m5aeno60tDTZZevUqYO77roLALBt2zbV6yaiwAvezk1EZARBGWCWlZVhy5YtAIBBgwZJzmMymTBw4EAAwJ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YvXo1AMszw9VIT09HkyZNXJZfWlpqy2WptnzAMijo7NmzAORvr58+fdopuGzfvr3qdemV2SygoLDc/YwOThVe5gjcACkoLIdZQWR0rqSCnfrd4C6svfKqGpwvqQh0NagWCsbrTlAGmABsz/DesGEDfvnlF6fpS5YswZEjRwBYck2qZV1m8eLFyMvLc5o+Y8YMlJSUIDQ01Ol559XV1W7Lnzx5sm2+Pn36OE0X3xZPSUnBhg0balVwCQAvfvEbuk9aj1XZ7vugWs364TB6TPoeH6094MOakZTv951G90nrMXLhTpfzHTtfiq7vrEP/j37wU82MSeAtcs3dPHkDuryzzqMfruRbJlOga+C5z385jh6TvsfE5cpyXtcWQR1gZmZmQhAE3H333Vi/fj0AwGw2Y8mSJbb8kIMGDULfvn2dlp8wYYJthLpUADl27FikpqairKwMgwcPxo4dOwAAlZWVmDlzJt58800AwFNPPYXWrVvbLbtw4ULcfvvtWLp0Kc6cOWN732w2Y/fu3Xjqqafw9ttvAwB69uxpe+KQ1dmzZ23BZWpqKjZs2FArb4sv+92Sb/RfGw8rXub9lZYkvf/4Xr5bAfnGrI2WH2yrcgpczrcm5zQAIO+8/AA5Il84XWRpvdxy6FyAa0KOjNz4N+m7vQCAeT/lBbYifmaYPphaCwsLw7Jly5CVlYW8vDz069cPMTExMJvNKC+3/Hrt1KmTR88JByyDilasWIEBAwYgNzcXXbt2RXx8PMrLy1FVVQXAcmv8o48+clpWEAQsX74cy5cvBwDExsYiOjoaRUVFqKystM13yy23YMmSJTA5/LSbOXMmcnJyAFhupWdlZbms67Zt29C4cWOPPieRUmxx05aRL7h6Fxpi4OYy0p1gPVSDNsAEgGbNmmH37t2YMmUKli5diqNHjyI8PBzt27fHAw88gFGjRiEiIsLj8rt06YKcnBx88MEHWLFiBU6cOIHY2FhkZGRg+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 14:43:56 +02:00
"execution_count": 13,
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 14:43:56 +02:00
"execution_count": 14,
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/XrFmzlJqaqvj4eCUnJysjI0NLly5Vc1cuuv3222Wz2c56q6mpadX8AAAAQmEL99qLeXl5GjNmjHJzcyVJdrtdPp9PlZWVkqRhw4Zpw4YNSkpKCrl2VlaWxo0bp6KiIkmSw+GQ1+sNBKWxY8dq5cqVio2NbTD29ttv1wsvvKC4uDi5XK4mH+Po0aOKjIwMeW4AAADhCOuTLp/Pp+uvv165ubnq3r273nnnHVVUVMjj8Wj58uVyOp3asWOHpkyZEnJtt9utSZMmqaioSI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jR//nylpaXJ4XDI5XJpxIgRWrRokaqqqlo1sePHj2vWrFlKTU1VfHy8kpOTlZGRoaVLl8oYE3K9CRMmyGazyWazacyYMa2aGwAAQKhsJpwEIykvL09jxoxRbm6uJMlut8vn86myslKSNGzYMG3YsEFJSUkh187KytK4ceNUVFQkSXI4HPJ6vaqpqZEkjR07VitXrlRsbGyL6j3//PO64447Aj9fddVVeu+990KaU2lpqVwul9xutxITE0MaCwAA2kdHev8O65Mun8+n66+/Xrm5uerevbveeecdVVRUyOPxaPny5XI6ndqxY4emTJkScm23261JkyapqKhIgwYN0rZt21RWVqaKigotXrxY0dHRWrdunWbOnNmieoWFhfrlL3+pTp06afDgwSHPBwAAoC2EFbqef/55ffHFF5Kk1157Tddee21tsYgI3XzzzfrLX/4iSVq9erU2bNgQUu2FCxeqsLBQ8fHxevvttzV8+HBJUkxMjO655x499NBDkqRnnnlG+/fvP2u9u+++WyUlJXrsscfUtWvXkOYCAADQVsIKXS+88IIkKTMzUyNHjmzQPnnyZPXv31+S9OKLL4ZUu65/cI1gM2bMkMPhkM/n07Jly5qt9corr+gf//iHrrrqKv3kJz8JaR4AAABtKeTQ5fF4tHnzZkm1O6c3xmazafz48ZKkdevWtbh2dna2jhw50mxth8OhjIyMs9YuKirSjBkzFBsbq2eeeUY2m63F8wAAAGhrIYeuvXv3yu/3S5KGDh3aZL+6tsLCQhUXF7eo9q5duxqMb672nj17muzzi1/8QidOnND999+vgQMHtujxAQAAzpWoUAcUFBQElnv27Nlkv+C2goICJScnt3nt0tJSlZeXy+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 14:43:56 +02:00
"execution_count": 15,
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'>&lt;xarray.DataArray &#x27;CH1&#x27; (x: 1200)&gt;\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 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</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-9a126cee-8ad7-4a0a-9d74-5970d9d895f7' class='xr-array-in' type='checkbox' checked><label for='section-9a126cee-8ad7-4a0a-9d74-5970d9d895f7' 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-13ba4104-bbf2-4e3f-964c-0d5a1bc3d698' class='xr-section-summary-in' type='checkbox' checked><label for='section-13ba4104-bbf2-4e3f-964c-0d5a1bc3d698' 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-b86bca69-8ffb-4229-8aba-7dfe5d188baf' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b86bca69-8ffb-4229-8aba-7dfe5d188baf' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b143f99e-301a-4fa2-b4f8-fdbde024bdcf' class='xr-var-data-in' type='checkbox'><label for='data-b143f99e-301a-4fa2-b4f8-fdbde024bdcf' 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-26adf261-3927-468e-8b90-ce9a1aca7e58' class='xr-section-summary-in' type='checkbox' ><label for='section-26adf261-3927-468e-8b90-ce9a1aca7e58' 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-e93fdca0-0fc3-4160-950c-298cd0157a6f' class='xr-index-data-in' type='checkbox'/><label for='index-e93fdca0-0fc3-4160-950c-298cd0157a6f' 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 14:43:56 +02:00
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-98e9916b-f5fc-4a5e-b29e-22dc816dec33' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-98e9916b-f5fc-4a5e-b29e-22dc816dec33' 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 14:43:56 +02:00
"execution_count": 15,
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 14:43:56 +02:00
"execution_count": 16,
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/q27YzAY5i5cuIBWrVoFOxtEREQkQ2FhITIyMvy6DwaDYS4pKQmAqTAlJycHOTdERETkCZ1Oh1atWlnu4/7EYDDMmZuGk5OTGQwSEREpTCC6eHEACREREVEEYzBIREREFMEYDBIRERFFMAaDRERERBGMwSARERFRBGMwSERERBTBGAwSERERRTAGg0REREQRjMEgERERUQRjMEhEREQUwRgMEhEREUUwBoNEREREEYzBIPmEwSigTm8IdjaIiIhIIgaD5BPD/rUbt874FjX1D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xMvE20hhDgRXrlwJjUaDzz//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 14:43:56 +02:00
"execution_count": 17,
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 14:43:56 +02:00
"execution_count": 18,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAl0AAAHPCAYAAABpxG/+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABWx0lEQVR4nO3deXRU5eHG8WeyZzJJSEAIO4gQwATEABWBCoIg4vbTqijuFqxYrMjS0iqC1qUK0lbUCqigRSiIWkQ2iagsskVkJ6wJgRCWhEyWyTpzf3/EDBOzkEngJtTv55w552beZd6Zmzv3mbtaDMMwBAAAgIvKp64HAAAA8EtA6AIAADABoQsAAMAEhC4AAAATELoAAABMQOgCAAAwAaELAADABIQuAAAAExC6AAAATEDoAgAAMEGtQld2drYmT56s2NhY2Ww2hYeHq0ePHpo2bZoKCwtrNbCTJ09q7Nixio6OVnBwsCIjI9W3b1/Nnj1bVd256OGHH5bFYjnvo7i4uFbjAwAA8IalpvdeTE5OVr9+/ZSUlCRJslqtcjqdKigokCR169ZN8fHxioiI8LrvhI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JiB0AQAAmIDQBQAAYAJCFwAAgAkIXQAAACYgdAEAAJiA0AUAAGACQhcAAIAJCF0AAAAmIHQBAACYgNAFAABgAkIXAACACQhdAAAAJiB0AQAAmIDQBQAAYAJCFwAAgAkIXQAAACYgdAEAAJigVqErOztbkydPVmxsrGw2m8LDw9WjRw9NmzZNhYWFtRrYyZMnNXbsWEVHRys4OFiRkZHq27evZs+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",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAm0AAAHPCAYAAAABN+3GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAADAeUlEQVR4nO2dd5gURfrHv7PLsmwkKVkBPcnoIaA/BRQTGO8M54nhBPN5yhkAswRzQLwzoqIId5ycmE5RBEUMoChgQElKRhAk7i67smyo3x9FzVT3VHVX93RPWN7P88wzMx2qq2N9+w1VEcYYA0EQBEEQBJHWZKW6AgRBEARBEIQ7JNoIgiAIgiAyABJtBEEQBEEQGQCJNoIgCIIgiAyARBtBEARBEEQGQKKNIAiCIAgiAyDRRhAEQRAEkQGQaCMIgiAIgsgASLQRBEEQBEFkACTaCIIgCIIgMoCERFtZWRlGjx6N7t27o7CwEA0bNkTv3r3x2GOPYe/evQlVbMuWLRg2bBg6duyIvLw8NGnSBP369cOECRPgNPLWypUrMW7cOJx11llo27YtcnNzUVBQgA4dOuCKK67AokWLjLb/9ddf45JLLkGbNm2Qm5uLli1b4pxzz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3ePUU4FVq4C33wZ27kx1beoGZGkjCIIgCCJwVq3i37t2pbQadQoSbQRBEARBEBkAiTaCIAiCIIgMgEQbQRAEQRBEBkCijSAIgiAIIgMg0UYQBEEQBJEBkGgjCIIgCILIAEi0EQRBEAR
"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 14:43:56 +02:00
"execution_count": 20,
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'>&lt;xarray.DataArray &#x27;CH1&#x27; (x: 1200)&gt;\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</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-c2b2fe0b-cdf7-459c-bcbd-21f2c82135d8' class='xr-array-in' type='checkbox' checked><label for='section-c2b2fe0b-cdf7-459c-bcbd-21f2c82135d8' 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-9cf2c600-789e-4941-8dfd-a0ce119240dc' class='xr-section-summary-in' type='checkbox' checked><label for='section-9cf2c600-789e-4941-8dfd-a0ce119240dc' 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-67f82255-7369-4a05-824f-2a72f153892c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-67f82255-7369-4a05-824f-2a72f153892c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3a37856a-f9a7-4915-af89-afab39a59ac4' class='xr-var-data-in' type='checkbox'><label for='data-3a37856a-f9a7-4915-af89-afab39a59ac4' 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-81a1bcb3-7485-49a3-9a25-214e767875a0' class='xr-section-summary-in' type='checkbox' ><label for='section-81a1bcb3-7485-49a3-9a25-214e767875a0' 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-e2d0269d-23de-4294-9c6b-2593b1ca5562' class='xr-index-data-in' type='checkbox'/><label for='index-e2d0269d-23de-4294-9c6b-2593b1ca5562' 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",
" 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",
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-4d07b471-dc00-4caf-9b34-8697f4cba3a1' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-4d07b471-dc00-4caf-9b34-8697f4cba3a1' 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 14:43:56 +02:00
"execution_count": 20,
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 14:43:56 +02:00
"execution_count": 21,
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/Xq/1CJfURHlZoE0iHJRYlAgJMFCouZCAgm57v7+WGY9OXvmnJk5c3bPJvN+vXyVZs+ZeWbmmdnZM8/5PB6/3++HQqFQKBQKhUJhgDfSBigUCoVCoVAo3IvaLCoUCoVCoVAoqKjNokK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+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 14:43:56 +02:00
"execution_count": 22,
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 14:43:56 +02:00
"execution_count": 23,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkUAAAHdCAYAAAATow1yAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAACj1ElEQVR4nO2dd7gcVf3G3y139/bc9N5oIaGGEkqC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2dL0axZszBnzhwcffTROPvsswvZJkIIIYSQHicnS9GaNWswbdo01NTU4J577sn5yyORCCKRiPnvlpaWnM9FCCGEEJIPOVmKLrzwQmzfvh3XX389dtppp5y/fMaMGejTp4/538iRI3M+FyGEEEJIPmQtih588EE8/fTT2HfffXH55Zfn9eXXXHMNtm/fbv63evXqvM5HCCGEEJIrWbnPNm7ciEsvvRSBQACzZs1CMJhXnDbC4TDC4XBe5yCEEEIIKQRZqZqf/vSnaG5uxkUXXYTdd98dbW1tlve7u7vNv8V7oVAIoVCoAE0lhBBCCCkeWbnPVqxYAQD4wx/+gIaGBtt/M2bMMD8rXrvqqqsK22JCCCGEkCJQsA1hCSGEEEIqmaxE0SuvvALDMBz/mz59uvlZ8dqdd95Z6DYTQgghhBQcWooIIYQQQkBRRAghhBACgKKIEEIIIQRAgUXR9ddfb8YSEUIIIYRUErQUEUIIIYSAoogQQgghBABFESGEEEIIAIoiQgghhBAAFEWEEEIIIQA
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 14:43:56 +02:00
"execution_count": 24,
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'>&lt;xarray.DataArray &#x27;CH1&#x27; (x: 1200)&gt;\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 14:43:56 +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-d3c5fe59-a588-4fc3-9180-12bb14c91609' class='xr-array-in' type='checkbox' checked><label for='section-d3c5fe59-a588-4fc3-9180-12bb14c91609' 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-0446da38-5b43-4981-b6c7-1eaccfc48aae' class='xr-section-summary-in' type='checkbox' checked><label for='section-0446da38-5b43-4981-b6c7-1eaccfc48aae' 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-aa3672b9-df22-4436-9609-f20a17b0562c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-aa3672b9-df22-4436-9609-f20a17b0562c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a6072999-8e1f-4c61-b09e-8c4ad830abff' class='xr-var-data-in' type='checkbox'><label for='data-a6072999-8e1f-4c61-b09e-8c4ad830abff' 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-6a7c92a2-3106-488a-9d33-f874f53ca732' class='xr-section-summary-in' type='checkbox' ><label for='section-6a7c92a2-3106-488a-9d33-f874f53ca732' 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-e9347449-cc97-469b-a4d4-fc1510aca8c4' class='xr-index-data-in' type='checkbox'/><label for='index-e9347449-cc97-469b-a4d4-fc1510aca8c4' 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 14:43:56 +02:00
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-25d8a665-f607-4a75-853e-9caa98266910' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-25d8a665-f607-4a75-853e-9caa98266910' 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 14:43:56 +02:00
"execution_count": 24,
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 14:43:56 +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": "iVBORw0KGgoAAAANSUhEUgAAAosAAAHECAYAAABRDGAzAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXR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NXjoX/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 14:43:56 +02:00
"execution_count": 26,
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 14:43:56 +02:00
"execution_count": 27,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkUAAAHdCAYAAAATow1yAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAAB0TUlEQVR4nO3dd3wUZf4H8M+WZDe9k1BDk6Z0BBE4KSqix4l6duxnPf2JCtjuBMsJCpY7PRSxwFmwop5wgNKUIr0IQqgJhNDSezbZ3fn9sZnZZ2ZndjeNFD7v1yuvV7K7s/vszmbmO9/n+zyPSZIkCURERETnOHNjN4CIiIioKWBQRERERAQGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBERERERGAJhwUlZWVYenSpXjppZdw7bXXIjU1FSaTCSaTCdOnT2/s5tWY3HZ/PxMnTmzsZhIREZ2zrI3dACObN2/GlVde2djNqHdxcXEIDQ3VvS82NvbsNoaIiIgUTTYoAjwBxIABA5Sfxx57DKdOnWrsZtXJokWLMHLkyMZuBhEREWk02aBoxIgRyMvLU9321FNPNVJriIiIqKVrsjVFFoulzs9x+PBhPPLII+jZsyciIyMRHh6Onj17YtKkSTh27Fg9tJKIiIhaiiabKaqrefPm4a9//SuqqqoAADabDWazGWlpaUhLS8NHH32Er7/+Gpdddlkjt5SIiIiagiabKaqL7777Dvfddx8AT5dbRkYGysvLUVpairS0NFx//fUoKirCn//857OeMXr88cfRqlUrhIaGIikpCWPGjMG///1vlJWVndV2EBERkVqLC4oqKyvx8MMPAwDeffddzJgxQzWcv3v37vjyyy/xpz/9CUVFRXj99dfPavt27NiBsrIy2O125OTkYNWqVXj44YfRv39/7Nu376y2hYiIiLxaXFC0dOlSZGVlITk5GXfddZfh426//XYAwPLly89Ku26//XYsWbIEubm5KCkpQVFRETIzM/H3v/8dISEhOHDgAMaOHYuCgoKz0h4iIiJSa3E1RevWrQMA5Ofno3Xr1oaPq6ysBAAcPXrU5z6TyVTr17/xxhvx+eef+9y+YMECn9vatWuHF154Af369cN1112HzMxMvP7663jhhRdq/fpERERUOy0uU3TixAkAnqDn9OnThj/5+fkAgPLy8sZsLgDg2muvxbBhwwB46qGIiIjo7GtxmSKXywUAuOKKK7B06dJaPUd2dnatX99ms9Vqu6FDh2L9+vU4cuRIrV+biIiIaq/FBUUpKSkAgN27d9f6ORITE+urOURERNRMtLjuM7kbKisrS6kvag42btwIAOjUqVMjt4SIiOjcVKugaP78+UGt+r5ixYr6bm9A48ePVwqsH3300YDz/2iXEmkIkiT5vf+7775TArirr766wdtDREREvuqUKTKbzUhOTjb8qW19jSw/Px85OTnKj9vtBgCUlZWpbi8pKVG2sdvtmDNnDkwmE7Zv345hw4Zh+fLlymgzAEhPT8fcuXMxePBgzJkzp05tDMb111+Pp556Chs3bkRFRYVye1ZWFp5//nnceOONAIC2bdviiSeeaPD2EBERkS+TFCiNoWP+/Pm46667kJqaioyMjAZolkfHjh11h8xr3XHHHZg/f77qtk8//RT33XefkimyWq2IiYlBSUkJHA6H8riXXnoJzz77bL22W2vkyJH4+eefAXgCyZiYGLhcLhQVFSmP6d69OxYtWoRevXo1aFuIiIhIX4srtJbdeuutGD16NObMmYNly5bh0KFDKCgoQGRkJHr27Inhw4djwoQJuOSSSxq8Lc888wz69++PTZs2ITMzE7m5uXC73WjTpg369euHa665BhMnToTdbm/wthAREZG+Jp0pIiIiIjpbWtzoMyIiIqLaqFNQlJ2djYEDByIyMhJhYWHo3LkzJk6ciDVr1tRT84iIiIjOjjp1n8ni4uJQWlqqGuF111134b333oPValy25HA4VEXPbrcbeXl5SEhIqNP6Y0RERHT2SJKE4uJitGnTBmZzM+6Ekmph+fLl0rRp06Rdu3ZJFRUVkiRJktPplNavXy9deumlEgAJgPTwww/7fZ5p06Ypj+UPf/jDH/7whz/N+yczM7M2YUWTUatMkT9utxvXXnstvv/+e5jNZqSlpeG8887Tfaw2U1RYWIgOHTrg7reX4o3bLq7PZhEREVEDKSoqQvv27VFQUICYmJjGbk6t1fuQfLPZjNmzZ+P777+H2+3GDz/8gMcff1z3sTabTXeCx9CwCERHR9d304iIiKgBNffSlwbp+OvatauyqCpXfSciIqLmoBlXQxERERHVnwYJig4fPoycnBwAXPWdiIiImocaB0WB6rIlScKUKVM8T242449//GPtWkZERER0FtU4KDp69CgGDx6MuXPn4siRI0qQ5Ha7sXHjRowbNw7ffvstAOD+++9H9+7d67fFRERERA2gVqPPtmzZgi1btgDwjCCLiopCcXGxanj9XXfdhX/961/100oiIiKiBlbjoCg5ORlvvfUWfv31V+zcuRPZ2dnIz8+H3W5Hp06dcPHFF+Puu+/GsGHDGqK9RERERA2ixkFRWFgYHn74YTz88MMN0R4iIiKiRsEh+URERERgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERgHoMimbOnAmTyaT8EBERETUn9RIU7d+/H88//3x9PBURERFRo6hzUOR2u3HPPfegoqICQ4cOrY82EREREZ11dQ6K3nrrLaxfvx633norLr/88vpoExEREdFZV6egKD09Hc8++ywSEhLwxhtv1FebINXbMxEREREFx1qXje+9916UlpZizpw5SEpKqq82EREREZ11tc4UzZs3DytXrsSll16K22+/vT7bRERERHTW1SpTlJWVhSlTpiAsLAxz586t9Ys7HA44HA7l76Kiolo/FxEREVFd1CpTdP/996OwsBDTp09H586da/3iM2bMQExMjPLTvn37Wj8XERERUV3UOCj65JNPsGTJEvTr1w+PP/54nV786aefRmFhofKTmZlZp+cjIiIiqq0adZ+dOXMGkyZNgsViwbx582C11qlOGzabDTabrU7PQURERFQfahTVPPnkk8jNzcWDDz6IHj16oKSkRHV/ZWWl8rt8X2hoKEJDQ+uhqUREREQNp0bdZ+np6QCAd955B1FRUT4/M2bMUB4r3zZ16tT6bTERERFRA6i3BWGJiIiImrMaBUVr1qyBJEmGP9OmTVMeK9/25ptv1nebiYiIiOodM0VEREREYFBEREREBIBBERERERGAeg6Kpk+frtQSERERETUnzBQRERERgUEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQFgUEREREQEgEEREREREQAGRUREREQAGBQRERERAWBQRERERASAQRERERERAAZFRERERAAYFBEREREBYFBEREREBIBBEREREREABkVEREREABgUEREREQF
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",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkUAAAHdCAYAAAATow1yAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAACp3klEQVR4nO2dd5gVRdbG3zs5kjOSTICiGDEAnyImXLPrmnXVNa26Roy7ZsWAWVkVV3HXtKw5rKICugoKKmbFQ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hXj00UfjPnh9fT3q6+uj3ysqKuLeFyGEEEJIIsRlKTrnnHNQXl6OG264AVtuuWXcB580aRI6d+4c/RswYEDc+yKEEEIISYSYRdHTTz+NN998EzvttBMuvfTShA5+9dVXo7y8PPq3YsWKhPZHCCGEEBIvMbnP1q5di4svvhjZ2dmYOnUqcnISitNGfn4+8vPzE9oHIYQQQkgyiEnVXHnlldiwYQPOO+88DBs2DFVVVY7fGxoaop/lb3l5ecjLy0tCUQkhhBBCUkdM7rMlS5YAAP7+97+jtLTU9Tdp0qTounLZFVdckdwSE0IIIYSkgKRNCEsIIYQQksnEJIref/99WJbl+Xf99ddH15XL7rvvvmSXmRBCCCEk6dBSRAghhBACiiJCCCGEEAAURYQQQgghAJIsim644YZoLBEhhBBCSCZBSxEhhBBCCCiKCCGEEEIAUBQRQgghhACgKCKEEEI
"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 14:43:56 +02:00
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
"from Analyser.FitAnalyser import NewFitModel"
]
},
{
"cell_type": "code",
"execution_count": 30,
"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",
"execution_count": 31,
"metadata": {},
"outputs": [],
"source": [
"fitModel = NewFitModel(sine_with_offset)\n",
"fitAnalyser = FitAnalyser(fitModel, fitDim=1)"
]
},
{
"cell_type": "code",
"execution_count": 32,
"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",
"execution_count": 33,
"metadata": {},
"outputs": [],
"source": [
"# param = fitAnalyser.guess(dataWithModulation)\n",
"fitResult = fitAnalyser.fit(dataWithModulation, params)\n",
"fitCurve = fitAnalyser.eval(fitResult, x=dataWithModulation.x)"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAnMAAAHECAYAAABSl6xeAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOy9edwdRZU+/lTfe9/7Zl/YwhIIsssiyyAgjIigoCPjwmAYUQRmwHUcHcbvDI4ywfniMoLzcxs3kEVRFlHAhe2LqOwQCIZAIEDIRggh65u8y926fn/07e5TfWs51feG5OXt8/mgSfreutXV1VXPec45TwkppURhhRVWWGGFFVZYYaPSgq3dgcIKK6ywwgorrLDC8lsB5gorrLDCCiussMJGsRVgrrDCCiussMIKK2wUWwHmC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ht/iMJ99z63puu2qDbcq5t6lyzdDbn2m7/07ji3383f9g4u122Kv358Re72bn9qFQDg6S4LPFaT599LRie2vEvNLx+LxubZV7rbf+56+hXl75O7AHO9Mp2Tn3ev0IHlXgKwMYjlRgeY2xp2++2346WXXgKgL3zYUnbhhRcmsiYbN27E8uW91d8x2W+J+GMvcuZeeHUzPvOLeVjUxaLWbIWYc2salh7J2S8pJebc+hSuf7R7jaU/Pvuq8vduF6DbF6zq6vtb0r5557NdH1q9iYSrug3v0PBeLzUbsxtnXls/1NgmHI5emm6Yu3E6Zm03gbSdvx3KzAZdVJSb9Mjy5lHS9v7
"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",
"execution_count": 35,
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'>&lt;xarray.Dataset&gt;\n",
"Dimensions: ()\n",
"Data variables:\n",
" amplitude float64 0.09749\n",
" frequency float64 62.83\n",
" shift float64 0.162\n",
" offset float64 0.5916</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-806f50cb-532c-4906-a3da-2478bc3ea8d1' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-806f50cb-532c-4906-a3da-2478bc3ea8d1' 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-b03634d4-0372-4968-9eb0-74744d053264' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-b03634d4-0372-4968-9eb0-74744d053264' 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-d6169548-fc18-4fba-b509-25c3c1491a7c' class='xr-section-summary-in' type='checkbox' checked><label for='section-d6169548-fc18-4fba-b509-25c3c1491a7c' 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-63db2015-47b8-46c6-88d4-c050e6d4dd52' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-63db2015-47b8-46c6-88d4-c050e6d4dd52' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-0ae31c9d-0a4e-4204-9c15-369bdea45e2a' class='xr-var-data-in' type='checkbox'><label for='data-0ae31c9d-0a4e-4204-9c15-369bdea45e2a' 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-8d29f5ff-bae5-48eb-8a7f-78eb4941d4db' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8d29f5ff-bae5-48eb-8a7f-78eb4941d4db' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-71bf286b-41c3-4a7f-ab6e-11a8681a6433' class='xr-var-data-in' type='checkbox'><label for='data-71bf286b-41c3-4a7f-ab6e-11a8681a6433' 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.83446815)</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-46756898-9b0d-4444-9ce9-8fbb4b2c5e81' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-46756898-9b0d-4444-9ce9-8fbb4b2c5e81' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-554c524c-944c-492e-b8bb-1109ee01422e' class='xr-var-data-in' type='checkbox'><label for='data-554c524c-944c-492e-b8bb-1109ee01422e' 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.16204275)</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-prev
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",
" offset float64 0.5916"
2023-08-01 18:52:06 +02:00
]
},
2023-08-07 14:43:56 +02:00
"execution_count": 35,
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 14:43:56 +02:00
"execution_count": 36,
"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",
"execution_count": 93,
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 14:43:56 +02:00
"phaseWithoutModulation = voltage_to_phase(dataWithoutModulation2)"
]
},
{
"cell_type": "code",
"execution_count": 95,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAnIAAAHECAYAAAC9VcdgAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAACcqklEQVR4nO2deXgV1f3/3/dmXy8JCAmIJLIoMaBARWhAZRVxt7UC4triSr+WqlVrreFHK9palxarFRe0CLhWUSDKZgUEURYxBAuEBBESMCQkITv3zu+PMJfJzSxn5s7dkvfrefI8SWbmzJkz55z5nM/5LA5JkiQQQgghhJCIwxnqChBCCCGEEGtQkCOEEEIIiVAoyBFCCCGERCgU5AghhBBCIhQKcoQQQ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9hUUb+SLsSY9p8KFwntwKfWbXH+z/fSVP0GRt17ORinA4cbxLXavt+zLTCEWhuhWk8b6YrHrm9UrGy6AjMIuo8YrZMuQ9oavkaWvDMqj147YtSw1y/ZvuK3POeuHYQAAR9QWe2vmbrI5tJiMxtZseyWRvXucuLVENtmKW+2Y17l2zDvGnapkFaiDqSzFuzV1V7bsVcxA4bN4YjsUbIBbna2lrv74mJ2jY+ymPKa/yhoaEB1113Herr69G1a1fMnTtX9/y5c+di9uzZttxbDZFV65xlu3RXaZEcHNMMdmx1qnGsvgV3LtzaLs+qqP1GelIsKuuavX+nJcXgmvN6wZUQa7htIDoR3n3xmVj05YF224LAqdV2fLQTb/7qAlQcb0JpRb3qZO3bJ+ywUWnx0+tPLfaXiHZB+bzdU+I
"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",
"execution_count": 96,
"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-01 18:52:06 +02:00
"execution_count": 97,
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-01 18:52:06 +02:00
"execution_count": 98,
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'>&lt;xarray.DataArray (x: 1200)&gt;\n",
"array([7.28629106e+02, 4.49482358e+02, 5.39731134e+02, ...,\n",
" 5.78254622e-01, 6.61859264e-01, 1.14999470e+00])\n",
"Coordinates:\n",
" * 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'></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-4d5e70ff-fdf7-44a4-958d-0733d915add4' class='xr-array-in' type='checkbox' checked><label for='section-4d5e70ff-fdf7-44a4-958d-0733d915add4' 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>728.6 449.5 539.7 540.5 520.3 530.0 ... 1.288 2.379 0.5783 0.6619 1.15</span></div><div class='xr-array-data'><pre>array([7.28629106e+02, 4.49482358e+02, 5.39731134e+02, ...,\n",
" 5.78254622e-01, 6.61859264e-01, 1.14999470e+00])</pre></div></div></li><li class='xr-section-item'><input id='section-b744ee27-7efa-4935-9a49-e8f78449ddc6' class='xr-section-summary-in' type='checkbox' checked><label for='section-b744ee27-7efa-4935-9a49-e8f78449ddc6' 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-87c04ecf-83c5-491f-8c6d-8f434a15cb0a' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-87c04ecf-83c5-491f-8c6d-8f434a15cb0a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5460d6f1-a9b3-4323-9ec8-f86cb8d81c1a' class='xr-var-data-in' type='checkbox'><label for='data-5460d6f1-a9b3-4323-9ec8-f86cb8d81c1a' 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-5304a22f-200c-4933-aa63-18b4a7423414' class='xr-section-summary-in' type='checkbox' ><label for='section-5304a22f-200c-4933-aa63-18b4a7423414' 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-083b6065-9ec3-47ca-bc10-28dd4e58a9a4' class='xr-index-data-in' type='checkbox'/><label for='index-083b6065-9ec3-47ca-bc10-28dd4e58a9a4' 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",
" 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",
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-91ffe5d9-adc4-473e-8021-25e0a572e1f0' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-91ffe5d9-adc4-473e-8021-25e0a572e1f0' 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: 1200)>\n",
"array([7.28629106e+02, 4.49482358e+02, 5.39731134e+02, ...,\n",
" 5.78254622e-01, 6.61859264e-01, 1.14999470e+00])\n",
"Coordinates:\n",
" * 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 14:43:56 +02:00
"execution_count": 98,
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-01 18:52:06 +02:00
"execution_count": 99,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmUAAAHECAYAAAB4J13xAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABXFUlEQVR4nO3dd3xTVf8H8E/S3aZNB5RCW2jZU2SICq2A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dw4YNw4ULFwBU9rDNmzcPS5cuBQC89dZbCAoKqsvbIyIiIrI7mVDHgU6FhYUYMmQIdu/eDaByiglfX1+DecxmzZqFuXPnVsubmJiI+Ph4ZGdnA6js1SopKREDu7i4OPz555/w8vIyWveGDRswcuRIcbC/UqlEQUEBNBoNAGDcuHH45ptvzI55u51arYZSqYRKpbL69BgdZ21CUZkGu1/tj+Yh5udYIyIiIsvZ8vptb3XqKQMqbyXu2LEDy5Ytw3333Qc/Pz8UFBQgPDwco0aNQkJCgtGADAB69OiB06dPY8qUKWjTpg3Ky8vh5+eHmJgYLFu2DBs3bjQZkAHAkCFDcPLkSUyYMAFRUVEoLi5GYGAgBg0ahF9//RUrVqyoVUBma+JAfz5/SURERCbUuadMamwZaXeevRkFpRXY9Wo/tAjxs2rZREREDRl7yqhOGP4SERGRKQzK7ODW7UsiIiIi4xiU2YM4TxnDMiIiIjKOQZkdOM8jB0REROSsGJTZ0d/nMvH5jos19pjll5Rj9v9OIfFyjp1aRkRERI7
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 14:43:56 +02:00
"execution_count": 100,
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'>&lt;xarray.DataArray &#x27;x&#x27; (x: 1200)&gt;\n",
"array([0.000e+00, 1.000e-05, 2.000e-05, ..., 1.197e-02, 1.198e-02, 1.199e-02])\n",
"Coordinates:\n",
" * 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'>'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-828c34f7-6d82-4877-9582-506b4554e5e2' class='xr-array-in' type='checkbox' checked><label for='section-828c34f7-6d82-4877-9582-506b4554e5e2' 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 1e-05 2e-05 3e-05 4e-05 ... 0.01196 0.01197 0.01198 0.01199</span></div><div class='xr-array-data'><pre>array([0.000e+00, 1.000e-05, 2.000e-05, ..., 1.197e-02, 1.198e-02, 1.199e-02])</pre></div></div></li><li class='xr-section-item'><input id='section-35e6f8a5-a046-456b-b6ad-ae3c2a9a76e5' class='xr-section-summary-in' type='checkbox' checked><label for='section-35e6f8a5-a046-456b-b6ad-ae3c2a9a76e5' 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-c80e2635-9f83-420c-adc2-2aedf771a423' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c80e2635-9f83-420c-adc2-2aedf771a423' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4c1ae9d3-7cf3-4297-9173-fa2de7221c70' class='xr-var-data-in' type='checkbox'><label for='data-4c1ae9d3-7cf3-4297-9173-fa2de7221c70' 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-f578b79e-8858-4384-a39e-4c83c89b7fe1' class='xr-section-summary-in' type='checkbox' ><label for='section-f578b79e-8858-4384-a39e-4c83c89b7fe1' 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-0db57e97-c2a7-4c4a-b4f5-6568480a8895' class='xr-index-data-in' type='checkbox'/><label for='index-0db57e97-c2a7-4c4a-b4f5-6568480a8895' 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",
" 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",
" dtype=&#x27;float64&#x27;, name=&#x27;x&#x27;, length=1200))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-d0c92b7b-f644-4bc0-a579-9857f3c6bde4' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-d0c92b7b-f644-4bc0-a579-9857f3c6bde4' 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",
"array([0.000e+00, 1.000e-05, 2.000e-05, ..., 1.197e-02, 1.198e-02, 1.199e-02])\n",
"Coordinates:\n",
" * 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 14:43:56 +02:00
"execution_count": 100,
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 14:43:56 +02:00
"execution_count": 101,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [],
"source": [
2023-08-07 14:43:56 +02:00
"powerSpecWithoutModulation = fft(phaseAutoCorrWithoutModulation.sel(x=slice(6e-3, 3)))"
2023-08-01 18:52:06 +02:00
]
},
{
"cell_type": "code",
2023-08-07 14:43:56 +02:00
"execution_count": 106,
2023-08-01 18:52:06 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-08-07 14:43:56 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAnwAAAHPCAYAAADJWwcQAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAACAPklEQVR4nO3deXwTZf4H8M8kTY80bXpRSgttOctVETkUKQoqICor6rp4oKgrIuvqeqC7rC6Hrjeo+xN1FRRlF0VQ13WV+xK5T0Xuoy3laumZtumdPL8/kpkmzdGkFJpOP+/Xqy/SzDzPTIZp8s1zfB9JCCFARERERKqlaekTICIiIqKLiwEfERERkcox4CMiIiJS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HDBQBhMBjExo0b/X5tW7ZsEVqtVgAQt99+uzh9+rQQQojCwkIxZcoU5dy//PJLv+o1mUwCgDCZTH6fExEREbUMtXx+S0II0ZRAMTs7GyNGjFBa4fR6PaxWK6qqqgAA/fv3x9q1axEdHe1UbubMmUp+uqysLKSmprrUvXv3bowePRqFhYUAbLNhq6qqlBa3UaNG4bvvvnOZBbtw4UKl9TE0NBRGo9Hra/jmm29w9dVXuzw/f/58TJkyBXV1dQCAqKgomEwmyJdqxowZmDlzpte6GyotLYXRaITJZOIsXSIiolZCLZ/fTc7Dl5qain379mH27Nn45ptvkJWVBZ1Ohz59+uDuu+/G448/juDg4CbVPWDAABw4cACvv/46vv/+e5w6dQrh4eHo27cvJk6ciIceeshttmt5yTcAqKqqUoJPT2pqatw+//DDD+OKK67AnDlz8OOPPyI/Px/x8fEYMmQIHn/8cVx33XVNel1ERERELaHJLXzkH7V8QyAiImpL1PL53XoXhSMiIiIinzDgIyIiIlI5BnxEREREKseAj4iIiEjlGPARERERqRwDPiIiIiKVY8BHREREpHIM+IiIiIhUjgEfERERkcox4CMiIiJSOQZ8RERERCrHgI+IiIhI5RjwEREREakcAz4iIiIilWPAR0RERKRyDPiIiIiIVI4BHxEREZHKMeAjIiIiUjkGfEREREQqx4CPiIiISOUY8BERERGpHAM+IiIiIpVjwEdERESkcgz4iIiIiFSOAR8RERGRyjHgIyIiIlI5BnxEREREKseAj4iIiEjlGPARERERqRwDPiIiIiKVY8BHREREpHIM+IiIiIhUjgEfERERkcox4CMiIiJSOQZ8RERERCrHgI+IiIhI5RjwEREREakcAz4iIiIilWPAR0RERKRyDPiIiIiIVI4BHxEREZHKMeAjIiIiUjkGfEREREQqx4CPiIiISOUY8BERERGpHAM+IiIiIpVjwEdERESkcgz4iIiIiFSOAR8RERGRyjHgIyIiIlI5BnxEREREKseAj4iIiEjlGPARERERqRwDPiIiIiKVY8BHREREpHIM+IiIiIhUjgEfERERkcox4CMiIiJSOQZ8RERERCrHgI+IiIhI5RjwEREREakcAz4iIiIilWPAR0RERKRyDPiIiIiIVI4BHxEREZHKMeAjIiIiUjkGfEREREQqx4CPiIiISOUY8BERERGpHAM+IiIiIpVjwEdERESkcgz4iIiIiFSOAR8RERGRyl1QwFdWVoaZM2ciPT0dBoMBRqMRgwYNwpw5c1BTU3NBJ5aXl4dnnnkGaWlpCAsLQ0xMDIYNG4b58+dDCOGxXG5uLpYsWYK//OUvGDlyJGJjYyFJEiRJwoYNGxo97vDhw5X9Pf107Njxgl4bERER0aUU1NSCJ0+exPDhw5GdnQ0A0Ov1qK6uxq5du7Br1y4sWrQIa9euRXR0tN917969G6NHj0ZhYSEAwGAwoKysDJs
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",
"ax.set_xlim([1e4, 4e4])\n",
"ax.set_ylim([0, 0.02])\n",
2023-08-01 18:52:06 +02:00
"plt.show()"
]
},
{
"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
}