Table of Contents |
---|
Summary
NxtomoLoader | ||||||||||||||||
Process category | Brief description | Computational demand for typical tomography data (low, medium, high) | Comment(s) | Reference(s) | Common alternative process(es) | Known issues | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
loader | To specify the location of raw dataset(s) to be used as input. | Low |
|
|
Parameters
Brief description |
---|
...
Item | Parameter name | Parameter format | Example(s) | Comment(s) | |
---|---|---|---|---|---|
Parameter value | Effect | ||||
1 | preview | [ind_0, ind_1,... ind_(n-1)] | [ ] | To load select the entire n-dimensional dataset of sample projections, stored at location specified by the data_path parameter and accompanied by the image-key data supplied by the image_key_path parameter. | Empty Python list, [ ], is the default
|
[:, :, :] | To load select the entire 3d dataset of sample projections, stored at location specified by the data_path parameter and accompanied by the image-key data supplied by the image_key_path parameter. | ||||
[:, s, :] | To load select from a given 3d dataset of sample projections (stored at the data_path location with image keys at the image_key_path location) only a subset of data corresponding to the s-th sinogram. | This particular interpretation applies if data are laid out in the (angle_enumeration, image_height, image_width) format. | |||
[p, :, :] | To load select from a given 3d dataset of sample projections (stored at data_path location with image keys at the image_key_path location) only a subset of data corresponding to the p-th sample projection. | This particular interpretation applies if data are laid out in the (angle_enumeration, image_height, image_width) format. | |||
[:, :, 123:-123] | To load select from a given 3d dataset of sample projections (stored at the data_path location with image keys at the image_key_path location) only a subset of data generated by cropping the width of each sample projection by 123 pixels on either side. | This particular interpretation applies if data are laid out in the (angle_enumeration, image_height, image_width) format. | |||
[:, mid - 1:mid + 1, :] | To load select from a given 3d dataset of sample projections (stored at the data_path location with image keys at the image_key_path location) only a subset of data corresponding to the middle 2 sinograms. | mid is one of Savu keywords (with an obvious meaning). | |||
[0:end:2, :, :] [::2, :, :] | To load select from a given 3d dataset of sample projections (stored at the data_path location with image keys at the image_key_path location) only a subset of data corresponding to every other sample projection. | end is one of Savu keywords (with an obvious meaning). | |||
[0:end:end, :, :] [:, ::end, :] | To select from a given 3d dataset of sample projections (stored at the data_path location with image keys at the image_key_path location) only the first and the last sample projection. | ||||
[:, 0:end:2, :] [:, ::2, :] | To load select from a given 3d dataset of sample projections (stored at the data_path location with image keys at the image_key_path location) only a subset of data corresponding to every other sinogram. | ||||
2 | image_key_path |
| |||
3 | name | ||||
4 | 3d_to_4d | ||||
5 | flat | [<path-to-NeXus-file>, <path-to-dataset>, <exposure-time-compensation-factor>] | [/dls/i13/data/2018/cm123-4/raw/55678.nxs, entry1/instrument/detector/pco1/data, 1.25] | To load all flats select all flat-field images from the flats-only dataset found located at entry1/instrument/detector/pco1/data inside a NeXus scan file, located stored on the file system at /dls/i13/data/2018/cm123-4/raw/55678.nxs, and then to multiply their pixel values by 1.25 (to compensate for the flat-field exposure time interval being 0.8 times shorter than the sample-projection exposure time). |
|
6 | data_path | Mandatory dataset. | |||
7 | dark | [<path-to-NeXus-file>, <path-to-dataset>, <exposure-time-compensation-factor>] | [/dls/i13/data/2018/cm123-4/raw/68765.nxs, entry1/instrument/detector/pco1/data, 1] | To load all darks select all dark-field images from the darks-only dataset found located at entry1/instrument/detector/pco1/data inside a NeXus scan file, located stored on the file system at /dls/i13/data/2018/cm123-4/raw/68765.nxs, and then to multiply their pixel values by 1 (this multiplication factor needs to be used whenever the dark-field exposure interval is the same as the sample-projection interval, in which case no change to recorded intensities is, of course, necessary). |
|
8 | angles | None (Python keyword) | If the angles parameter is set to None, then this loader attempts to find them access values in a default dataset, located at entry1/tomo_entry/data/rotation_angle in the input NeXus scan file. | ||
numpy.linspace(0,180,1801) | array([ 0.00000000e+00, 1.00000000e-01, 2.00000000e-01, ..., 1.79800000e+02, 1.79900000e+02, 1.80000000e+02]) | ||||
9 | ignore_flats | [ind_1, ind_2,... ind_m] | [1, r] | To ignore the initial and the r-th batch in a given series of batches of flats (each containing however many individual flat-field images), stored in the same dataset as darks and sample projections. |
|
...
Any standard tomography NeXus scan file, generated by GDA, stores all the recorded images (i.e. sample projections as well as dark- and flat-field images) in a single 3-dimensional dataset located at entry1/tomo_entry/data/data. This combined image dataset is always accompanied by another important dataset which contains the corresponding image-key information, located in the same file at entry1/tomo_entry/instrument/detector/image_key. The For obvious reasons, the default values of NxtomoLoader's parameters have been selected to reflect this standard scenario. HoweverIf necessary, however, NxtomoLoader can also be used to load dark- and flat-field data from two individual NeXus datasets, if necessaryseparate NeXus datasets, one containing only darks and the other only flats (these two datasets can be stored in the same NeXus file or in two separate NeXus files, one for darks and the other for flats). This non-standard scenario can be handled by making appropriate modifications to the default settings of the flat and dark parameters (see the table above for more details).
...