- Timestamp:
- Apr 12, 2010 11:03:04 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/FACILITY_Utils.ipf
r573 r683 703 703 return("Function Empty") 704 704 End 705 706 707 // Return the filename that represents the previous or next file. 708 // Input is current filename and increment. 709 // Increment should be -1 or 1 710 // -1 => previous file 711 // 1 => next file 712 Function/S GetPrevNextRawFile(curfilename, prevnext) 713 String curfilename 714 Variable prevnext 715 716 String filename 717 718 //get the run number 719 Variable num = GetRunNumFromFile(curfilename) 720 721 //find the next specified file by number 722 fileName = FindFileFromRunNumber(num+prevnext) 723 724 if(cmpstr(fileName,"")==0) 725 //null return, do nothing 726 fileName = FindFileFromRunNumber(num) 727 Endif 728 729 // print "in FU "+filename 730 731 Return filename 732 End
Note: See TracChangeset
for help on using the changeset viewer.