Skip to main content

Parse Zeiss SEM TIFF metadata with Unicode corruption handling

Project description

Zeiss SEM TIFF Metadata Parser

A minimal Python library for parsing metadata from Zeiss SEM TIFF files, with special handling for Unicode corruption issues.

Installation

pip install zeiss-sem-tiff

Quick Start

from zeiss_sem_tiff import get_zeiss_meta, get_stage_coords, get_timestamp

# Extract metadata
metadata = get_zeiss_meta("path/to/your/image.tif")

# Get acquisition timestamp  
timestamp = get_timestamp(metadata)

# Convert image coordinates to stage position
stage_x, stage_y, stage_r = get_stage_coords(metadata, img_coords=(100, 200))

print(f"Magnification: {metadata['AP_MAG']}")
print(f"Pixel size: {metadata['AP_PIXEL_SIZE']} m")

Features

  • Parse Zeiss SEM TIFF metadata
  • Handle Unicode corruption (µm → ?m, µA → ?A)
  • Convert image coordinates to stage positions
  • Extract acquisition timestamps
  • Version compatibility checking

Supported Versions

Tested with SV version: V07.05.00.00 : 27-Jul-23

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zeiss_sem_tiff-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zeiss_sem_tiff-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file zeiss_sem_tiff-0.1.0.tar.gz.

File metadata

  • Download URL: zeiss_sem_tiff-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for zeiss_sem_tiff-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a5bd75573f89082ed2e5571d998b94f7fdd4f571ab8133287bd9d7d25570d197
MD5 355719d9256e25da3be37d730e30202f
BLAKE2b-256 f7f3242995979a2a7de67b197fb4df41b28839efba5bbb22a328c4d1e1c35514

See more details on using hashes here.

File details

Details for the file zeiss_sem_tiff-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zeiss_sem_tiff-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for zeiss_sem_tiff-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 525ff04c82cb561513ea3d08e4a58b3e38cc73550f620df58885d160158974fd
MD5 065cec50987581da6b3c1ed0f9a65283
BLAKE2b-256 0e29c92a633f7ceb4b9c66f750b0082ef7d7122b5398fbc3fa8bf2c6ba44df45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page