Skip to content

Stacking EELS spectrum images to create a time/temperature series #56

Answered by CSSFrancis
mseifner asked this question in Q&A
Discussion options

You must be logged in to vote

I just used a simulated dataset of a cross in real space with 4 Dimensions. This should be equivilent to an EELS dataset with 4 Dimensions.

The alignment will bring everything into line and seems to work quite well. The only problem is that it requires that you load each individual time series into memory which (can be) a bit of an issue if you are limited by RAM. In this case there are more complicated ways to do this.

import numpy as np
import hyperspy.api as hs
from scipy import ndimage as ndi

signals = []
for i in range(10):
    s = np.zeros(( 60,60,128))
    s[30+i,:]=1
    s[:, 30+i]=1
    signals.append(hs.signals.Signal1D(s))

time_series = hs.stack(signals) 
virtual_images = tim…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@CSSFrancis
Comment options

@ericpre
Comment options

@CSSFrancis
Comment options

Answer selected by ericpre
@mseifner
Comment options

@CSSFrancis
Comment options

@mseifner
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants