- Timestamp:
- Apr 16, 2018 10:50:33 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_IQ_Annular.ipf
r1073 r1095 18 18 // -- integrate this with a more general "average panel" 19 19 // -- draw the q-center and width on the image (as a contour? - if no, use a draw layer...) 20 // 20 // -- Can I "flag" the pixels that contribute to the annualr average, and overlay them like a 21 21 // Mask(translucent?), like a "thresholding" operation, but act on the Q-value, not the Z- value. 22 // 23 // TODO!!! 24 // x- none of these procedures are aware of the BACK detector 25 // 22 26 23 27 // … … 46 50 String detStr 47 51 48 if(cmpstr(detGroup,"F") == 0) 49 detStr = "FLRTB" 50 else 51 detStr = "MLRTB" 52 endif 52 strswitch(detGroup) 53 case "F": 54 detStr = "FLRTB" 55 break 56 case "M": 57 detStr = "MLRTB" 58 break 59 case "B": 60 detStr = "B" 61 break 62 default: 63 DoAlert 0,"No detGroup match in V_QBinAllPanels_Annular" 64 return(0) 65 endswitch 66 53 67 54 68 // right now, use all of the detectors. There is a lot of waste in this and it could be … … 78 92 RemoveFromGraph/Z iPhiBin_qxqy_FLRTB 79 93 RemoveFromGraph/Z iPhiBin_qxqy_MLRTB 94 RemoveFromGraph/Z iPhiBin_qxqy_B 80 95 endif 81 96 … … 89 104 Label bottom "Phi (degrees)" 90 105 Legend 91 else 106 endif 107 if(cmpstr(detGroup,"M") == 0) 92 108 AppendToGraph iPhiBin_qxqy_MLRTB vs phiBin_qxqy_MLRTB 93 109 ModifyGraph mode=4 … … 98 114 Legend 99 115 endif 100 116 if(cmpstr(detGroup,"B") == 0) 117 AppendToGraph iPhiBin_qxqy_B vs phiBin_qxqy_B 118 ModifyGraph mode=4 119 ModifyGraph marker=19 120 ErrorBars iPhiBin_qxqy_B Y,wave=(ePhiBin_qxqy_B,ePhiBin_qxqy_B) 121 Label left "Counts" 122 Label bottom "Phi (degrees)" 123 Legend 124 endif 101 125 102 126 SetDataFolder fldrSav0 … … 247 271 break 248 272 273 case "B": 274 if(isVCALC) 275 WAVE inten = $(folderPath+instPath+"B"+":det_"+"B") 276 WAVE/Z iErr = $("iErr_"+"B") // 2D errors -- may not exist, especially for simulation 277 else 278 Wave inten = V_getDetectorDataW(folderStr,"B") 279 Wave iErr = V_getDetectorDataErrW(folderStr,"B") 280 281 Wave/Z mask = $("root:Packages:NIST:VSANS:MSK:entry:instrument:detector_"+"B"+":data") 282 283 if(WaveExists(mask) == 1) 284 maskMissing = 0 285 endif 286 endif 287 // NVAR delQ = $(folderPath+instPath+"ML"+":gDelQ_ML") 288 289 Wave qTotal = $(folderPath+instPath+"B"+":qTot_"+"B") // 2D q-values 290 291 Wave qx = $(folderPath+instPath+"B"+":qx_"+"B") // 2D qx-values 292 293 Wave qy = $(folderPath+instPath+"B"+":qy_"+"B") // 2D qy-values 294 295 nSets = 1 296 break 297 298 249 299 default: 250 300 nSets = 0 // optional default expression executed … … 654 704 Wave/Z iw = iPhiBin_qxqy_FLRTB 655 705 Wave/Z sw = ePhiBin_qxqy_FLRTB 656 else 706 endif 707 if(cmpstr(detGroup,"M") == 0) 657 708 Wave/Z pw = phiBin_qxqy_MLRTB 658 709 Wave/Z iw = iPhiBin_qxqy_MLRTB 659 710 Wave/Z sw = ePhiBin_qxqy_MLRTB 660 711 endif 661 712 if(cmpstr(detGroup,"B") == 0) 713 Wave/Z pw = phiBin_qxqy_B 714 Wave/Z iw = iPhiBin_qxqy_B 715 Wave/Z sw = ePhiBin_qxqy_B 716 endif 662 717 663 718 String dataSetFolderParent,basestr
Note: See TracChangeset
for help on using the changeset viewer.