Skip to main content

TVIPS converter

What does it do?

This tool with a Qt user interface serves to convert .tvips movie files from TVIPS CCD/CMOS cameras into more convenient formats. These kinds of cameras may be found in transmission electron microscopes (TEM) and are used for recording precession electron diffraction (PED) and 4D-STEM data, as well as in-situ experiment recordings. To analyze the data with 3rd party tools, the tvips data format is highly inconvenient; this tool aims to alleviate this issue.

Currently supported export formats:

  • .blo (for PED) - can be analyzed with pyxem or NanoMegas software
  • .tiff

In the future we aim to support:

  • Hyperspy HDF5 format
  • USID HDF5 format

How do I install it? (recommended method)

  1. Install Anaconda.

  2. Create a new virtual environment on your system to install tvipsconverter in

    $ conda create --name tvipsconverter pip
    
  3. Activate the virtual environment anywhere in your system with

    $ conda activate tvipsconverter
    
  4. Pip install tvipsconverter

    $ pip install tvipsconverter
    

Note: On Windows you will have to type these commands in the Anaconda prompt

How do I use it?

  1. Activate the tvipsconverter virtual environment.
  2. Run the command $ tvipsconverter which should bring up the GUI after some time.
  3. The GUI should be self-explanatory with tool tips. However, I have also made a video briefly demonstrating the GUI. You can find it here.

How does it work?

When recording data on a TVIPS camera, it is stored as a long collection of images, separated into multiple large .tvips files. TVIPS is a small German company and their tools are still in active development. As of version 2 of the TVIPS recording software, very limited information on microscopy settings is stored in this file. In fact, the image pixel size and scan pixel dimensions are not properly recorded inside the file. You must record these settings and correct this manually in the output files later with other tools! There is also no direct information stored related to a scan. If the aim is to record is a 4D-STEM or PED dataset, this format is difficult to work with. The only information available to correlate the images to the electron beam scan is the so called rotator index, which is stored in the header of each image. It corresponds to the index of the scan point to which the image should be mapped. The problem is that the electron beam dwell time and the frame acquisition time may not be perfectly aligned, with the result that some rotator images are repeated while some scan points have no corresponding image. In addition, the scanning control of the TVIPS software is unusual: they follow a snake-like meander pattern instead of a line-by-line fly-back. This causes a hysteresis artefact (offset) on the even scan lines. This software aims to provide all the tools to correct these artefacts as best as possible and convert scan data into formats that is directly interpretable by other software. To do so we first convert the multiple .tvips files to a single easy to manage and browse .hdf5 file. This is so that not all data must remain in RAM. In the second step, this hdf5 file can be converted to other types of files.

Credits and notes

This tool is not an official product of the TVIPS company. However it is built on some scripts originally developed by the company. We have significantly modified these scripts mainly to make the conversion process possible on a computer with regular sized RAM by working with an intermediate HDF5 file. The GUI is also our addition.

Changelog

0.0.8

  • fixed image rebin problem

0.0.7

  • added support for EM-Scan data where scanning doesn't follow snake pattern
  • fixed some bugs

Metadata

Release files for tvipsconverter 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tvipsconverter 0.0.8
File Size Uploaded
tvipsconverter-0.0.8.tar.gz 44.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tvipsconverter 0.0.8
File Interpreter ABI Platform
tvipsconverter-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 88.1 kB

Release files / tvipsconverter-0.0.8.tar.gz

Download URL tvipsconverter-0.0.8.tar.gz
Size 44.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c72c560d6b496f61571cc4156e4b7f0ab80ea3e252feb3793a36daaa5ac42456
BLAKE2b-256 checksum
How to use checksums
da5cb34c4cf73442db0a64660868b016cf7715ef9c9d341951ba5bebc83b4c71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

Release files / tvipsconverter-0.0.8-py3-none-any.whl

Download URL tvipsconverter-0.0.8-py3-none-any.whl
Size 43.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7aca86f043a1fffb163324ff406440f4e60eae2fa2991619aeb50717736dc6e8
BLAKE2b-256 checksum
How to use checksums
17f15ef46f3c407f0f65ff7e757d91ca6b3c885e3bfa1e1975536ccf3b3757be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

1 release file

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page