hyperspy.io_plugins.tiff module

hyperspy.io_plugins.tiff.file_reader(filename, record_by='image', force_read_resolution=False, **kwds)

Read data from tif files using Christoph Gohlke’s tifffile library. The units and the scale of images saved with ImageJ or Digital Micrograph is read. There is limited support for reading the scale of files created with Zeiss and FEI SEMs.

Parameters
hyperspy.io_plugins.tiff.file_writer(filename, signal, export_scale=True, extratags=[], **kwds)

Writes data to tif using Christoph Gohlke’s tifffile library

Parameters
  • filename (str) –

  • signal (a BaseSignal instance) –

  • export_scale (bool) – default: True Export the scale and the units (compatible with DM and ImageJ) to appropriate tags.

hyperspy.io_plugins.tiff.get_metadata_mapping(tiff_page, op)
hyperspy.io_plugins.tiff.get_tvips_mapping(mapped_magnification)