def _findBeginning(file_name, loc):
    """Scan given TRY dat file and find end of header (start of data)

    Arguments:
        file_name {str} -- Name of TRY data file
        loc {str} -- Location of TRY data file

    Returns:
        (int, string) -- (lines before data starts,
                          column header)
    """
    with open(loc + file_name, 'r') as dat_file:
        last_line = dat_file.readline()
        current_line = dat_file.readline()
        dat_start = 2
        while current_line[:3] != '***':
            last_line = current_line  # save column header
            current_line = dat_file.readline()
            dat_start += 1
            if dat_start == 100:
                break

    # get header as list of string
    last_line = last_line.split()

    return (dat_start, last_line)