def read_parm_old(parmfn):
    """
    Read .parm which comes along with .seis file
    Return parm defining the grid mesh
    """
    print('Reading', parmfn)
    f = open(parmfn, 'r')
    for line in f:
        line = line.strip()
        columns = line.split()
        if columns[0] == 'NTRACE':
            ntrace = int(columns[1])
        if columns[0] == 'NPANEL':
            npanel = int(columns[1])
        if columns[0] == 'NSAMPLE':
            nsample = int(columns[1])
        if columns[0] == 'TRACE_START':
            ox = float(columns[1])
        if columns[0] == 'PANEL_START':
            oy = float(columns[1])
        if columns[0] == 'SAMPLE_START':
            oz = float(columns[1])
        if columns[0] == 'SAMPLE_INC':
            dz = float(columns[1])
        if columns[0] == 'DX':
            TRDX = float(columns[1])
            TRDY = float(columns[2])
        if columns[0] == 'DY':
            PNDX = float(columns[1])
            PNDY = float(columns[2])
    f.close()
    return ntrace, npanel, nsample, ox, oy, oz, dz, TRDX, TRDY, PNDX, PNDY
