Ignore:
Timestamp:
Jan 30, 2013 3:17:10 PM (10 years ago)
Author:
srkline
Message:

simple fix to prodiv to account for the not-quite 65,65 on center plex data from NGA. increased the tolerance for NGA only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/ProDiv.ipf

    r871 r894  
    571571//loop through each file and check the x and y center 
    572572// within some tolerance (5 pixels) should be fine 
     573// 
     574// this is really just to flag the case where (0,0) is the "center" which causes all sorts 
     575// of solid angle problems when generating a DIV file. 
     576// 
     577// TODO_10m: extra-wide tolerance for NGA = 10m SANS. Once "normal" beam centers are settled, then the tolerance can be adjusted here 
    573578Function CheckDIVBeamCenter(str,xc,yc) 
    574579        String str 
     
    576581         
    577582        Variable err,ii,num,tmpX,tmpY,badCtr,tol=5 
    578         String fileStr,pathStr 
     583        String fileStr,pathStr,acct 
    579584         
    580585        PathInfo catPathName 
     
    584589        ii=0 
    585590        badCtr = 0 
     591         
     592        // get the account, to identify the instrument 
     593        fileStr = pathStr + StringFromList(ii, str,",") 
     594        acct = getAcctName(fileStr) 
     595        String instr=fileStr[1,3]       //filestr is "[NGnSANSn] " or "[NGnSANSnn]" (11 characters total)        
     596        if(cmpstr(instr,"NGA")==0) 
     597                tol=20          //if the 10m SANS, give an extra-wide tolerance, and show an alert 
     598                DoAlert 0,"NGA SANS instrument. Be sure that the correct beam centers are entered for all of the plex files." 
     599        endif 
     600         
    586601        do 
    587602                fileStr = pathStr + StringFromList(ii, str,",") 
Note: See TracChangeset for help on using the changeset viewer.