source: sans/utils/bt5/combine/combine.py @ 450

Last change on this file since 450 was 450, checked in by ajj, 14 years ago

adding combine util to svn

  • Property svn:executable set to *
File size: 592 bytes
Line 
1#!/usr/bin/python
2
3from bt5reader import *
4
5
6
7
8if __name__ == '__main__':
9        import sys
10        numfiles = len(sys.argv)
11        if (numfiles > 3):
12                #print "Input files:"
13                #for filename in sys.argv[1:numfiles-1]:
14                #       print filename
15                #print "Output file:"
16                #print sys.argv[numfiles]
17                addBT5Data(sys.argv[1:numfiles-1])
18        elif (numfiles > 2):
19                #print "Input files:"
20                #for filename in sys.argv[1:numfiles]:
21                #       print filename 
22                #print "Output to stdout"
23                (outh,outs,outdet) = addBT5Data(sys.argv[1:numfiles])
24                printBT5FormatData(outh,outs,outdet)
25        else:
26                print "You must specify more than 1 filename"
Note: See TracBrowser for help on using the repository browser.