Changeset 894 for sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS
- Timestamp:
- Jan 30, 2013 3:17:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/ProDiv.ipf
r871 r894 571 571 //loop through each file and check the x and y center 572 572 // 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 573 578 Function CheckDIVBeamCenter(str,xc,yc) 574 579 String str … … 576 581 577 582 Variable err,ii,num,tmpX,tmpY,badCtr,tol=5 578 String fileStr,pathStr 583 String fileStr,pathStr,acct 579 584 580 585 PathInfo catPathName … … 584 589 ii=0 585 590 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 586 601 do 587 602 fileStr = pathStr + StringFromList(ii, str,",")
Note: See TracChangeset
for help on using the changeset viewer.