- Timestamp:
- May 25, 2018 11:11:48 AM (5 years ago)
- Location:
- sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_PatchFiles.ipf
r1095 r1102 517 517 fname = S_path + fname 518 518 519 Variable nRows = 1 2519 Variable nRows = 13 520 520 Redimension/N=(nRows,3) ListWave 521 521 Redimension/N=(nRows,3) selWave … … 570 570 listWave[11][2] = num2str(V_getDet_y_pixel_size(fname,detStr)) 571 571 572 listWave[12][1] = "dead time (s) (back only)" 573 listWave[12][2] = num2str(V_getDetector_deadtime_B(fname,detStr)) //returns 0 if not "B" 572 574 573 575 return(0) … … 1358 1360 endif 1359 1361 1360 1362 if ((selWave[12][0] & 2^4) != 0) //"dead time, "B" only" 1363 val = str2num(listWave[12][2]) 1364 if(cmpstr(detStr,"B") == 0) 1365 err = V_writeDetector_deadtime_B(fname,detStr,val) 1366 endif 1367 endif 1361 1368 1362 1369 … … 2789 2796 2790 2797 Make/O/D/N=3 cal_x,cal_y 2791 cal_x[0] = VCALC_getPixSizeX(detStr) *10 // pixel size in mmVCALC_getPixSizeX(detStr) is [cm]2798 cal_x[0] = VCALC_getPixSizeX(detStr) // pixel size in VCALC_getPixSizeX(detStr) is [cm] 2792 2799 cal_x[1] = 1 2793 2800 cal_x[2] = 10000 2794 cal_y[0] = VCALC_getPixSizeY(detStr) *10 // pixel size in mmVCALC_getPixSizeX(detStr) is [cm]2801 cal_y[0] = VCALC_getPixSizeY(detStr) // pixel size in VCALC_getPixSizeX(detStr) is [cm] 2795 2802 cal_y[1] = 1 2796 2803 cal_y[2] = 10000 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Transmission.ipf
r1097 r1102 222 222 endfor 223 223 224 SVAR newSamList = root:Packages:NIST:VSANS:Globals:Transmission:gSamMatchList 225 newSamList = newList 226 224 227 return(newList) 225 228 End … … 247 250 endfor 248 251 252 SVAR newTransList = root:Packages:NIST:VSANS:Globals:Transmission:gTransMatchList 253 newTransList = newList 254 249 255 return(newList) 250 256 … … 272 278 PopupMenu popup_1,mode=1,value=V_getTransListForPopup() 273 279 280 SVAR newBox = root:Packages:NIST:VSANS:Globals:Transmission:gEmptyBoxCoord 281 newBox = V_NumWave2List(boxCoord,";") 282 274 283 break 275 284 case -1: // control being killed … … 347 356 EmptyFile = S_Value 348 357 349 // gSamMatchStr has " at each end. remove these350 358 String list 351 359 list = gSamMatchList 352 list = list[1,strlen(list)-1]353 list = list[0,strlen(list)-2]360 // list = list[1,strlen(list)-1] 361 // list = list[0,strlen(list)-2] 354 362 355 363 Variable num,ii -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Utilities_Comparisons.ipf
r1098 r1102 166 166 167 167 168 // I DO need to check all of the offset values 169 //// only return value for B and L/R detectors. everything else returns zero 170 //Function V_getDet_LateralOffset(fname,detStr) 171 // 172 //// only return values for T/B. everything else returns zero 173 //Function V_getDet_VerticalOffset(fname,detStr) 174 for(ii=0;ii<ItemsInList(ksDetectorListAll);ii+=1) 175 detStr = StringFromList(ii, ksDetectorListAll, ";") 176 if(!V_FP2_Value_Match(V_getDet_LateralOffset,fname1,fname2,detStr)) 177 return(0) //no match 178 endif 179 if(!V_FP2_Value_Match(V_getDet_VerticalOffset,fname1,fname2,detStr)) 180 return(0) //no match 181 endif 182 endfor 168 //// ???Do I need to check all of the offset values 169 // //// only return value for B and L/R detectors. everything else returns zero 170 // //Function V_getDet_LateralOffset(fname,detStr) 171 // // 172 // //// only return values for T/B. everything else returns zero 173 // //Function V_getDet_VerticalOffset(fname,detStr) 174 // for(ii=0;ii<ItemsInList(ksDetectorListAll);ii+=1) 175 // detStr = StringFromList(ii, ksDetectorListAll, ";") 176 // if(!V_FP2_Value_Match(V_getDet_LateralOffset,fname1,fname2,detStr)) 177 // return(0) //no match 178 // endif 179 // if(!V_FP2_Value_Match(V_getDet_VerticalOffset,fname1,fname2,detStr)) 180 // return(0) //no match 181 // endif 182 // endfor 183 184 // only check the panel position for the actual panel used for the open beam measurement 185 detStr = V_getReduction_BoxPanel(fname1) 186 if(!V_FP2_Value_Match(V_getDet_LateralOffset,fname1,fname2,detStr)) 187 return(0) //no match 188 endif 183 189 184 190 return(1) // passed all of the tests, OK, it's a match
Note: See TracChangeset
for help on using the changeset viewer.