Data proccessing for THz-TDS. A scientific computing package for the processing of terahertz time-domain spectroscopy data. Includes modules for time-domain, transfer functions, frequency-domain, and data formatting.
Project description
THzPy
THzPy is a scientific computing library for processing terahertz time-domain spectroscopy data.
The aim of this library is simplify and speed up the analysis of THz-TDS data, as well as promote the standardisation of processing methods between research groups and industry.
Development of this package is ongoing, we are in the process of adding features and support for a wider range of experimental setups and processes. If you encounter any bugs or there are any specific features you would like to see added please get in touch.
Features
- Windowing and filtering.
- Extraction of optical constants.
- Spectral feature extraction. (UPCOMING)
- Support for the DotTHz file format. (see
examples/basic_thz.pyfor a possible application)
Usage
The package can be installed via pip:
pip install thzpy
The package then presents various functions to use like so:
from thzpy.timedomain import common_window
from thzpy.transferfunctions import uniform_slab
# Apply the same hanning window to all datasets with a half-width of 15 ps.
reference, baseline = common_window([reference, baseline],
half_width=15, win_func="hanning")
# Calculate buffer material properties.
buffer = uniform_slab(reference_thickness,
reference, baseline,
upsampling=3, min_frequency=0.2, max_frequency=3,
all_optical_constants=True)
Please see the examples folder for full demonstrations of how to use the package.
Documentation
Authors
- @JasperWB - primary development
- @hacknus - .thz file handling
- @dotTHzTAG - various contributions
Feedback
If you have any feedback, please reach out to us at jnw35@cam.ac.uk
License
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thzpy-0.0.3.tar.gz.
File metadata
- Download URL: thzpy-0.0.3.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dbfa83ec72972e0b97474b1d0a4402f4fd426dcdfee8e8fdb40580f8386b84b
|
|
| MD5 |
ff78694f5fdda1a716702b6c47864c0e
|
|
| BLAKE2b-256 |
f91c47c1329e2c79880949e4c8f7788ec0b469e9931fa2308a7a136b058e6df7
|
Provenance
The following attestation bundles were made for thzpy-0.0.3.tar.gz:
Publisher:
python-publish.yml on dotTHzTAG/thzpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thzpy-0.0.3.tar.gz -
Subject digest:
5dbfa83ec72972e0b97474b1d0a4402f4fd426dcdfee8e8fdb40580f8386b84b - Sigstore transparency entry: 187922958
- Sigstore integration time:
-
Permalink:
dotTHzTAG/thzpy@3df9a2489943cdc158ae51ad6ae32f5e0db475d4 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/dotTHzTAG
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3df9a2489943cdc158ae51ad6ae32f5e0db475d4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file thzpy-0.0.3-py3-none-any.whl.
File metadata
- Download URL: thzpy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70cd490c2a187cab5159ab31ace3c751e411adfb87745eca8433807b30a322df
|
|
| MD5 |
2e4361204409d557e28e5431c2b0eddb
|
|
| BLAKE2b-256 |
9ef49317be164abe8706860fabc9b4bc95f015377f20c2d03a0750e77f9947a0
|
Provenance
The following attestation bundles were made for thzpy-0.0.3-py3-none-any.whl:
Publisher:
python-publish.yml on dotTHzTAG/thzpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thzpy-0.0.3-py3-none-any.whl -
Subject digest:
70cd490c2a187cab5159ab31ace3c751e411adfb87745eca8433807b30a322df - Sigstore transparency entry: 187922961
- Sigstore integration time:
-
Permalink:
dotTHzTAG/thzpy@3df9a2489943cdc158ae51ad6ae32f5e0db475d4 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/dotTHzTAG
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3df9a2489943cdc158ae51ad6ae32f5e0db475d4 -
Trigger Event:
release
-
Statement type: