diff --git a/ncempy/io/smv.py b/ncempy/io/smv.py index 00a8f18..8768531 100644 --- a/ncempy/io/smv.py +++ b/ncempy/io/smv.py @@ -281,7 +281,7 @@ def smvReader(file_name, verbose=False): im1 = f1.getDataset() # read in the dataset # Calculate the pixel size in inverse angstroms according to the geometry in the header - alpha = (f1.heaer_info['BIN'] * f1.header_info['PIXEL_SIZE'] / f1.header_info['DISTANCE'] # angle across 1 pixel + alpha = (f1.heaer_info['BIN'] * f1.header_info['PIXEL_SIZE']) / f1.header_info['DISTANCE'] # angle across 1 pixel dp_pixel_distance = alpha / f1.header_info['WAVELENGTH'] * 1e-10 # divide by wavelength to get distance in Angstroms pixelSize = (dp_pixel_distance, dp_pixel_distance) extra_metadata = {'pixelSize': pixelSize, 'pixelUnit':'A', 'filename': f1.file_name,