lsst.afw  14.0-34-g2d9284d60+1
Public Member Functions | Properties | List of all members
lsst.afw.table.base.baseContinued.Catalog Class Reference
Inheritance diagram for lsst.afw.table.base.baseContinued.Catalog:

Public Member Functions

def getColumnView (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def __delitem__ (self, key)
 
def append (self, record)
 
def insert (self, key, value)
 
def clear (self)
 
def addNew (self)
 
def cast (self, type_, deep=False)
 
def copy (self, deep=False)
 
def extend (self, iterable, deep=False, mapper=None)
 
def __reduce__ (self)
 
def asAstropy (self, cls=None, copy=False, unviewable="copy")
 Return an astropy.table.Table (or subclass thereof) view into this catalog. More...
 
def __dir__ (self)
 
def __getattr__ (self, name)
 
def __str__ (self)
 
def __repr__ (self)
 

Properties

 columns = property(__getColumns, doc="a column view of the catalog")
 

Detailed Description

Definition at line 103 of file baseContinued.py.

Member Function Documentation

◆ __delitem__()

def lsst.afw.table.base.baseContinued.Catalog.__delitem__ (   self,
  key 
)

Definition at line 162 of file baseContinued.py.

◆ __dir__()

def lsst.afw.table.base.baseContinued.Catalog.__dir__ (   self)
This custom dir is necessary due to the custom getattr below.
Without it, not all of the methods available are returned with dir.
See DM-7199

Definition at line 311 of file baseContinued.py.

◆ __getattr__()

def lsst.afw.table.base.baseContinued.Catalog.__getattr__ (   self,
  name 
)

Definition at line 331 of file baseContinued.py.

◆ __getitem__()

def lsst.afw.table.base.baseContinued.Catalog.__getitem__ (   self,
  key 
)
Return the record at index key if key is an integer,
return a column if key is a string field name or Key,
or return a subset of the catalog if key is a slice
or boolean NumPy array.

Definition at line 115 of file baseContinued.py.

◆ __reduce__()

def lsst.afw.table.base.baseContinued.Catalog.__reduce__ (   self)

Definition at line 233 of file baseContinued.py.

◆ __repr__()

def lsst.afw.table.base.baseContinued.Catalog.__repr__ (   self)

Definition at line 351 of file baseContinued.py.

◆ __setitem__()

def lsst.afw.table.base.baseContinued.Catalog.__setitem__ (   self,
  key,
  value 
)
If ``key`` is an integer, set ``catalog[key]`` to ``value``. Otherwise select column ``key``
and set it to ``value``.

Definition at line 151 of file baseContinued.py.

◆ __str__()

def lsst.afw.table.base.baseContinued.Catalog.__str__ (   self)

Definition at line 343 of file baseContinued.py.

◆ addNew()

def lsst.afw.table.base.baseContinued.Catalog.addNew (   self)

Definition at line 181 of file baseContinued.py.

◆ append()

def lsst.afw.table.base.baseContinued.Catalog.append (   self,
  record 
)

Definition at line 169 of file baseContinued.py.

◆ asAstropy()

def lsst.afw.table.base.baseContinued.Catalog.asAstropy (   self,
  cls = None,
  copy = False,
  unviewable = "copy" 
)

Return an astropy.table.Table (or subclass thereof) view into this catalog.

Parameters
[in]clsTable subclass to use; None implies astropy.table.Table itself. Use astropy.table.QTable to get Quantity columns.
[in]copyWhether to 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.
[in]unviewableOne of the following options, indicating how to handle field types (string and Flag) 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. This option is ignored if copy=True.

Definition at line 237 of file baseContinued.py.

◆ cast()

def lsst.afw.table.base.baseContinued.Catalog.cast (   self,
  type_,
  deep = False 
)
Return a copy of the catalog with the given type, optionally
cloning the table and deep-copying all records if deep==True.

Definition at line 185 of file baseContinued.py.

◆ clear()

def lsst.afw.table.base.baseContinued.Catalog.clear (   self)

Definition at line 177 of file baseContinued.py.

◆ copy()

def lsst.afw.table.base.baseContinued.Catalog.copy (   self,
  deep = False 
)
Copy a catalog (default is not a deep copy).

Definition at line 198 of file baseContinued.py.

◆ extend()

def lsst.afw.table.base.baseContinued.Catalog.extend (   self,
  iterable,
  deep = False,
  mapper = None 
)
Append all records in the given iterable to the catalog.

Arguments:
  iterable ------ any Python iterable containing records
  deep ---------- if True, the records will be deep-copied; ignored
          if mapper is not None (that always implies True).
  mapper -------- a SchemaMapper object used to translate records

Definition at line 204 of file baseContinued.py.

◆ getColumnView()

def lsst.afw.table.base.baseContinued.Catalog.getColumnView (   self)

Definition at line 105 of file baseContinued.py.

◆ insert()

def lsst.afw.table.base.baseContinued.Catalog.insert (   self,
  key,
  value 
)

Definition at line 173 of file baseContinued.py.

Property Documentation

◆ columns

lsst.afw.table.base.baseContinued.Catalog.columns = property(__getColumns, doc="a column view of the catalog")
static

Definition at line 113 of file baseContinued.py.


The documentation for this class was generated from the following file: