- Timestamp:
- Jul 20, 2018 1:33:20 PM (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_DetectorCorrections.ipf
r1111 r1112 1406 1406 // topY = 105 1407 1407 1408 // bottomX = 71408 // bottomX = 5 1409 1409 // bottomY = 35 1410 1410 … … 1422 1422 1423 1423 1424 Proc pV_MedianFilterBack(folder) 1425 String folder="RAW" 1426 1427 V_MedianFilterBack(folder) 1428 end 1429 1430 Function V_MedianFilterBack(folder) 1431 String folder 1432 1433 Wave w = V_getDetectorDataW(folder,"B") 1434 // w -= kReadNoiseLevel // a constant value 1435 1436 MatrixFilter /N=3 median w 1437 Print "*** median noise filter applied to the back detector***" 1438 1439 return(0) 1440 End 1441 1442 1443 Proc pV_SubtractReadNoiseBack(folder,ReadNoise) 1444 String folder="RAW" 1445 Variable readNoise=200 1446 1447 V_SubtractReadNoiseBack(folder,readNoise) 1448 end 1449 1450 Function V_SubtractReadNoiseBack(folder,readNoise) 1451 String folder 1452 Variable readNoise 1453 1454 Wave w = V_getDetectorDataW(folder,"B") 1455 w -= readNoise // a constant value 1456 1457 // MatrixFilter /N=3 median w 1458 // Print "*** median noise filter applied to the back detector***" 1459 1460 return(0) 1461 End 1462 1463 1464 Proc pV_MedianAndReadNoiseBack(folder,ReadNoise) 1465 String folder="RAW" 1466 Variable readNoise=200 1467 1468 V_MedianAndReadNoiseBack(folder,readNoise) 1469 end 1470 1471 Function V_MedianAndReadNoiseBack(folder,readNoise) 1472 String folder 1473 Variable readNoise 1474 1475 Wave w = V_getDetectorDataW(folder,"B") 1476 w -= readNoise // a constant value 1477 1478 MatrixFilter /N=3 median w 1479 Print "*** median noise filter applied to the back detector***" 1480 1481 return(0) 1482 End 1483 -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Menu.ipf
r1108 r1112 31 31 "-" 32 32 "Back Detector Saturation",Vm_NumberSaturated() 33 "Median Filter Back Det",pV_MedianFilterBack() 34 "Subtract Read Noise",pV_SubtractReadNoiseBack() 35 "Median+Read Noise",pV_MedianAndReadNoiseBack() 33 36 End 34 37 SubMenu "Nexus File Corrections" -
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Protocol_Reduction.ipf
r1111 r1112 240 240 numItems = ItemsInList(list,";") 241 241 checked = 1 242 if(numitems == 4 || numitems == 5) //allow for protocols with no SDEV list item 242 // if(numitems == 4 || numitems == 5) //allow for protocols with no SDEV list item 243 if(numitems > 1) // 243 244 //correct number of parameters, assume ok 244 245 String/G root:Packages:NIST:VSANS:Globals:Protocols:gAbsStr = list … … 812 813 num=ItemsInList(newList) 813 814 814 String matchStr="* _DIV_*" // this is part of the title of a VSANS _DIV_ file815 String matchStr="*DIV*" // this is part of the title of a VSANS _DIV_ file 815 816 for(ii=0;ii<num;ii+=1) 816 817 item=StringFromList(ii, newList , ";") … … 864 865 num=ItemsInList(newList) 865 866 866 String matchStr="* _MASK_*" // this is part of the title of a VSANS _MASK_ file867 String matchStr="*MASK*" // this is part of the title of a VSANS _MASK_ file 867 868 for(ii=0;ii<num;ii+=1) 868 869 item=StringFromList(ii, newList , ";")
Note: See TracChangeset
for help on using the changeset viewer.