TEMPy.maps.map_parser

class TEMPy.maps.map_parser.old_MapParser[source]

A class to read various EM map file types into a Map object instance.

static get_endian(filename)[source]

Read an MRC map file

Parameters:

*filename* – input MRC map file name.

Returns:

Little or big

Return type:

Endianness

static readMRC(filename, final_dtype=<class 'numpy.float64'>, chunk=[])[source]

Read an MRC map file

Parameters:

*filename* – input MRC map file name.

Returns:

A Map instance containing the data read from MRC map file.

static readMRCHeader(filename, endian='<')[source]

Gets the header information from the MRC map file.

Argument
filename

input MRC map file name

endian

Endianness: Little or big

Returns:

A string containing the MRC header information.