- Timestamp:
- Mar 12, 2020 6:23:22 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Utilities_General.ipf
r1242 r1243 1570 1570 End 1571 1571 1572 1573 1574 1572 /// 1575 1573 1574 1575 Function V_PrintLoHiNum() 1576 1577 Variable lo,hi 1578 V_Find_LoHi_RunNum(lo,hi) 1579 Print "lo = ",lo 1580 Print "hi = ",hi 1581 1582 End 1583 1584 // 1585 // returns the lo, hi run numbers in the current directory 1586 // (passed by reference) 1587 // 1588 // 1589 // note that 1111 (is a special number for the ReadNoise file, ignore this run) 1590 // 1591 Function V_Find_LoHi_RunNum(lo,hi) 1592 Variable &lo,&hi 1593 1594 String fileList="",fname="" 1595 Variable ii,num,runNum 1596 1597 // set to values that will change 1598 lo = 1e8 1599 hi = 0 1600 1601 // get a file listing of all raw data files 1602 fileList = V_GetRawDataFileList() 1603 num = itemsInList(fileList) 1604 1605 for(ii=0;ii<num;ii+=1) 1606 fname = stringFromList(ii,fileList) 1607 runNum = V_GetRunNumFromFile(fname) 1608 1609 if(runNum != 1111) //ignore this run 1610 lo = runNum < lo ? runNum : lo // if runNum < lo, update 1611 hi = runNum > hi ? runNum : hi // if runNum > hi, update 1612 endif 1613 endfor 1614 1615 return(0) 1616 End 1617 1618
Note: See TracChangeset
for help on using the changeset viewer.