def list_tmpdir(flist):
    """ this read from file list of instances on tmp/tree and return the ones matching constraints """
    keys = ['variable', 'mip', 'model', 'experiment', 'ensemble', 'realm',
        'version', 'path']
    f = open(flist, 'r')
    inst_list = []
    lines = f.readlines()
    for line in lines[1:]:
        values = line[:-1].split(',')
        inst_list.append(dict(zip(keys, values)))
    f.close()
    return inst_list
