A native Python package to handle binary interferograms and spectra from COTS FTIR spectrometers
Project description
FTSReader
Local installation using pip
- Clone or download and unpack
- Goto folder ftsreader
- Create venv: python -m venv ftsenvironment
- Activate environment: source ftsenvironment/bin/activate
- pip install -e .
Using FTSReader class
This is a native Python class to read Fourier-Transform InfraRed (FTIR) interferograms and spectra created within the TCCON (Total Carbon Column Observing Network) and NDACC-IRWG (Network for the detection of Atmospheric Composition Change InfraRed Working Group) communities.
The data blocks are provided as NumPy arrays and the header information as a dictionary.
import ftsreader as ftsr
ifg = ftsr.ftsreader('path/to/interferogram', verbose=True, getifg=True)
spectrum = ftsr.ftsreader('path/to/spectrum', verbose=True, getspc=True)
print(spectrum.header)
fig, ax = plt.subplots()
ax.plot(spectrum.spcwvn, spectrum.spc)
Scripts
Contains additional scripts that use the ftsreader package
GUI to view interferograms and spectra
An additional script spc_checker.py provides a PyQt5 graphical user interface to review the interferograms and spectra in a specific folder and to save a list of selected spectra to a file.
Usage: python spc_checker.py [interferograms/spectra folder] [path to textfile for saving selection list]
tools
Contains several tools to work with the spectra read by ftsreader
load: import tools
spec = average(<list of files>, av_spc, av_ifg)
#averages spectra or interferograms x-axis must be the same result is a two dimnsional array
spec = divide (spec1. spec2, interpolate)
# calculates spec1/spec2,
# if interpolate = True: spec2 is interpolated to the wavenumber-axis of spec1
# if normailse = True: spectrum is normalised to be between 0 1nd 1
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 ftsreader-2026.3.9.tar.gz.
File metadata
- Download URL: ftsreader-2026.3.9.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a62107a2fb9e634a139040a39dd46dc933ca16af5186562ec1caf381b4650a54
|
|
| MD5 |
facda9affda7c1ea65b749618feb485f
|
|
| BLAKE2b-256 |
5b363f360eee102c94164f18559b0237fbb2270fedd815457561b1bfedf54748
|
File details
Details for the file ftsreader-2026.3.9-py3-none-any.whl.
File metadata
- Download URL: ftsreader-2026.3.9-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a5f96f104888ee1cdfeb9f1635c64c69d82d0e728478821ca7d49654345f3c7
|
|
| MD5 |
83682b66aa3aed35349eb9fd9421eb9e
|
|
| BLAKE2b-256 |
d92396e3f183e3f73fb1830cdbf1ef686fa0aecc861a736484da68c426b3c7d5
|