agilent-ir-formats
Python code to handle file formats produced by Agilent infrared spectroscopy instrumentation.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.3%) to scientific vocabulary
Repository
Python code to handle file formats produced by Agilent infrared spectroscopy instrumentation.
Basic Info
- Host: GitHub
- Owner: AlexHenderson
- License: mit
- Language: Python
- Default Branch: main
- Size: 106 KB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
- Releases: 5
Metadata Files
README.md
agilent-ir-formats
Agilent File Format Handling for Infrared Spectroscopy
Author: Alex Henderson <alex.henderson@manchester.ac.uk>
Version: 1.0.0
Copyright: (c) 2018-2025 Alex Henderson
About
Python package to read hyperspectral image files produced by infrared spectroscopy instrumentation from Agilent Technologies, Inc.
Currently, the code reads single or multi-tile images (*.seq files or *.dmt files)
Help information
``` python Class to open, read and export the contents of an Agilent Fourier Transform Infrared (FTIR) microscopy file.
FTIR instruments from Agilent Technologies Inc., that use a focal plane array detector, can store hyperspectral images in single 'tile' or multi-tile 'mosaic' file formats. This class can read both single and multi-tile images. Files with a filename extension of *.seq or *.dmt are compatible.
The class has properties and methods allowing the user to explore the numeric values in the file. In addition, some metadata values are also accessible.
Properties: wavenumbers x-axis values of the spectral dimension. data spectral intensities of the hyperspectral data as a 3D object (height, width, datapoints). totalspectrum sum of intensity in all pixels, as a function of wavenumber. totalimage sum of intensity in all pixels as a function of position (height, width). metadata simple metadata relating to these data. hdf5_metadata metadata arranged into a hierarchy for use in HDF5 export of these data.
Methods: read() open and parse a file. export_hdf5() create a representation on disc of the file in the HDF5 file format.
Static methods: filetype() string identifying the type of files this class reads. filefilter() string identifying the Windows file extensions for files this class can read. find_files() list of all readable files in a directory structure. isreadable() whether this class is capable of reading a given file. version() the version number of this code. ```
Usage
Example 1
Open a file and display simple metadata.
``` python from pprint import pprint # only for this example
from agilentirformats.agilentirfile import AgilentIRFile
filename = r"C:\mydata\myfile\myfile.dmt"
reader = AgilentIRFile() reader.read(filename)
wavenumbers = reader.wavenumbers intensities = reader.intensities metadata = reader.metadata
print(wavenumbers.shape) print(intensities.shape) pprint(metadata)
output...
(728,) (128, 256, 728) {'acqdatetime': '2023-05-11T14:37:02', 'filename': WindowsPath('C:/mydata/myfile/myfile.dmt'), 'firstwavenumber': 898.6699159145355, 'fpasize': 128, 'lastwavenumber': 3702.674331665039, 'numpts': 728, 'xlabel': 'wavenumbers (cm-1)', 'xpixels': 256, 'xtiles': 2, 'ylabel': 'absorbance', 'ypixels': 128, 'ytiles': 1} ```
Example 2
Convert a file to HDF5 format in the same location.
``` python from agilentirformats.agilentirfile import AgilentIRFile
filename = r"C:\mydata\myfile\myfile.dmt"
AgilentIRFile(filename).export_hdf5() ```
Requirements
- python >= 3.10
- h5py
- numpy
Licence conditions
Copyright (c) 2018-2025 Alex Henderson (alex.henderson@manchester.ac.uk)
Licensed under the MIT License. See https://opensource.org/licenses/MIT
SPDX-License-Identifier: MIT
Visit https://github.com/AlexHenderson/agilent-ir-formats/ for the most recent version
See also:
- MATLAB code available here: https://bitbucket.org/AlexHenderson/agilent-file-formats/
Owner
- Name: Alex Henderson
- Login: AlexHenderson
- Kind: user
- Location: Manchester, UK
- Company: University of Manchester
- Website: http://alexhenderson.info/
- Twitter: AlexHenderson00
- Repositories: 18
- Profile: https://github.com/AlexHenderson
See also https://bitbucket.org/AlexHenderson/ and https://gist.github.com/AlexHenderson
Citation (CITATION.cff)
cff-version: 1.2.0
message: If you use this software, please cite it using these metadata.
title: agilent-ir-formats
abstract: Python package to read hyperspectral image files produced by infrared spectroscopy instrumentation from Agilent Technologies, Inc.
authors:
- family-names: Henderson
given-names: Alex
orcid: "https://orcid.org/0000-0002-5791-8555"
affiliation: University of Manchester, UK
email: alex.henderson@manchester.ac.uk
website: https://alexhenderson.info
version: 1.0.0
date-released: "2025-08-15"
license: MIT
license-url: https://spdx.org/licenses/MIT#licenseText
repository: "https://github.com/AlexHenderson/agilent-ir-formats"
GitHub Events
Total
- Release event: 1
- Watch event: 2
- Push event: 1
- Create event: 1
Last Year
- Release event: 1
- Watch event: 2
- Push event: 1
- Create event: 1
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0