Ignore:
Timestamp:
Mar 12, 2020 6:23:22 PM (2 years ago)
Author:
srkline
Message:

added some test procedures to make it easier to calculate and patch the corrected beam center to a series of files. This new method can be found under the VSANS menu.

Changed the mask drawing objects to be semi-transparent to allow easier masking of bad spots - since you can see what you're doing now.

File:
1 edited

Legend:

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

    r1242 r1243  
    15701570End 
    15711571 
    1572  
    1573  
    15741572/// 
    15751573 
     1574 
     1575Function V_PrintLoHiNum() 
     1576 
     1577        Variable lo,hi 
     1578        V_Find_LoHi_RunNum(lo,hi) 
     1579        Print "lo = ",lo 
     1580        Print "hi = ",hi 
     1581         
     1582End 
     1583 
     1584// 
     1585// returns the lo, hi run numbers in the current directory 
     1586// (passed by reference) 
     1587// 
     1588// 
     1589// note that 1111 (is a special number for the ReadNoise file, ignore this run) 
     1590// 
     1591Function V_Find_LoHi_RunNum(lo,hi) 
     1592        Variable &lo,&hi 
     1593         
     1594        String fileList="",fname="" 
     1595        Variable ii,num,runNum 
     1596         
     1597        // set to values that will change 
     1598        lo = 1e8 
     1599        hi = 0 
     1600         
     1601        // get a file listing of all raw data files 
     1602        fileList = V_GetRawDataFileList() 
     1603        num = itemsInList(fileList) 
     1604         
     1605        for(ii=0;ii<num;ii+=1) 
     1606                fname = stringFromList(ii,fileList) 
     1607                runNum = V_GetRunNumFromFile(fname) 
     1608 
     1609                if(runNum != 1111)              //ignore this run 
     1610                        lo = runNum < lo ? runNum : lo          // if runNum < lo, update 
     1611                        hi = runNum > hi ? runNum : hi          // if runNum > hi, update 
     1612                endif 
     1613        endfor 
     1614         
     1615        return(0) 
     1616End 
     1617 
     1618 
Note: See TracChangeset for help on using the changeset viewer.