Note
Go to the end to download the full example code.
Remove Pixels
This example removes pixels from a dataset.
Load the data
import lumispy as lum
import matplotlib.pyplot as plt
cl1 = lum.data.asymmetric_peak_map()
Display the original data
The signal beyond 800 nm goes to negative values, so lets remove the last three pixels from every spectrum using hyperspy.api.signals.BaseSignal.isig.
Display cleaned data
Total running time of the script: (0 minutes 6.503 seconds)