Bsoft 2.1.4
Bernard's software package
rwMRC.cpp File Reference

Functions for reading and writing MRC files. More...

#include "rwMRC.h"
#include "rwCCP4.h"
#include "file_util.h"
#include "utilities.h"
#include "rwsymop.h"

Classes

struct  SERIhead
 

Functions

int readMRC (Bimage *p, int readdata, int img_select)
 Reading a MRC map image file format. More...
 
int writeMRC (Bimage *p)
 Writing a MRC map image file format. More...
 

Variables

int verbose
 

Detailed Description

Functions for reading and writing MRC files.

Author
Bernard Heymann
Date
Created: 19990321
Modified: 20180712

Function Documentation

◆ readMRC()

int readMRC ( Bimage p,
int  readdata,
int  img_select 
)

Reading a MRC map image file format.

Parameters
*pthe image structure.
readdataflag to activate reading of image data.
img_selectimage 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

◆ writeMRC()

int writeMRC ( Bimage p)

Writing a MRC map image file format.

Parameters
*pthe image structure.
Returns
int error code (<0 means failure). A 3D image format used in electron microscopy.

Variable Documentation

◆ verbose

int verbose
extern