def test4(): bin = J.bin(ifcb.pid('IFCB5_2011_056_024112')) bin2html(bin) bin2json(bin) print '' bin2xml(bin) bin2adc(bin) bin2hdr(bin)
#!/usr/bin/python from sys import argv, stdout from ifcb.io.file import BinFile from ifcb.io.convert import bin2xml if __name__ == '__main__': if (len(argv) < 2): print 'usage: bin2xml [file]' else: bin2xml(BinFile(argv[1]), stdout, True)
#!/usr/bin/python from sys import argv, stdout from ifcb.io.file import BinFile from ifcb.io.convert import bin2xml if __name__ == '__main__': if(len(argv) < 2): print 'usage: bin2xml [file]' else: bin2xml(BinFile(argv[1]),stdout,True)