Ignore:
Timestamp:
Sep 18, 2017 12:08:50 PM (5 years ago)
Author:
srkline
Message:

many minor changes after real VSANS data collected.

additional procedures added to allow easy correction of the incorrect header information from NICE.

Most notable addition is the pinhole resolution added to the calculation and the I(q) output. White beam is also treated (incorrectly) as a gaussian distrivution, but the results of smeared fitting look to be quite good.

Trimming and sorting routines are now (pinhole) resolution aware.

File identification routines have been updated to use the proper definitions of "purpose" and "intent". Both fields are now in the catalog, to allow for better sorting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Instrument_Resolution.ipf

    r1053 r1064  
    6363// 
    6464// 
    65 Function getResolution(inQ,lambda,lambdaWidth,DDet,apOff,S1,S2,L1,L2,BS,del_r,usingLenses,SigmaQ,QBar,fSubS) 
     65// INPUT: 
     66// inQ = q-value [1/A] 
     67// lambda = wavelength [A] 
     68// lambdaWidth = [dimensionless] 
     69// DDet = detector pixel resolution [cm]        **assumes square pixel 
     70// apOff = sample aperture to sample distance [cm] 
     71// S1 = source aperture diameter [mm] 
     72// S2 = sample aperture diameter [mm] 
     73// L1 = source to sample distance [m]  
     74// L2 = sample to detector distance [m] 
     75// BS = beam stop diameter [mm] 
     76// del_r = step size [mm] = binWidth*(mm/pixel)  
     77// usingLenses = flag for lenses = 0 if no lenses, non-zero if lenses are in-beam 
     78// 
     79// OUPUT: 
     80// SigmaQ 
     81// QBar 
     82// fSubS 
     83// 
     84// 
     85Function V_getResolution(inQ,lambda,lambdaWidth,DDet,apOff,S1,S2,L1,L2,BS,del_r,usingLenses,SigmaQ,QBar,fSubS) 
    6686        Variable inQ, lambda, lambdaWidth, DDet, apOff, S1, S2, L1, L2, BS, del_r,usingLenses 
    6787        Variable &fSubS, &QBar, &SigmaQ         //these are the output quantities at the input Q value 
Note: See TracChangeset for help on using the changeset viewer.