FTIR OMNIC Map Reader
Read Thermo OMNIC .map files (FTIR area maps, line scans, point-to-point maps and array-detector maps) into Python,
without OMNIC. You get the spectra, the spectral axis, the stage position of every spectrum, the background spectra,
the video or mosaic images with their stage coordinates, and the collection metadata. Export them to open formats, or
unpack whole folders of .map files into a documented project folder that anyone can read.
Full documentation: https://ftir-omnic-map-reader.readthedocs.io/. This README is a short overview; the documentation has every option, the output formats, worked examples and the Python API reference.
Install
pip install ftir-OMNIC-map-reader
With uv: uv add ftir-OMNIC-map-reader. Python 3.10 or newer. Optional extras add YAML
metadata, Parquet tables and netCDF export; see
Installation.
Quick start
from ftir_map import read_omnic
m = read_omnic("my_map.map")
m.map_kind # "grid", "line", "points" or "array"
m.spectra.shape # (n_points, n_axis), in file order
m.axis # wavenumbers in cm-1
m.x, m.y # stage position of each spectrum in um
ds = m.to_xarray() # spectra on (y, x, wavenumber) for a grid, (point, wavenumber) otherwise
m.export_all("my_map_export/") # spectra, metadata, points table and images in one folder
More in the Quick start and Map kinds.
Command line
ftir-map info my_map.map # what is in the file
ftir-map export my_map.map --out my_map_export # spectra (Zarr), metadata, points, images
ftir-map unpack "Bristol 2017/" --out my_project # many maps into an open project folder
ftir-map catalog my_project # list the maps in a project
See Command line for every option.
What else is in the documentation
- Metadata and images: collection parameters, map definition, backgrounds, and how to overlay spectra on the stage images.
- Exports: xarray, NumPy with dictionaries, Zarr, CSV, JSON and YAML metadata, points tables, and images with world files.
- Unpacked projects and the
format specification: turn proprietary
.mapfiles into open files and load them back with this package. - File format notes: how
.mapfiles are laid out, and which fields are verified. - Migrating from 1.0:
Load_Omnic_Mapstill works; the PyMca-derived modules are deprecated. - Python API.
Using with AI coding agents
.claude/skills/ftir-map/SKILL.md teaches coding agents (Claude Code and others)
this package: the API, the OmnicMap fields and shapes, how map kinds change them, recipes and common traps. Claude
Code uses it in this repository automatically; Using with AI
agents shows how to install it for your own projects.
What's new in 1.1.1
Fixes from a code review, and a skill for AI coding agents (above). Malformed files now raise OmnicFormatError (and
Load_Omnic_Map returns None for them, as in 1.0); a stored position count that does not match the spectra gives a
warning instead of silent NaN positions; unpack keeps maps whose names differ only in case apart, records maps that
fail as skipped rows and always writes the catalog; to_zarr refuses to empty an ordinary folder. The full list is in
CHANGELOG.md.
Credits and license
The format knowledge behind the first versions comes from the OMNIC reader in PyMca (V.A. Sole, European Synchrotron Radiation Facility, MIT license); see NOTICE. The rest of the format was worked out by comparing about 80 maps with OMNIC's own exports. MIT license, see LICENSE.txt. Changes are listed in CHANGELOG.md. Questions and bug reports: GitHub issues.
Metadata
Release files for ftir-OMNIC-map-reader 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ftir_omnic_map_reader-1.1.1.tar.gz | 308.2 kB | With provenance | Details for ftir_omnic_map_reader-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ftir_omnic_map_reader-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for ftir_omnic_map_reader-1.1.1-py3-none-any.whl |
Total release size: 370.2 kB
Release files / ftir_omnic_map_reader-1.1.1.tar.gz
| Download URL | ftir_omnic_map_reader-1.1.1.tar.gz |
|---|---|
| Size | 308.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33232d6691b791a85270f40a1b5d1082464c5cb971e4568f238cca5da74806d5
|
|
BLAKE2b-256 checksum How to use checksums |
9c36d1eb2c519a3a456b5cd3345c2042bc87bf594629c0ed87d5976ff256d9dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / ftir_omnic_map_reader-1.1.1-py3-none-any.whl
| Download URL | ftir_omnic_map_reader-1.1.1-py3-none-any.whl |
|---|---|
| Size | 62.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1ceb204a0e6711a82ea9934f1f3ec74122f06cef23dd1379eb7364e5c51d5ab
|
|
BLAKE2b-256 checksum How to use checksums |
30bd058560237e0386517bf3c4fc6b9d321b942417ee1e6131a9a184b286770d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for ftir-OMNIC-map-reader 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ftir_omnic_map_reader-1.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.