def concat_temp_data(num_spec, output_file):
    """
    Concatenate temperature information. Used if running on several processors
    Args:
        num_spec: Number of spectra (or bins)
        output_file: File name of final concatenated temperature data
    """
    file_to_write = open(output_file+".txt",'w+')
    file_to_write.write("BinNumber Temperature Temp_min Temp_max Abundance Ab_min Ab_max Norm Norm_min Norm_max ReducedChiSquare Flux Flux_min Flux_max\n")
    # Get the data for each temporary file and then delete
    for spec_i in range(num_spec):
        with open('temp_'+str(spec_i)+'.txt', 'r') as temp_file:
            for line in temp_file.readlines():
                file_to_write.write(line)
    file_to_write.close()
    return None