[3dem] Re: help on python script to open mrc file

Anchi Cheng acheng at scripps.edu
Tue Sep 6 14:52:24 PDT 2011


There is a python module in Leginon/Appion's package (downloaded as myami) under the
subpackage pyami called mrc.py  You should be able to read mrc images/volumes with it
and manipulate them as numpy array (a in the example below) once read.

Feel free to read the code once you download.

from pyami import mrc
a = mrc.read('your_mrc_file_path')
mrc.write(a,'your_output_mrc_file_path)


More information about the 3dem mailing list