Ignore:
Timestamp:
Apr 5, 2019 3:11:26 PM (4 years ago)
Author:
srkline
Message:

updates to the beam center corrections that take into account the lateral variation of zero points of the tubes. This is an important correction to the reference beam center, especially when the graphite monochrmoator is used.

various bug fixes included as part of reduction , largely to catch missing or incorrect information in the file header.

New "patch" functions have been added for number of guides, beam stops, source aperture, etc. which were missing in the file and caused the resolution calculation to be totally incorrect.

File:
1 edited

Legend:

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

    r1108 r1141  
    15261526////// utilities for the back detector to diagnose saturation issues 
    15271527// 
     1528// 
     1529// as of March 2019, the detector data is processed differently, with more  
     1530// processing done before passing the data to the file. The data is collected 
     1531// in 1x1 mode, then filtered (11x11) and rebinned. This increases the  
     1532// pixel saturation value to 16399*16 = 262384 
     1533// and the read background to Å 200*16 
     1534// 
     1535// 
     1536// 
     1537// old values were (pre-March 2019) =  saturation value of 16384 and read baackground of 200 
     1538// (before the 1x1 collection) 
     1539// 
     1540 
    15281541 
    15291542Proc Vm_NumberSaturated(folderStr) 
     
    15381551        Duplicate/O $("root:Packages:NIST:VSANS:"+folderStr+":entry:instrument:detector_B:data") tmpData 
    15391552         
    1540         saturationValue = 16383 
    1541          
    1542         tmpData = (tmpData == saturationValue) ? NaN : tmpData 
     1553        saturationValue = 16399*16 
     1554         
     1555        tmpData = (tmpData > saturationValue-1) ? NaN : tmpData 
    15431556        WaveStats/Q tmpData 
    15441557        num = V_numNaNs 
     
    15531566// turns the saturated values to lime green 
    15541567Function V_ColorizeSaturated() 
    1555         ModifyImage data ctab= {0,16382,ColdWarm,0},minRGB=0,maxRGB=(32792,65535,1) 
     1568        ModifyImage data ctab= {0,16399*16-1,ColdWarm,0},minRGB=0,maxRGB=(32792,65535,1) 
    15561569End 
    15571570 
Note: See TracChangeset for help on using the changeset viewer.