- Timestamp:
- Jun 8, 2018 2:35:44 PM (5 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/VC_DetectorBinning_Utils.ipf
r1100 r1105 1483 1483 // 1484 1484 // TODO: the values in the file are incorrect!!! BS = 1000 mm diameter!!! 1485 BS = V_DeduceBeamstopDiameter(folderStr,type) //returns diameter in [mm] 1485 1486 // BS = V_getBeamStopC2_size(folderStr) // Units are [mm] 1486 BS = 25.4 //TODO hard-wired value1487 // BS = 25.4 //TODO hard-wired value 1487 1488 1488 1489 // bs_shape = V_getBeamStopC2_shape(folderStr) … … 1496 1497 1497 1498 // del_r = step size [mm] = binWidth*(mm/pixel) 1498 del_r = 1* 8 // TODO: 8mm/pixel hard-wired1499 del_r = 1*DDet*10 // TODO: this is probably not the correct value 1499 1500 1500 1501 // usingLenses = flag for lenses = 0 if no lenses, non-zero if lenses are in-beam -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_FileCatalog.ipf
r1082 r1105 852 852 853 853 case "SortMonitorCountsButton": 854 SetDataFolder root:855 return(0) 854 sortKey = "MCR" 855 856 856 break 857 857 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_MaskUtils.ipf
r1104 r1105 125 125 126 126 PopupMenu popup_0,pos={18,40},size={109,20},proc=V_SetMaskPanelPopMenuProc,title="Detector Panel" 127 PopupMenu popup_0,mode=1,popvalue="FL",value= #"\"FL;FR;FT;FB;M R;ML;MT;MB;B;\""127 PopupMenu popup_0,mode=1,popvalue="FL",value= #"\"FL;FR;FT;FB;ML;MR;MT;MB;B;\"" 128 128 PopupMenu popup_2,pos={18,10},size={109,20},title="Data Source"//,proc=SetFldrPopMenuProc 129 129 PopupMenu popup_2,mode=1,popvalue="RAW",value= #"\"RAW;SAM;VCALC;\"" -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Transmission.ipf
r1102 r1105 186 186 // PopupMenu popup_0,mode=1,value=#gSamMatchList 187 187 PopupMenu popup_0,mode=1,value=V_getSamListForPopup() 188 189 190 // then pop the sample list with the top file to see that it is a match for the transmission file 191 STRUCT WMPopupAction samPopAct 192 ControlInfo popup_0 193 samPopAct.popStr = S_Value // the top file 194 V_TSamFilePopMenuProc(samPopAct) 188 195 189 196 break … … 231 238 Function/S V_getTransListForPopup() 232 239 233 String retStr = V_getFilePurposeList("TRANSMISSION",0) 240 String retStr ="" 241 242 // retStr = V_getFilePurposeList("TRANSMISSION",0) 243 244 retStr = V_getFileIntentPurposeList("Sample","TRANSMISSION",0) 245 retStr += V_getFileIntentPurposeList("Empty Cell","TRANSMISSION",0) 234 246 235 247 // now filter through the string to refine the list to only transmission files that match -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Utilities_Comparisons.ipf
r1104 r1105 32 32 // 33 33 // 34 Function V_RawFilesMatch (fname1,fname2)34 Function V_RawFilesMatchConfig(fname1,fname2) 35 35 String fname1,fname2 36 36 … … 361 361 variable wb_in=0,slit=0 362 362 363 status = V_getConvPinholeStatus(fname)364 if(cmpstr( status,"IN") == 0)363 guides = V_getNumberOfGuides(fname) 364 if(cmpstr(guides,"CONV_BEAMS") == 0) 365 365 return("convergingPinholes") 366 366 endif 367 368 // TODO: as of 6/2018 with the converging pinholes IN, status is "out" 369 // status = V_getConvPinholeStatus(fname) 370 // if(cmpstr(status,"IN") == 0) 371 // return("convergingPinholes") 372 // endif 367 373 368 374 status = V_getWhiteBeamStatus(fname) … … 424 430 425 431 432 // returns the beamstop diameter [mm] 433 // if there is no beamtop in front of the specified detector, return 0.01mm 434 // 435 Function V_DeduceBeamstopDiameter(folderStr,detStr) 436 String folderStr,detStr 437 438 Variable BS, dummyVal,num 439 dummyVal = 0.01 //[mm] 440 441 if(cmpstr("F",detStr[0]) == 0) 442 // front carriage has no beamstops 443 return(dummyVal) 444 endif 445 446 if(cmpstr("M",detStr[0]) == 0) 447 // middle carriage (2) 448 num = V_getBeamStopC2num_beamstops(folderStr) 449 if(num) 450 BS = V_getBeamStopC2_size(folderStr) 451 else 452 //num = 0, no beamstops in the middle. 453 return(dummyVal) 454 endif 455 endif 456 457 if(cmpstr("B",detStr[0]) == 0) 458 // back (3) 459 num = V_getBeamStopC3num_beamstops(folderStr) 460 if(num) 461 BS = V_getBeamStopC3_size(folderStr) 462 else 463 //num = 0, no beamstops on the back 464 return(dummyVal) 465 endif 466 endif 467 468 return(BS) 469 end 470 471 472 473 // 474 // tests if two values are close enough to each other 475 // very useful since ICE came to be 476 // 477 // tol is an absolute value (since input v1 or v2 may be zero, can't reliably 478 // use a percentage 479 Function V_CloseEnough(v1,v2,tol) 480 Variable v1, v2, tol 481 482 if(abs(v1-v2) < tol) 483 return(1) 484 else 485 return(0) 486 endif 487 End 488 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Utilities_General.ipf
r1099 r1105 77 77 return(WaveExists(w)) 78 78 end 79 80 81 //82 // tests if two values are close enough to each other83 // very useful since ICE came to be84 //85 // tol is an absolute value (since input v1 or v2 may be zero, can't reliably86 // use a percentage87 Function V_CloseEnough(v1,v2,tol)88 Variable v1, v2, tol89 90 if(abs(v1-v2) < tol)91 return(1)92 else93 return(0)94 endif95 End96 79 97 80 … … 1444 1427 1445 1428 1446 // match BOTH the intent and purpose 1429 // match the INTENT and PURPOSE and GROUP_ID 1430 // 1447 1431 // -- needed to identify the SAMPLE + SCATTERING data files. 1448 1432 //
Note: See TracChangeset
for help on using the changeset viewer.