nxtomomill.converter.dxfile.dxfileconverter.from_dx_to_nx#

nxtomomill.converter.dxfile.dxfileconverter.from_dx_to_nx(input_file, output_file=None, file_extension='.nx', duplicate_data=True, input_entry='/', output_entry='entry0000', scan_range=(0.0, 180.0), pixel_size=(None, None), field_of_view=None, distance=None, overwrite=True, energy=None)[source]#
Parameters
  • input_file – dxfile to convert

  • output_file – output file to save

  • file_extension – file extension to give if the output file is not provided.

  • duplicate_data – if True frames will be duplicated. Otherwise we will create (relative) link to the input file.

  • input_entry – path to the HDF5 group to convert. For now it looks each file can only contain one dataset. Just to ensure any future compatibility if it evolve with time.

  • output_entry – path to store the NxTomo created.

  • scan_range – tuple of two elements with the minimum scan range. Projections are expected to be taken with equal angular spaces.

  • pixel_size – pixel size can be provided (in meter and as x_pizel_size, y_pixel_size)

  • field_of_view – field of view

  • distance – sample / detector distance in meter

  • overwrite – if True and if the entry already exists in the output file then will overwrite it.

Returns

tuple of (output_file, entry) created. For now the list should contain at most one of those tuple