ewoksscxrd.tasks.utils#

Functions

create_header_from_file(filepath)

Read an existing NeXus/LIMA HDF5 file at filepath and build a header dict suitable for write_lima_images().

create_par_file(par_file, ...)

Create a new .par file using the contents of the original.

create_run_file(scans, crysalis_dir, basename)

Create a Crysalis run file using the provided scans.

read_dataset(file_path)

Read dataset from '/entry_0000/measurement/data'.

subtract_frame_inplace(frame, scale_factor, ...)

For each pixel in a frame:

subtract_images_inplace_parallel(data, ...)

Processes a 4D dataset in parallel:

write_lima_images(result, output_path, header)

Write the result (3D array: nframes x H x W) as a NeXus HDF5 file with the following structure: