hyperspy.io_plugins.fei module

hyperspy.io_plugins.fei.convert_xml_to_dict(xml_object)
hyperspy.io_plugins.fei.dimension_array_dtype(n, DescriptionLength, UnitsLength)
hyperspy.io_plugins.fei.emi_reader(filename, dump_xml=False, **kwds)
hyperspy.io_plugins.fei.emixml2dtb(et, dictree)
hyperspy.io_plugins.fei.file_reader(filename, *args, **kwds)
hyperspy.io_plugins.fei.get_axes_from_position(header, data)
hyperspy.io_plugins.fei.get_calibration_from_position(position)

Compute the size, scale and offset of a linear axis from coordinates.

This function assumes rastering on a regular grid for the full size of each dimension before rastering over another one. Fox example: a11, a12, a13, a21, a22, a23 for a 2x3 grid.

Parameters

position (numpy array.) – Position coordinates of the axis. Normally as in PositionX/Y of the ser file.

Returns

axis_attr

Return type

dictionary with size, scale, offeset keys.

hyperspy.io_plugins.fei.get_data_dtype_list(file, offset, record_by)
hyperspy.io_plugins.fei.get_data_tag_dtype_list(data_type_id)
hyperspy.io_plugins.fei.get_header_dtype_list(file)
hyperspy.io_plugins.fei.get_lengths(file)
hyperspy.io_plugins.fei.get_xml_info_from_emi(emi_file)
hyperspy.io_plugins.fei.guess_record_by(record_by_id)
hyperspy.io_plugins.fei.load_only_data(filename, array_shape, record_by, num_axes, data=None, header=None, only_valid_data=False)
hyperspy.io_plugins.fei.load_ser_file(filename)
hyperspy.io_plugins.fei.log_struct_array_values(struct_array)
hyperspy.io_plugins.fei.parse_ExperimentalDescription(et, dictree)
hyperspy.io_plugins.fei.parse_TrueImageHeaderInfo(et, dictree)
hyperspy.io_plugins.fei.readLELong(file)

Read 4 bytes as little endian integer in file

hyperspy.io_plugins.fei.readLELongLong(file)

Read 8 bytes as little endian integer in file

hyperspy.io_plugins.fei.readLEShort(file)

Read 2 bytes as little endian integer in file

hyperspy.io_plugins.fei.ser_reader(filename, objects=None, lazy=False, only_valid_data=False)

Reads the information from the file and returns it in the HyperSpy required format.