Ignore:
Timestamp:
Jun 21, 2018 9:42:24 AM (4 years ago)
Author:
srkline
Message:

changes mostly to VCALC to add in what bits of information I have about the instrument dimensions. Added in stubs (based on NG3 SANS) for the beam intensity. Added in a preset condition for Front+Middle. Still need a more uniform way to do this.

File:
1 edited

Legend:

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

    r1107 r1108  
    15231523 
    15241524 
     1525// 
     1526////// utilities for the back detector to diagnose saturation issues 
     1527// 
     1528 
     1529Proc Vm_NumberSaturated(folderStr) 
     1530        String folderStr="RAW" 
     1531        V_NumberSaturated(folderStr) 
     1532End 
     1533 
     1534Function V_NumberSaturated(folderStr) 
     1535        String folderStr 
     1536         
     1537        Variable num,saturationValue 
     1538        Duplicate/O $("root:Packages:NIST:VSANS:"+folderStr+":entry:instrument:detector_B:data") tmpData 
     1539         
     1540        saturationValue = 16383 
     1541         
     1542        tmpData = (tmpData == saturationValue) ? NaN : tmpData 
     1543        WaveStats/Q tmpData 
     1544        num = V_numNaNs 
     1545         
     1546        Printf "Number of saturated pixels = %d (%g %)\r",num,num/(680*1656)*100 
     1547        KillWaves/Z tmpData 
     1548         
     1549        V_ColorizeSaturated() 
     1550        return(num) 
     1551end 
     1552 
     1553// turns the saturated values to lime green 
     1554Function V_ColorizeSaturated() 
     1555        ModifyImage data ctab= {0,16382,ColdWarm,0},minRGB=0,maxRGB=(32792,65535,1) 
     1556End 
     1557 
     1558 
     1559 
     1560/// 
     1561 
Note: See TracChangeset for help on using the changeset viewer.