ess.dream.io.cif.prepare_reduced_tof_cif#

ess.dream.io.cif.prepare_reduced_tof_cif(da, *, authors, beamline, source, reducers, calibration)[source]#

Construct a CIF builder with reduced data in d-spacing.

The object contains the d-spacing coordinate, intensities, and some metadata.

Parameters:
  • da (ess.powder.types.IofTof (scipp.DataArray)) – Reduced 1d data with a 'tof' dimension and coordinate.

  • authors (ess.powder.types.CIFAuthors (list)) – List of authors to write to the file.

  • beamline (Beamline) – Information about the beamline that the data was produced at.

  • source (Source) – Information about the neutron source.

  • reducers (ess.powder.types.ReducerSoftware (list)) – List of software pieces used to reduce the data.

  • calibration (OutputCalibrationData) – Coefficients for conversion between d-spacing and final ToF. See scippneutron.io.cif.CIF.with_powder_calibration().

Returns:

ess.powder.types.ReducedTofCIF (scippneutron.io.cif.CIF) – An object that contains the reduced data and metadata. Us its save method to write the CIF file.