Skip to content

Instantly share code, notes, and snippets.

@bougui505
Last active December 4, 2020 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bougui505/f0b3474ab37ceb145b2d895e49f379d9 to your computer and use it in GitHub Desktop.
Save bougui505/f0b3474ab37ceb145b2d895e49f379d9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
# -*- coding: UTF8 -*-
# Author: Guillaume Bouvier -- guillaume.bouvier@pasteur.fr
# https://research.pasteur.fr/en/member/guillaume-bouvier/
# 2019-05-21 10:28:39 (UTC+0200)
import sys
import mrcfile
filename = sys.argv[1]
mrc = mrcfile.open(filename)
for field in mrc.header.dtype.names:
print(repr(field)+": "+repr(mrc.header[field]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment