Ignore:
Timestamp:
Apr 30, 2019 12:17:29 PM (3 years ago)
Author:
srkline
Message:

added a batch patch routine to correct the sample aperture shape and size since it may be incorrectly written by NICE

defined the sector angles to match the SANS definition and updated the associated logic for the averaging and sector display

updated sorting of the file catalog to allow sorting by SDD_F and countRate_F. Also added a second sort key to keep the run numbers in order whenever sorting any other column.

File:
1 edited

Legend:

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

    r1134 r1148  
    10891089                Variable/G root:Packages:NIST:VSANS:Globals:Mask:gSectorAngle = 30 
    10901090                Variable/G root:Packages:NIST:VSANS:Globals:Mask:gSectorDQ = 10 
     1091                 
     1092                // check for a mask, if not present, generate a default mask 
     1093                String str="FT" 
     1094                wave/Z maskW = $("root:Packages:NIST:VSANS:MSK:entry:instrument:detector_"+str+":data")  
     1095                if(!WaveExists(maskW)) 
     1096                        V_GenerateDefaultMask() 
     1097                endif 
    10911098                         
    10921099                Execute "V_Display_Det_Panels()" 
     
    11291136        SetVariable setvar1,limits={0,1,0.001},value=root:Packages:NIST:VSANS:Globals:Mask:gAnnularDQ 
    11301137        SetVariable setvar2,pos={200,40},size={140,23},title="Sector Angle (deg)" 
    1131         SetVariable setvar2,limits={0,359,1},value=root:Packages:NIST:VSANS:Globals:Mask:gSectorAngle 
     1138        SetVariable setvar2,limits={-90,90,1},value=root:Packages:NIST:VSANS:Globals:Mask:gSectorAngle 
    11321139        SetVariable setvar3,pos={200,70},size={140,23},title="Sector (+/-) (deg)" 
    1133         SetVariable setvar3,limits={0,359,1},value=root:Packages:NIST:VSANS:Globals:Mask:gSectorDQ 
     1140        SetVariable setvar3,limits={0,90,1},value=root:Packages:NIST:VSANS:Globals:Mask:gSectorDQ 
    11341141 
    11351142        PopupMenu popup4,pos={200,100},size={90,23.00},title="Sector Side(s)"//,proc=V_DummyPopMenuProc 
Note: See TracChangeset for help on using the changeset viewer.