Socket
Socket
Sign inDemoInstall

agilent-format

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agilent-format

File reader for Agilent Resolutions Pro FT-IR images


Maintainers
1

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:

ClassData TypeExtension
agilentImageSingle-tile FPA image.dat
agilentMosaicMosaic FPA image.dmt
agilentImageIFGSingle-tile interferograms.seq
agilentMosaicIFGMosaic 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']

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc