Functions for reading and writing MRC files.
More...
#include "rwMRC.h"
#include "rwCCP4.h"
#include "file_util.h"
#include "utilities.h"
#include "rwsymop.h"
Go to the source code of this file.
Functions for reading and writing MRC files.
- Author
- Bernard Heymann
- Date
- Created: 19990321
-
Modified: 20180712
Definition in file rwMRC.cpp.
◆ readMRC()
| int readMRC |
( |
Bimage * |
p, |
|
|
int |
readdata, |
|
|
int |
img_select |
|
) |
| |
Reading a MRC map image file format.
- Parameters
-
| *p | the image structure. |
| readdata | flag to activate reading of image data. |
| img_select | image selection in multi-image file (-1 = all images). |
- Returns
- int error code (<0 means failure). A 3D image format used in electron microscopy. Header size: 1024 bytes followed by the symmetry operator table which is composed of 80 character lines, each line for a symmetry operator. File format extensions: .mrc The identifier is a 4-byte machine stamp (same as for CCP4 maps): 1 Big-endian IEEE 17 17 00 00 2 VAX 34 65 00 00 3 Cray - 4 Little-endian IEEE 68 65 00 00 5 Convex 85 17 00 00 6 Fijitsu VP - (Note: not always implemented - so unreliable) Byte order determination: Data type and third dimension values must be less than 256*256. Data types: 0 = signed byte, 1 = short, 2 = float, 3 = complex short, 4 = complex float. Transform type: Centered hermitian The x-dimension contains the x-size of the full transform
Definition at line 58 of file rwMRC.cpp.
◆ writeMRC()
Writing a MRC map image file format.
- Parameters
-
- Returns
- int error code (<0 means failure). A 3D image format used in electron microscopy.
Definition at line 276 of file rwMRC.cpp.
◆ verbose