The LAMP Application

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

lamp_mac/DIF/

strain.pro


NAME: STRAIN PURPOSE: Gaussian or Gaussian-Rectangle convolution (Hansen) fit with linear background on only ONE single Bragg peak to determine d. 2D workspaces supported (scans: sequential fitting) p(33) contains wavelength error estimation based on Withers, Daymond et al. with detector instability consideration (Hansen) CATEGORY: E2 - CURVE AND SURFACE FITTING. CALLING SEQUENCE: Wm=STRAIN(Wn) INPUTS: Wn = Workspace n (1<=n<=20) in LAMP OPTIONAL INPUTS: none. KEYWORD PARAMETERS: PLot : plots data and fit in new window. PRint: prints starting guess, fitted parameters and sigma in terminal. Rectangle: Rectangular convolution of Gaussian shape (default) Gauss: Gaussian peak shape Detector_instability: 5e-3 by default, used for error estimation OUTPUTS: Wm = Workspace m (1<=m<=20) in LAMP containing d(s) in AA from fit and sigma(s) in Em OPTIONAL OUTPUT PARAMETERS: NONE. COMMON BLOCKS: NONE. SIDE EFFECTS: NONE. RESTRICTIONS: NONE. PROCEDURE: use of GAUSSFIT (IDL/RSI) or RECTFIT (TCH/ILL) EXAMPLE: W6 = RDRUN(9135) W7 = W6 & BACON, W7, /NOP, WR = [17, 24],PAR = [17, 18] MODIFICATION HISTORY: Written by Thomas C Hansen (TCH), Institut Laue-Langevin (ILL), Grenoble, France January 2003 Gaussian function now taking intensity and FWHM ******** ** ** The call is w6=strainfit(...)

top strain

result = strain(w, gauss=gauss, rectangle=rectangle, detector_instability=detector_instability, guess=guess, print=print, plot=plot, noder=noder, itmax=itmax, trials=trials)

******* ****** ** User callable

Parameters

w

Keywords

gauss
rectangle
detector_instability
guess
print
plot
noder
itmax
trials

File attributes

Modification date: Tue Oct 1 14:42:22 2013
Lines: 204