This is a (hopefully) short hands-on introduction to nabu.
A more formal training will be held later in the year.
For this demo, we will use the lbs191 machine.
First connect to it:
ssh -XC opid19@lbs191
Go to the following directory:
cd /nobackup/lbs191tmp1/nabu_demo_25_aug
Activate the "environment" we will use:
source activate_env.sh
(make sure to use source activate_env.sh
and not just ./activate_env.sh
)
Check that nabu is installed:
nabu -V
Nabu is used in the same spirit as PyHST2:
nabu nabu.conf
(as in pyhst2 input.par
)Currently, two additional steps are involved:
We start from a HDF5 dataset produced by BLISS:
silx view /lbsram/data/nabu_test/bamboo/bamboo.h5
This is the "BLISS HDF5 master file" containing many information, and link to the actual data. On our side, we have to do the following:
These two steps are done with the script generate_darks_refs.py
:
python generate_darks_refs.py --entry 1.1 /lbsram/data/nabu_test/bamboo/bamboo.h5
NB This is a temporary solution. The dedicated tool nxtomomill
takes care of the first step, and the second will be handled by Nabu in a future version.
After exexcuting this script, two new files bamboo.bx
and tomwer_processes.h5
are created:
ls -tclrh /lbsram/data/nabu_test/bamboo/
Now we have a dataset in HDF5-Nexus format, along with a tomwer_processes.h5
file containing the final darks and refs.
We now create a configuration file from scratch:
nabu-config --bootstrap
it generates a template configuration file named nabu.conf
(see nabu-config --help
for more options).
Now we have to edit the configuration file to reconstruct the dataset. At the very least, the location
option in [dataset]
section has to be filled in.
Other usual options at ID19:
method = paganin
(in section [phase]
)delta_beta
, unsharp_coeff
and unsharp_sigma
(in section [phase]
)rotation_axis_position
(in section [reconstruction]
)padding_type = edges
(in section [reconstruction]
)enable_halftomo = 1
(in section [reconstruction]
)Nabu can reconstruct individual slices, sub-volume or whole volume by tuning the start_z
and end_z
in the configuration file (section [reconstruction]
).
We can also specify start_z
and end_z
directly with the application, ex:
nabu nabu.conf --slice 0-99
See the documentation: www.silx.org/pub/nabu/doc/nabu_cli.html
Contact
Table of Contents | t |
---|---|
Exposé | ESC |
Full screen slides | e |
Presenter View | p |
Source Files | s |
Slide Numbers | n |
Toggle screen blanking | b |
Show/hide slide context | c |
Notes | 2 |
Help | h |