HDF5 data selection#

Data selection dedicated to HDF5 datasets (like bliss datasets).

../_images/upload_hdf5.svg

Select the raw data and dark frames from disk.

Hint

for edf dataset see EDF data selection

Signals#

Outputs:

  • Dataset: output dataset

Inputs:

  • raw input file: file containing the raw data

  • dark input file: optional file containing the dark data (background)

Description#

Data widget retrieves selected files from disk, loads the data in a darfix dataset and sends it to the output. The files are stored in the local memory and the necessary information for the analysis is retrieved.

  1. If the raw data is read only, the treated data path should be filled with the path of a directory with write access.

  2. If the data doesn’t fit in memory, the in disk checkbox should be ticked.

Demo#

Tutorial#

1. Add the widget to the canvas#

../_images/add_widget1.png

2. Open the widget interface#

../_images/startup_interface.png

3. Select the file containing raw data#

../_images/select_raw_data.png

Note

darfix will retrieve from the file the detector and the motor positions (positioners) used for fitting dimensions. By default, it expects:

  • the path to the detector to be {scan}/measurement/{detector}/data

  • the path to positioners to be {scan}/instruments/positioners.

‘advanced’ mode allows to change the path to the detector and the positioner group in the case those are not stored at default location of if the file contains more than one scan. The advanced mode gives indications on the validity of the data path:

  • green dot: the pattern can be solved (with the current input file)

  • red dot: the pattern cannot be solved (with the current input file).

  • question mark: no file has been given. Select a file before specifying a pattern.

../_images/select_raw_data_advanced.png

4. (optional) provide the file containing the dark data#

../_images/dark_data_file.png

5. (optional) provide the treated data directory#

../_images/treated_data_dir.png

6. Validate#

click on the ‘Ok’ button. This will load the datasets and trigger downstream widgets (if any)