sgt.pilatus module

Created on 2017/11/17

@author: snakagawa

sgt.pilatus.ReadTiff(fp: str | IO) ndarray[source]

Reads a .tif file from PILATUS detector and returns the 2-d data as a numpy array.

Parameters:

fp – file-like or path to the file.

Returns:

A 2D array of the int type.

Example

>>> arr = pilatus.ReadTiff("AgBh.tif")
>>> print(arr.shape, arr.dtype)