Analysis package for QUAK/ESR runs
Project description
QUAK/ESR analysis utility
This is work in progress.
This repository contains a collection of classes and utilities to handle and work with QUAK/ESR data files.
Installation
pip install quakesranalysis-tspspi
Upgrading
pip install --upgrade quakesranalysis-tspspi
Utilities
quakesrplot
The quakesrplot
is capable of generating standard plots for single peak
scans and 1D scans. Those include:
iqmean
is just a standard plot of the mean values and standard deviations of all captured I/Q samples in scan, zero scan and differenceapmean
calculated amplitude and phase out of I/Q samples and plots them for scan, zero scan and differencewndnoise
provides a sliding window noise calculation by calculating the standard deviation inside this configurable sliding window to show how noise changes over time.offsettime
plots the offset of all three captured signal types over timeallan
calculates the Allan deviation of the system for all samples points along the main axis (frequency, B0, ...) as well as a worst case Allan deviationdecompose
decomposes the found signal, zero signal and difference signal into a mixture of Gaussians (this can be inspected by settingdecomposedebug
)mixfit
does the same as decompose but for more different function types (Gaussian, Cauchy, Difference of Gaussian, Difference of Cauchy, Constant, ...). Inspection of the fitting behaviour is also possible usingmixfitdebug
metrics
outputs collected metrics into a JSON data file. This should be run at the end.
All plots are stored along the source datafile and named with the same prefix.
Example usage:
quakesrplot -iqmean -apmean -wndnoise 10 -wndnoise 3 -offsettime -mixfit -allan *_peak.npz
To see a list of all supported features execute without arguments:
quakesrplot
When outputting debug plots for decompose
or mixfit
the QtAgg
backend
of matplotlib
tends to crash sometimes. One can then launch the application using
a different backend such as TkAgg
on via the MPLBACKEND
environment variable:
env MPLBACKEND=tkagg quakesrplot -iqmean -apmean -wndnoise 10 -wndnoise 3 -offsettime -mixfitdebug -allan *_peak.npz
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for quakesranalysis-tspspi-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fec5c8082c48112db0ad27830d351bae52049306eef757211407b978c7a642b |
|
MD5 | dd38aa8c043b213fe9a1487e06c5c87c |
|
BLAKE2b-256 | bbf309b74748ed9e5de8cd3c4bf5a98b048e66ef71d9cc49fb08dbd3f9b50177 |
Hashes for quakesranalysis_tspspi-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ca359b3c5633a50f4d4a64d1ca81375a9aaf82cb645cf6a390900d8fabbb319 |
|
MD5 | e67adc1d8ee363bc89c35e1d9cd823d2 |
|
BLAKE2b-256 | 2cb70da209c03566355d7f544058b5561d4f6ad8918e10c52d6280968a867106 |