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.IntensityTof(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[NewType]) – Information about the beamline that the data was produced at.source (
Source[NewType]) – 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. Seescippneutron.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 itssavemethod to write the CIF file.