You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Timepix daq (Not ESS filewriter, written by Rosco Vision) bins the data into wavelength frames as it saves the file.
And it saves the binned image every N minutes (depending on the settings).
As experiments typically last a few hours (Again, not at ESS, but with other sources) we need to merge the image stacks.
Inputs
Size of the expected output
Muptiple binned images. (All images should have same number of frames)
For example, if the image is binned into 1_000 frames, and there are 1_024 x 1_024 pixels, each image stack (each file) has a shape of
{
"frame": 1_000,
"x": 1_024,
"y": 1_024,
}
Methodology
It simply needs to add all frames.
Ideally, we load the stack all at once, but we also had to use a machine that lacks memory.
So we also needed a lazy-load option.
Here is the script we used(I was too slow to write this one so we didn't really use this particular script but it's close enough to the one we actually used) at the experiment at SENJU in June, 2024.
Executive summary
Merge tiff image stack of timepix
Context and background knowledge
Timepix daq (Not ESS filewriter, written by Rosco Vision) bins the data into wavelength frames as it saves the file.
And it saves the binned image every
N
minutes (depending on the settings).As experiments typically last a few hours (Again, not at ESS, but with other sources) we need to merge the image stacks.
Inputs
For example, if the image is binned into 1_000 frames, and there are
1_024 x 1_024
pixels, each image stack (each file) has a shape ofMethodology
It simply needs to add all frames.
Ideally, we load the stack all at once, but we also had to use a machine that lacks memory.
So we also needed a
lazy-load
option.Here is the script we used(I was too slow to write this one so we didn't really use this particular script but it's close enough to the one we actually used) at the experiment at SENJU in June, 2024.
Outputs
Single tiff file that has image stack.
It should have the same shape as the single input image.
Which interfaces are required?
Integrated into reduction workflow, Python module / function, Python script, Jupyter notebook
Test cases
Any multi-frame tiff images.
Comments
No response
The text was updated successfully, but these errors were encountered: