SourceList¶
-
class
mpdaf.sdetect.SourceList[source]¶ Bases:
listHandles a list of
mpdaf.sdetect.Sourceobjects.Methods Summary
from_path(path)Read a SourceList object from the path of a directory containing source files. write(name[, path, overwrite, fmt])Create the directory and saves all sources files and the catalog file in this folder. Methods Documentation
-
classmethod
from_path(path)[source]¶ Read a SourceList object from the path of a directory containing source files.
Parameters: - path : str
Directory containing
mpdaf.sdetect.Sourcefiles
-
write(name, path='.', overwrite=True, fmt='default')[source]¶ Create the directory and saves all sources files and the catalog file in this folder.
path/name.fits: catalog file (In FITS table, the maximum number of fields is 999. In this case, the catalog is saved as an ascci table).path/name/nameNNNN.fits: source file (NNNN corresponds to the ID of the source)Parameters: - name : str
Name of the catalog
- path : str
path where the catalog will be saved.
- overwrite : bool
Overwrite the catalog if it already exists
- fmt : str, ‘working’ or ‘default’
Format of the catalog. The format differs for the LINES table.
-
classmethod