ImageIO.writeEM#

ImageIO.writeEM(file=None, header=None, byteOrder=None, shape=None, dataType=None, arrayOrder=None, data=None, casting='unsafe')#

Writes data to an EM file format.

Parameters:
filestr, optional

Path to the file to write to.

headerlist, optional

Header information for the file.

byteOrder{None, ‘<’, ‘>’}, optional

Byte order for writing the file. ‘<’ means little endian and ‘>’ means big endian.

shapetuple of int, optional

Shape of the data array.

dataTypestr, optional

Data type of the data to write.

arrayOrderstr, optional

Order in which to write the array.

datandarray, optional

Data array to write.

castingstr, default “unsafe”

Casting rule for numpy. Check numpy documentation for more details.