lamp_mac/D17/
d17_qxspec.pro
function d17_qxspec,win,mbeam,spix,bkg=bkg,lambda=lambda,sanoff=sanoff LAMP function to extract the specular intensity from a workspace. This function is better when the substrate is bent, or there is significant off-specular scattering at constant Qz This function converts the raw data space from x-pixel vs. SAN/DAN to: pi-pf vs pi+pf It then rebins the data so that cuts will be taken at constant pi+pf ARW 08.09.09 NECESSARY VARIABLES: win = the input workspace. Monochromatic data, loaded through 'mload' mbeam = either a file number or a workspace with the main beam spix = the number of pixels that will be integrated over to calculate the specular intensity. Ideally, this should be an odd number OPTIONAL VARIABLES: bkg = two column times n row element array that define the background The first row gives the number of pixels between the specular pixel range and the background range A NEGATIVE value is to the LEFT of the specular range, a POSITIVE to the right The second row gives the number of pixels in the background range lambda=wavelength. This is stored with the data, but you have the option here of forcing it to another value sanoff=an offset in SAN, which can exist if the sample angle calibration is out. This value is ADDED to the instrument-stored value of SAN to find the correct value for theta_in OUTPUT VARIABLES wout is the workspace containing the specular intensity, background subtracted, with the x-axis = the y axis for win e.g. type at LAMP interface: w2=d17_qxspec(w1,00935,11,,sanoff='auto',bkg=[[-5,5],[5,5]]) CALLS TO: Last modified: ARW 12.10.09
Routines
Routine details
top sinterp
sinterp, yin, win, ein, yout, wout, eout
** ******* *** This one for the specular scattering *** This makes heavy use of the IDL interpolate function *** The input data is a parallelogram - need to interpolate on to the central pixel
Parameters
- yin
- win
- ein
- yout
- wout
- eout
top binterp
binterp, yin, win, ein, yout, spix, wout, eout, n
** ******* *** This one for the background *** This makes heavy use of the IDL interpolate function *** The data will be a number of 'parallelograms' *** yout is fed in to the dataset and comes from sinterp *** Data will be normalized to number of pixels, taken from spix
Parameters
- yin
- win
- ein
- yout
- spix
- wout
- eout
- n
File attributes
Modification date: | Tue Oct 1 14:43:02 2013 |
Lines: | 248 |