def get_header_idx(fname):
    """
    Opens the file from fname and returns the row index corresponding to the
    header row (with all the column name field information)
    """    

    blanks = []
    with open(fname,'r') as f:
        lines = f.readlines()
        for i, line in enumerate(lines):
            if line.startswith('Well'):
                blanks.append(i)
    return blanks[0] + 1