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 (str) – dxfile to convert

  • output_file (str) – output file to save

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

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

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

  • output_entry (str) – path to store the NxTomo created.

  • scan_range (tuple) –

    tuple of two elements with the minimum scan range.

    projections are expected to be taken with equal

    angular spaces.

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

  • field_of_view (None, str or FieldOfView) – field of view

  • distance (None or float) – sample / detector distance in meter

  • overwrite (bool) – 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

Return type:

tuple