Skip to main content

A script to extract waves from an Igor Pro 8 or later .h5xp file

Project description

The script h5xp_extractor.py extracts wave data from an Igor Pro HDF5 file (h5px).

It exports all or selected data folders and mirrors the folder structure of source file.

Datasets are exported as follows:

  • 1D waves: XY pairs (scaling included) to .txt files
  • 2D waves: lossless .tif images (preserving bit resolution).
  • 3D waves: .tif stacks (preserving bit resolution)
  • String, variables and textwaves are currently ignored.

A detailed export .log files is written in the root export directory.

usage: h5xp_extractor.py [-h] [-r ROOT] [-m META] h5px outdir

Metadata are written in README.txt files for every (sub-)folder (default, optionally use -m 0 (--meta) flag to skip README files).

Set the optional flag -r RootFolder (--root) to select another base "root" folder for the export. Use single quotes for literal names (names with special characters and spaces) and a semicolon (:) as a directory separator (e.g. folder1:Sample123:'Dataset after heating').

To export only the subfolder 'Dataset after heating' of the parent folder Sample123, use the optional argument -r Sample123:'Dataset after heating'.

N.B: Skip the root: folder (Igor's root folder) when using the -r to specify Igor Pro folders

positional arguments:

  • h5px Igor Pro .h5xp file. Partial or full path
  • outdir Output folder (create/overwrite)

optional arguments:

  • -h, --help show this help message and exit
  • -r ROOT, --root ROOT Root folder
  • -m META, --meta META Export metadata (0 = No, 1 = Yes [default])

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

h5xp_extractor-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

h5xp_extractor-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: h5xp_extractor-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for h5xp_extractor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0898df947ec9467365b25a1b97b045a284169977c727b709311e3233eea27d47
MD5 fbe53c1e0db1e68cfc40e348b0488eb2
BLAKE2b-256 3ccd18775f34a95b71899f6fc82a84474e839af63b38fa7431b7dc2efc9289c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for h5xp_extractor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de9f60eeb3719f9862605109e0a714996e3323ba02505885c0801e3061fbf613
MD5 86c07dd22a35c68bc7e1ebf740bb6ae5
BLAKE2b-256 a69074176d455893dfc78bd2c850708fccd367fd5258386603d5e2074fed73a1

See more details on using hashes here.

Supported by

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