def snspectralist(fname, logffname=None):
    """
    List all the spectra files associated with a phosim instance catalog
    """
    x = []
    with open(fname, 'r') as f:
        for line in f:
            if 'spectra_file' in line:
                x.append(line.split()[5])
    return x