hyperspy.io_plugins.fei module
- 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.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.