File reader for Agilent Resolutions Pro FT-IR images
Project description
python-agilent-file-formats
Python library for reading FT-IR imaging datasets created by Resolutions Pro on Agilent Cary instruments with FPA area detectors.
Port of https://bitbucket.org/AlexHenderson/agilent-file-formats/ to Python
Developed for use in the orange-spectroscopy add-in, which is part of the Quasar data analysis program.
Installation
The package can be installed from PyPI as:
pip install agilent-format
Usage
There are four primary classes for loading data, depending on the type:
Class | Data Type | Extension |
---|---|---|
agilentImage |
Single-tile FPA image | .dat |
agilentMosaic |
Mosaic FPA image | .dmt |
agilentImageIFG |
Single-tile interferograms | .seq |
agilentMosaicIFG |
Mosaic interferograms | .dmt |
To use, load the corresponding data loader class with the appropriate filename:
from agilent_format import agilentImage
ai = agilentImage("agilent_format/datasets/4_noimage_agg256.dat")
ai.data # 3-dimensional numpy array (height x width x wavenumbers)
ai.wavenumbers # list of wavenumbers in order of .data array
# Pixel size can be calculated by:
px_size = ai.info['FPA Pixel Size'] * ai.info['PixelAggregationSize']
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
File details
Details for the file agilent-format-0.4.5.tar.gz
.
File metadata
- Download URL: agilent-format-0.4.5.tar.gz
- Upload date:
- Size: 517.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cd931128a2a4eadfde57c7323b2df25e10d63bcd1f09e478fc8d0d103c64df1 |
|
MD5 | 23dbe87f79d5bc1e0983f42ebb5f3e83 |
|
BLAKE2b-256 | 39c6007bc6cbc5fd3429a139aa3a7c27fa4f8dc14dfcfee7af68b0cfde5a9ea5 |
File details
Details for the file agilent_format-0.4.5-py3-none-any.whl
.
File metadata
- Download URL: agilent_format-0.4.5-py3-none-any.whl
- Upload date:
- Size: 521.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c9ba94a55c79c258a2c8769785bdccd17606203441db64d7d2b8881d4e0a056 |
|
MD5 | d191c32345ca1c2a64cfdba0c4ab21c2 |
|
BLAKE2b-256 | 2701c573342a4acd869c8c4ad2116506f272d5c766842c4075c54b841eaccf73 |