Home > Applications > Horace > @sqw > rundata_write_to_sqw.m

iFit/rundata_write_to_sqw

PURPOSE ^

Read a single spe file and a detector parameter file, and create a single sqw file.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Read a single spe file and a detector parameter file, and create a single sqw file.
 to file.

   >> write_spe_to_sqw (dummy, spe_file, par_file, sqw_file, efix, emode, alatt, angdeg,...
                                                   u, v, psi, omega, dpsi, gl, gs, grid_size_in, urange_in)

 Input:
   dummy           Dummy sqw object  - used only to ensure that this service routine was called
   run_file        Fully initiated by rundata information instance of @rundata class
   sqw_file        Full file name of output sqw file

   emode           Direct geometry=1, indirect geometry=2
   u               First vector (1x3) defining scattering plane (r.l.u.)
   v               Second vector (1x3) defining scattering plane (r.l.u.)
   grid_size_in    Scalar or row vector of grid dimensions. Default is [1x1x1x1]
   urange_in       Range of data grid for output. If not given, then uses smallest hypercuboid
                  that encloses the whole data range

 Output:
   grid_size       Actual grid size used (size is unity along dimensions
                  where there is zero range of the data points)
   urange          Actual range of grid
%   Overloaded methods:
      sqw/rundata_write_to_sqw
      sqw/rundata_write_to_sqw

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1