BaseCatalog¶
-
class
lsst.afw.table.
BaseCatalog
¶ Bases:
pybind11_builtins.pybind11_object
Attributes Summary
columns
a column view of the catalog dtype
schema
table
Methods Summary
addNew
()append
(record)asAstropy
([cls, copy, unviewable])Return an astropy.table.Table (or subclass thereof) view into this catalog. between
(*args, **kwargs)Overloaded function. capacity
(self)cast
(type_[, deep])Return a copy of the catalog with the given type. clear
()copy
([deep])Copy a catalog (default is not a deep copy). equal_range
(*args, **kwargs)Overloaded function. extend
(iterable[, deep, mapper])Append all records in the given iterable to the catalog. find
(*args, **kwargs)Overloaded function. getColumnView
()getSchema
(self)getTable
(self)insert
(key, value)isContiguous
(self)isSorted
(*args, **kwargs)Overloaded function. lower_bound
(*args, **kwargs)Overloaded function. readFits
(*args, **kwargs)Overloaded function. reserve
(self, arg0)resize
(self, arg0)set
(self, arg0, arg1)sort
(*args, **kwargs)Overloaded function. subset
(*args, **kwargs)Overloaded function. upper_bound
(*args, **kwargs)Overloaded function. writeFits
(*args, **kwargs)Overloaded function. Attributes Documentation
-
columns
¶ a column view of the catalog
-
dtype
= 'Base'¶
-
schema
¶
-
table
¶
Methods Documentation
-
addNew
()¶
-
append
(record)¶
-
asAstropy
(cls=None, copy=False, unviewable='copy')¶ Return an astropy.table.Table (or subclass thereof) view into this catalog.
Parameters: - cls
Table subclass to use;
None
impliesastropy.table.Table
itself. Useastropy.table.QTable
to get Quantity columns.- copy : bool, optional
If
True
, copy data from the LSST catalog to the astropy table. Not copying is usually faster, but can keep memory from being freed if columns are later removed from the Astropy view.- unviewable :
str
, optional One of the following options (which is ignored if copy=`True` ), indicating how to handle field types (
str
andFlag
) for which views cannot be constructed:- ‘copy’ (default): copy only the unviewable fields.
- ‘raise’: raise ValueError if unviewable fields are present.
- ‘skip’: do not include unviewable fields in the Astropy Table.
Returns: - cls :
astropy.table.Table
Astropy view into the catalog.
Raises: - ValueError
Raised if the
unviewable
option is not a known value, or if the option is ‘raise’ and an uncopyable field is found.
-
between
(*args, **kwargs)¶ Overloaded function.
- between(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: int, arg2: lsst.afw.table.KeyI) -> slice
- between(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: int, arg2: lsst.afw.table.KeyL) -> slice
- between(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: float, arg2: lsst.afw.table.KeyF) -> slice
- between(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: float, arg2: lsst.afw.table.KeyD) -> slice
- between(self: lsst.afw.table.BaseCatalog, arg0: lsst.geom.Angle, arg1: lsst.geom.Angle, arg2: lsst.afw.table.KeyAngle) -> slice
-
capacity
(self: lsst.afw.table.BaseCatalog) → int¶
-
cast
(type_, deep=False)¶ Return a copy of the catalog with the given type.
Parameters: Returns: - copy :
Copy of catalog with the requested type.
-
clear
()¶
-
copy
(deep=False)¶ Copy a catalog (default is not a deep copy).
-
equal_range
(*args, **kwargs)¶ Overloaded function.
- equal_range(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: lsst.afw.table.KeyI) -> slice
- equal_range(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: lsst.afw.table.KeyL) -> slice
- equal_range(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: lsst.afw.table.KeyF) -> slice
- equal_range(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: lsst.afw.table.KeyD) -> slice
- equal_range(self: lsst.afw.table.BaseCatalog, arg0: lsst.geom.Angle, arg1: lsst.afw.table.KeyAngle) -> slice
-
extend
(iterable, deep=False, mapper=None)¶ Append all records in the given iterable to the catalog.
Parameters:
-
find
(*args, **kwargs)¶ Overloaded function.
- find(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: lsst.afw.table.KeyI) -> lsst.afw.table.BaseRecord
- find(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: lsst.afw.table.KeyL) -> lsst.afw.table.BaseRecord
- find(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: lsst.afw.table.KeyF) -> lsst.afw.table.BaseRecord
- find(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: lsst.afw.table.KeyD) -> lsst.afw.table.BaseRecord
- find(self: lsst.afw.table.BaseCatalog, arg0: lsst.geom.Angle, arg1: lsst.afw.table.KeyAngle) -> lsst.afw.table.BaseRecord
-
getColumnView
()¶
-
getSchema
(self: lsst.afw.table.BaseCatalog) → lsst.afw.table.Schema¶
-
getTable
(self: lsst.afw.table.BaseCatalog) → lsst.afw.table.BaseTable¶
-
insert
(key, value)¶
-
isContiguous
(self: lsst.afw.table.BaseCatalog) → bool¶
-
isSorted
(*args, **kwargs)¶ Overloaded function.
- isSorted(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyI) -> bool
- isSorted(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyL) -> bool
- isSorted(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyF) -> bool
- isSorted(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyD) -> bool
- isSorted(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyAngle) -> bool
-
lower_bound
(*args, **kwargs)¶ Overloaded function.
- lower_bound(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: lsst.afw.table.KeyI) -> int
- lower_bound(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: lsst.afw.table.KeyL) -> int
- lower_bound(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: lsst.afw.table.KeyF) -> int
- lower_bound(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: lsst.afw.table.KeyD) -> int
- lower_bound(self: lsst.afw.table.BaseCatalog, arg0: lsst.geom.Angle, arg1: lsst.afw.table.KeyAngle) -> int
-
static
readFits
(*args, **kwargs)¶ Overloaded function.
- readFits(filename: str, hdu: int = -2147483648, flags: int = 0) -> lsst.afw.table.BaseCatalog
- readFits(manager: lsst::afw::fits::MemFileManager, hdu: int = -2147483648, flags: int = 0) -> lsst.afw.table.BaseCatalog
-
reserve
(self: lsst.afw.table.BaseCatalog, arg0: int) → None¶
-
resize
(self: lsst.afw.table.BaseCatalog, arg0: int) → None¶
-
set
(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: lsst.afw.table.BaseRecord) → None¶
-
sort
(*args, **kwargs)¶ Overloaded function.
- sort(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyI) -> None
- sort(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyL) -> None
- sort(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyF) -> None
- sort(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyD) -> None
- sort(self: lsst.afw.table.BaseCatalog, arg0: lsst.afw.table.KeyAngle) -> None
-
subset
(*args, **kwargs)¶ Overloaded function.
- subset(self: lsst.afw.table.BaseCatalog, arg0: numpy.ndarray) -> lsst.afw.table.BaseCatalog
- subset(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: int, arg2: int) -> lsst.afw.table.BaseCatalog
-
upper_bound
(*args, **kwargs)¶ Overloaded function.
- upper_bound(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: lsst.afw.table.KeyI) -> int
- upper_bound(self: lsst.afw.table.BaseCatalog, arg0: int, arg1: lsst.afw.table.KeyL) -> int
- upper_bound(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: lsst.afw.table.KeyF) -> int
- upper_bound(self: lsst.afw.table.BaseCatalog, arg0: float, arg1: lsst.afw.table.KeyD) -> int
- upper_bound(self: lsst.afw.table.BaseCatalog, arg0: lsst.geom.Angle, arg1: lsst.afw.table.KeyAngle) -> int
-
writeFits
(*args, **kwargs)¶ Overloaded function.
- writeFits(self: lsst.afw.table.BaseCatalog, filename: str, mode: str = ‘w’, flags: int = 0) -> None
- writeFits(self: lsst.afw.table.BaseCatalog, manager: lsst::afw::fits::MemFileManager, mode: str = ‘w’, flags: int = 0) -> None
-