def Rad_Read(filename):
    """
    Open the averaged data from a rgr file
    return qraw,q,iraw,i,n
    """
    f = open(filename, 'r')
    lignes = f.readlines()
    f.close
    qraw = []
    q = []
    iraw = []
    i = []
    n = []
    for j in range(len(lignes)):
        if lignes[j][0] != '#':
            datas = lignes[j].split('\t')
            qraw.append(int(datas[0]))
            q.append(float(datas[1]))
            n.append(float(datas[3]))
            iraw.append(float(datas[4]))
            i.append(float(datas[5]))
    return qraw, q, n, iraw, i
