File BaseColumnView.h¶
-
namespace
lsst
Class for a simple mapping implementing a generic AstrometryTransform.
Remove all non-astronomical counts from the Chunk Exposure’s pixels.
Forward declarations for lsst::utils::Cache
For details on the Cache class, see the Cache.h file.
It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.
A base class for image defects
Numeric constants used by the Integrate.h integrator routines.
Compute Image Statistics
- Note
Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.
- Note
The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.
-
namespace
afw
-
namespace
table
-
class
BaseColumnView
- #include <BaseColumnView.h>
Column-wise view into a sequence of records that have been allocated contiguously.
A BaseColumnView can be created from any iterator range that dereferences to records, as long as those records’ field data is contiguous in memory. In practice, that means they must have been created from the same table, and be in the same order they were created (with no deletions). It also requires that those records be allocated in the same block, which can be guaranteed with BaseTable::preallocate().
Geometric (point and shape) fields cannot be accessed through a BaseColumnView, but their scalar components can be.
BaseColumnView and its subclasses are always non-const views into a catalog, and so cannot be obtained from a catalog-of-const (trying this results in an exception, not a compilation error). As a result, all its accessors return arrays of non-const elements, even though they are themselves const member functions. This is no different from a shared_ptr<T>’s get() member function returning a non-const T*, even though get() is a const member function.
Subclassed by lsst::afw::table::ColumnViewT< RecordT >
Public Functions
-
Schema
getSchema
() const Return the schema that defines the fields.
-
template<typename
T
>
ndarray::ArrayRef<T, 1> constoperator[]
(Key<T> const &key) const Return a 1-d array corresponding to a scalar field (or subfield).
-
template<typename
T
>
ndarray::ArrayRef<T, 2, 1> constoperator[]
(Key<Array<T>> const &key) const Return a 2-d array corresponding to an array field.
-
ndarray::result_of::vectorize<detail::FlagExtractor, ndarray::Array<Field<Flag>::Element const, 1>>::type
operator[]
(Key<Flag> const &key) const Return a 1-d array expression corresponding to a flag bit.
In C++, the return value is a lazy ndarray expression template that performs the bitwise & operation on every element when that element is requested. In Python, the result will be copied into a bool NumPy array.
-
BitsColumn
getBits
(std::vector<Key<Flag>> const &keys) const Return an integer array with the given Flag fields repacked into individual bits.
The returned object contains both the int64 array and accessors to obtain a mask given a Key or field name.
- Exceptions
pex::exceptions::LengthError
: if keys.size() > 64
-
BitsColumn
getAllBits
() const Return an integer array with all Flag fields repacked into individual bits.
The returned object contains both the int64 array and accessors to obtain a mask given a Key or field name.
- Exceptions
pex::exceptions::LengthError
: if the schema has more than 64 Flag fields.
-
BaseColumnView
(BaseColumnView const&)
-
BaseColumnView
(BaseColumnView&&)
-
BaseColumnView &
operator=
(BaseColumnView const&)
-
BaseColumnView &
operator=
(BaseColumnView&&)
-
~BaseColumnView
()
Public Static Functions
Construct a BaseColumnView from an iterator range.
The iterators must dereference to a reference or const reference to a record. If the record data is not contiguous in memory, throws lsst::pex::exceptions::RuntimeError.
Return true if the given record iterator range is continuous and the records all belong to the given table.
This tests exactly the same requiremetns needed to construct a column view, so if this test succeeds, BaseColumnView::make should as well.
Protected Functions
Friends
-
friend
lsst::afw::table::BaseTable
-
Schema
-
class
BitsColumn
- #include <BaseColumnView.h>
A packed representation of a collection of Flag field columns.
The packing of bits here is not necessarily the same as the packing using in the actual table, as the latter may contain more than 64 bits spread across multiple integers.
A BitsColumn can only be constructed by calling BaseColumnView::getBits().
Public Types
-
typedef std::int64_t
IntT
Public Functions
-
ndarray::Array<IntT, 1, 1>
getArray
() const
-
std::vector<SchemaItem<Flag>> const &
getSchemaItems
() const
Private Functions
-
BitsColumn
(int size)¶
Friends
-
friend
lsst::afw::table::BaseColumnView
-
typedef std::int64_t
-
template<typename
RecordT
>
classColumnViewT
: public lsst::afw::table::BaseColumnView Subclassed by lsst::afw::table::SourceColumnViewT< RecordT >
Public Types
-
typedef RecordT
Record
-
typedef RecordT::Table
Table
Public Functions
-
ColumnViewT
(ColumnViewT const&)
-
ColumnViewT
(ColumnViewT&&)
-
ColumnViewT &
operator=
(ColumnViewT const&)
-
ColumnViewT &
operator=
(ColumnViewT&&)
-
~ColumnViewT
()
Public Static Functions
Construct a BaseColumnView from an iterator range.
The iterators must dereference to a reference or const reference to a record. If the record data is not contiguous in memory, throws lsst::pex::exceptions::RuntimeError.
Protected Functions
-
ColumnViewT
(BaseColumnView const &base)
-
typedef RecordT
-
namespace
detail
-
struct
FlagExtractor
¶ - #include <BaseColumnView.h>
Functor to compute a flag bit, used to create an ndarray expression template for flag columns.
Public Functions
-
result_type
operator()
(argument_type element) const¶
Private Members
-
argument_type
_mask
¶
-
result_type
-
struct
-
class
-
namespace