#Script written by JMB in 2014 #This script extracts the independent components from an EELS data cube to isolate the bulk Ti edge. #This script calls the program HYPERSPY #The script needs to be renamed as *.py before running using Python from hyperspy.hspy import * input=load(“input.dm3") input.axes_manager[-1].scale = 1.22 input.axes_manager[-1].offset = 134.11 input = input.isig[220.:600.] input.spikes_removal_tool() input.decomposition(True) input.blind_source_separation(8) #end