def initialize_output_file(data_directory, datalogger_name, site_name, site_description, column_header):
    """
    Given information from the configuration file, create the output data
    file and write the header information to the top of it
    :param data_directory: Path to the directory in which the file will be located
    :param datalogger_name: Name of the datalogger
    :param site_name: Name of the site to which the datalogger will be deployed
    :param site_description: Description of the site to which the datalogger will be deployed
    :param column_header: List of column headers to write to the data file header
    :return: The full path to the output file, including the file name
    """
    output_file_name = data_directory + 'datalog' + '.csv'
    with open(output_file_name, 'w') as outputFile:
        outputFile.write('CIWS Data Logger Output File' + '\n')
        outputFile.write("DataloggerName: " + datalogger_name + '\n')
        outputFile.write("SiteName: " + site_name + '\n')
        outputFile.write("SiteDescription: " + site_description + '\n')
        outputFile.write(','.join(map(str, column_header)) + '\n')
    return output_file_name