Home > Applications > Horace > @d1d > calculate_q_bins.m

iFit/calculate_q_bins

PURPOSE ^

Calculate qh,qk,ql,en for the centres of the bins of a d1d dataset

SYNOPSIS ^

function [q,en]=calculate_q_bins(win)

DESCRIPTION ^

 Calculate qh,qk,ql,en for the centres of the bins of a d1d dataset

   >> [q,en]=calculate_q_bins(win)

 Input:
 ------
   win     Input d1d dataset

 Output:
 -------
   q       Components of momentum (in rlu) for each bin in the dataset for a single energy bin
           Arrays are packaged as cell array of column vectors for convenience
           with fitting routines etc.
               i.e. q{1}=qh, q{2}=qk, q{3}=ql
   en      Column vector of energy bin centres. If energy was an integration axis, then returns the
           centre of the energy integration range

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1