lsst.afw  13.0-91-g2a3e2ee
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 
def __getitem__
 
def __setitem__
 
def __delitem__
 
def append
 
def insert
 
def clear
 
def addNew
 
def cast
 
def copy
 
def extend
 
def __reduce__
 
def asAstropy
 Return an astropy.table.Table (or subclass thereof) view into this catalog. More...
 
def __dir__
 
def __getattr__
 
def __str__
 
def __repr__
 

Properties

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

Detailed Description

Definition at line 100 of file baseContinued.py.

Member Function Documentation

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

Definition at line 150 of file baseContinued.py.

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 299 of file baseContinued.py.

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

Definition at line 319 of file baseContinued.py.

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 112 of file baseContinued.py.

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

Definition at line 221 of file baseContinued.py.

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

Definition at line 339 of file baseContinued.py.

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 137 of file baseContinued.py.

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

Definition at line 331 of file baseContinued.py.

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

Definition at line 169 of file baseContinued.py.

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

Definition at line 157 of file baseContinued.py.

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 225 of file baseContinued.py.

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 173 of file baseContinued.py.

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

Definition at line 165 of file baseContinued.py.

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

Definition at line 186 of file baseContinued.py.

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 192 of file baseContinued.py.

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

Definition at line 102 of file baseContinued.py.

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

Definition at line 161 of file baseContinued.py.

Property Documentation

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

Definition at line 110 of file baseContinued.py.


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