hexrd.imageseries.load.rawimage module

Adapter class for raw image reader

class hexrd.imageseries.load.rawimage.RawImageSeriesAdapter(fname, **kwargs)[source]

Bases: ImageSeriesAdapter

Image Data in Custom Format

Parameters

fname: string or Path

name of input YAML file describing the format

format = 'raw-image'
property metadata

imageseries metadata

property shape

shape of individual image frame

static typechars(numtype, bytes_=4, signed=False, little=True)[source]

Return byte-type for data type and endianness

Parameters

numtype: str {“i”, “f”, “d”, “b”}

scalar type for int, float, double or bool

bytes: int

number of bytes: 1,2,4, or 8 (for ints only)

signed: bool

True for signed ints, False for unsigned

little: bool

True for little endian