Skip to main content

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 difference
  • apmean calculated amplitude and phase out of I/Q samples and plots them for scan, zero scan and difference
  • wndnoise 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 time
  • allan calculates the Allan deviation of the system for all samples points along the main axis (frequency, B0, ...) as well as a worst case Allan deviation
  • decompose decomposes the found signal, zero signal and difference signal into a mixture of Gaussians (this can be inspected by setting decomposedebug)
  • 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 using mixfitdebug
  • 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

quakesrslice

The quakesrslice utility is capable of slicing nD scans (1D/2D scans) into separate .npz files.

Usage: quakesrslice [OPTIONS] FILENAMES

Slices nD scans into single NPZs

Options:
\t--outdir DIRECTORY
\t\tWrite all sliced NPZs into the specified output directory (setable
\t\tonly once for all input files)

quakesrfetch

Usage: quakesrfetch [OPTIONS] FROMDATE [TODATE]

Fetches all NPZ and run files from QUAK/ESR runs from the configured
measurement directory that are taken since the specified dates and times.
If no end date is specified all runs starting from the given timestamp will
be fetched.

The date and timestamps can be supplied either as

	YYYYMMDD
		When addressing a whole day
	YYYYMMDDHHMMSS
		When adressing a given date and time

Options:
	--outdir DIRECTORY
		Write all fetched NPZs into the specified output directory
	--list
		Also write a list of fetched NPZs onto standard output to be passed
		to an analysis tool
	--sshkey KEYFILE
		Specified the SSH keyfile to use. It's assumed to be a passwordless (!)
		keyfile ...

Release files for quakesranalysis-tspspi 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quakesranalysis-tspspi 0.0.9
File Size Uploaded
quakesranalysis-tspspi-0.0.9.tar.gz 28.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quakesranalysis-tspspi 0.0.9
File Interpreter ABI Platform
quakesranalysis_tspspi-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 57.8 kB

Release files / quakesranalysis-tspspi-0.0.9.tar.gz

Download URL quakesranalysis-tspspi-0.0.9.tar.gz
Size 28.3 kB
Tags Source
SHA-256 checksum
How to use checksums
315bab6913d1df162a67f1f120b91df8d6672639041942a0c6c8c2266c03b57f
BLAKE2b-256 checksum
How to use checksums
4afc132a9edba46b97715b7553ccaf00b272f25e29fe4b0bbba1723c467a9ee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.13

Release files / quakesranalysis_tspspi-0.0.9-py3-none-any.whl

Download URL quakesranalysis_tspspi-0.0.9-py3-none-any.whl
Size 29.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3616bcf42a309305a798ebd44a46d129529e1c9f67b4df26157168797b446575
BLAKE2b-256 checksum
How to use checksums
8d3b5f03e060d02939435ba4801d9374b6240b4c2b28e6d65ca351ca02969e84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page