def combine_binfile_autocorr_byfreq(bflist, number_packets=3000): """ bflist is a list of filenames. Please be sure to order the files in ascending order of frequency coverage For eg: ['20151013-074846.bin', '20151013-074847.bin'] """ for i, filename in enumerate(bflist): print "Processing %s" % filename bf = BinFile(filename, number_packets=number_packets) bf.get_spec_data() if i == 0: ac = bf.data_out else: ac = numpy.append(ac, bf.data_out, axis=2) return ac