Skip to content

mrcfile

mrcfile is a Python implementation of the MRC2014 file format, which is used in structural biology to store image and volume data.

It allows MRC files to be created and opened easily using a very simple API, which exposes the file’s header and data as numpy arrays. The code runs in Python 2 and 3 and is fully unit-tested.

This library aims to allow users and developers to read and write standard- compliant MRC files in Python as easily as possible, and with no dependencies on any compiled libraries except numpy. You can use it interactively to inspect files, correct headers and so on, or in scripts and larger software packages to provide basic MRC file I/O functions.

homepage: https://github.com/ccpem/mrcfile

Available installations

mrcfile version Supported CPU targets Supported GPU targets EESSI version Module
1.5.4 generic: aarch64, x86_64
Arm: a64fx, neoverse_n1, neoverse_v1, nvidia/grace
AMD: zen2, zen3, zen4, zen5
Intel: haswell, skylake_avx512, sapphirerapids, icelake, cascadelake
(none) 2025.06 mrcfile/1.5.4-gfbf-2025a