Processing your imaging data
SAVU documentation is found here
Â
Imaging data is stored as an H5 file
Automatic reconstruction
During your beamtime, a Savu process lists will be automatically run after each scan completes. This will usually be discussed with you during your beamtime.
Savu lists are usually stored in:
<visit folder>/xml/tomography/Savu
An example of the standard lists we use:
Each list is named with each process that is being applied. for example
full_fd_rr_vo_pag_AST_tiff.nxs
will run:
Full reconstruction
Flat/Darkfield correction
Ring removal
Vo centering (Nghia Vo’s centering method)
Paganin filter
Astra reconstruction
Output tiff files
The result of autoprocessing goes into the Processed folder and will look like:
The result of the autoprocess will be named with Savu (indicating its a Savu process), the file name and the process list that was applied. The inside of this folder looks like:
The nxs file will give you a simple way to visualise all the output data. If you prefer then the reconstructed data lives in the file with astra_recon_gpu.h5 or as individual tiffs in the folder labeled TiffSaver*.
The run_log folder contains some log files and a copy of the process list that was run.
Â
Manual reconstruction
If you are not happy with your reconstructions you can always send them off manually with your own configured process lists. This guide is for manual reconstructions using Diamond linux workstations.
To load Savu on Wilson:
Open terminal
Config the process list to make sure you are happy. BL scientist may do this for you.
To submit savu jobs to the cluster use:
ssh wilson
module load savu/4.2-slurm
savu_mpi <IN_FILE> <PROCESS_LIST> <OUT_FOLDER> -d <TMP_FOLDER>Â -p k11 |
This will leave you with a terminal that can submit savu jobs to DIAD’s nodes on the cluster.
To configure your SAVU process lists. In a new terminal
module load savu
// Will load savu in cwd and allow you to create processlists. You cannot submit to cluster using this module.
// This should be done in a normal terminal, do not ssh into wilson
savu_config - i xxxxx.nxs
// Where "xxxx.nxs" is the path of your process list (ie. 3x_fd_vo_AST_tiff.nxs).
// This command will open up the savu config with this process list.
// You can omit -i xxxx.nxs to open config with an empty list. You will then need to populate savu with each process |
You can then use these commands to create and edit the process lists.
list
disp -a
// This will display each process module and the parameters that you can change.
// Use -avv for more detailed information.
fg /ctrl + z
// Will bring savu config to foreground / Send config to background to allow you to run savu_mpi in the same terminal window
add RemoveAllRings 2
// will add the module RemoveAllRings to position 2 in the process list. If no number is included it will add to the end.
rem 2
// will remove module at position 2 in the list |
An example process list is shown here: