Table of supported image formats in EMAN2

Type

Extension

Read

Write

3D

stack

Comments

MRC

mrc

Y

Y

Y

N

Spider

spi

Y

Y

Y

Imagic

img/hed

Y

Y

Y

seperate header and data file

HDF5

hdf

Y

Y

Y

Y

can write different size image into same stack

DM3

dm3

N

TIFF

tiff/tif

PGM

pgm

N

N

8 bits per pixel

LST

lst

Y

Y

Y

Y

ASCII file contains a list of image file names

PIF

pif

Y

images in PIF stack are homogenous

VTK

Y

N

PNG

png

lossless data compression

SAL

hdr/img

Y

N

N

N

seperate header and data file

ICOS

Y

N

EMIM

Gatan2

Y

N

N

N

Amira

N

Y

Y

N

XPLOR

Y

N

8 bytes integer, 12.5E float format

EM

em

Y

N

V4L

Y

N

JPEG

jpg/jpeg

N

Y

N

lossy data compression

FITS

Y

N

Y

common file format in astronomy

LSTFAST

Saving EMData from Python

If you want to be prompted to supply a image name using a standard dialog use this approach

   1 # save a single image
   2 a = test_image()
   3 from emsave import save_data
   4 save_data(a)
   5 
   6 # save a list of images as a stack
   7 b = test_image(2)
   8 save_data([a,b])