SimpleRecord

class lsst.afw.table.SimpleRecord

Bases: lsst.afw.table.BaseRecord

Attributes Summary

schema
table

Methods Summary

assign(*args, **kwargs) Overloaded function.
extract(*patterns, **kwds) Extract a dictionary of {<name>: <field-value>} in which the field names match the given shell-style glob pattern(s).
get(self, arg0)
getAngle(self, arg0)
getArrayB(self, arg0)
getArrayD(self, arg0)
getArrayF(self, arg0)
getArrayI(self, arg0)
getArrayU(self, arg0)
getB(self, arg0)
getCoord(self)
getD(self, arg0)
getDec(self)
getF(self, arg0)
getFlag(self, arg0)
getI(self, arg0)
getId(self)
getL(self, arg0)
getRa(self)
getSchema(self)
getString(self, arg0)
getTable(self)
getU(self, arg0)
set(self, arg0, arg1)
setAngle(self, arg0, arg1)
setArrayB(self, arg0, arg1)
setArrayD(self, arg0, arg1)
setArrayF(self, arg0, arg1)
setArrayI(self, arg0, arg1)
setArrayU(self, arg0, arg1)
setB(self, arg0, arg1)
setCoord(self, arg0)
setD(self, arg0, arg1)
setDec(self, arg0)
setF(self, arg0, arg1)
setFlag(self, arg0, arg1)
setI(self, arg0, arg1)
setId(self, arg0)
setL(self, arg0, arg1)
setRa(self, arg0)
setString(self, arg0, arg1)
setU(self, arg0, arg1)

Attributes Documentation

schema
table

Methods Documentation

assign(*args, **kwargs)

Overloaded function.

  1. assign(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.BaseRecord) -> None
  2. assign(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.BaseRecord, arg1: lsst.afw.table.SchemaMapper) -> None
extract(*patterns, **kwds)

Extract a dictionary of {<name>: <field-value>} in which the field names match the given shell-style glob pattern(s).

Any number of glob patterns may be passed; the result will be the union of all the result of each glob considered separately.

Parameters:
items : dict

The result of a call to self.schema.extract(); this will be used instead of doing any new matching, and allows the pattern matching to be reused to extract values from multiple records. This keyword is incompatible with any position arguments and the regex, sub, and ordered keyword arguments.

split : bool

If True, fields with named subfields (e.g. points) will be split into separate items in the dict; instead of {“point”: lsst.geom.Point2I(2,3)}, for instance, you’d get {“point.x”: 2, “point.y”: 3}. Default is False.

regex : str or re pattern object

A regular expression to be used in addition to any glob patterns passed as positional arguments. Note that this will be compared with re.match, not re.search.

sub : str

A replacement string (see re.MatchObject.expand) used to set the dictionary keys of any fields matched by regex.

ordered : bool

If True, a collections.OrderedDict will be returned instead of a standard dict, with the order corresponding to the definition order of the Schema. Default is False.

get(self: object, arg0: object) → object
getAngle(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyAngle) → lsst.geom.Angle
getArrayB(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayB) → ndarray::Array<unsigned char, 1, 1>
getArrayD(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayD) → ndarray::Array<double, 1, 1>
getArrayF(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayF) → ndarray::Array<float, 1, 1>
getArrayI(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayI) → ndarray::Array<int, 1, 1>
getArrayU(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayU) → ndarray::Array<unsigned short, 1, 1>
getB(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyB) → int
getCoord(self: lsst.afw.table.SimpleRecord) → lsst.geom.SpherePoint
getD(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyD) → float
getDec(self: lsst.afw.table.SimpleRecord) → lsst.geom.Angle
getF(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyF) → float
getFlag(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyFlag) → bool
getI(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyI) → int
getId(self: lsst.afw.table.SimpleRecord) → int
getL(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyL) → int
getRa(self: lsst.afw.table.SimpleRecord) → lsst.geom.Angle
getSchema(self: lsst.afw.table.BaseRecord) → lsst.afw.table.Schema
getString(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyString) → str
getTable(self: lsst.afw.table.SimpleRecord) → lsst.afw.table.SimpleTable
getU(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyU) → int
set(self: object, arg0: object, arg1: object) → None
setAngle(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyAngle, arg1: lsst.geom.Angle) → None
setArrayB(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayB, arg1: object) → None
setArrayD(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayD, arg1: object) → None
setArrayF(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayF, arg1: object) → None
setArrayI(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayI, arg1: object) → None
setArrayU(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyArrayU, arg1: object) → None
setB(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyB, arg1: int) → None
setCoord(self: lsst.afw.table.SimpleRecord, arg0: lsst.geom.SpherePoint) → None
setD(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyD, arg1: float) → None
setDec(self: lsst.afw.table.SimpleRecord, arg0: lsst.geom.Angle) → None
setF(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyF, arg1: float) → None
setFlag(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyFlag, arg1: bool) → None
setI(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyI, arg1: int) → None
setId(self: lsst.afw.table.SimpleRecord, arg0: int) → None
setL(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyL, arg1: int) → None
setRa(self: lsst.afw.table.SimpleRecord, arg0: lsst.geom.Angle) → None
setString(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyString, arg1: str) → None
setU(self: lsst.afw.table.BaseRecord, arg0: lsst.afw.table.KeyU, arg1: int) → None