35#include "boost/format.hpp"
51 if (properties->isArray(
"sliceId")) {
54 int sliceId = properties->getAsInt(
"sliceId");
58 if (properties->exists(
"universeSize") && !properties->isArray(
"universeSize")) {
59 int universeSize = properties->getAsInt(
"universeSize");
60 if (sliceId >= universeSize) {
68 if (properties->isArray(
"visitId")) {
71 int visitId = properties->getAsInt(
"visitId");
79 if (properties->isArray(
"fpaExposureId")) {
82 int64_t fpaExposureId = properties->getAsInt64(
"fpaExposureId");
83 if (fpaExposureId < 0) {
86 if ((fpaExposureId & 0xfffffffe00000000LL) != 0LL) {
93 if (properties->isArray(
"ccdId")) {
96 int ccdId = properties->getAsInt(
"ccdId");
103 return static_cast<int>(ccdId);
107 if (properties->isArray(
"ampId")) {
110 int ampId = properties->getAsInt(
"ampId");
121 if (properties->isArray(
"ccdExposureId")) {
124 int64_t ccdExposureId = properties->getAsInt64(
"ccdExposureId");
125 if (ccdExposureId < 0) {
128 return ccdExposureId;
132 if (properties->isArray(
"ampExposureId")) {
135 int64_t ampExposureId = properties->getAsInt64(
"ampExposureId");
136 if (ampExposureId < 0) {
139 return ampExposureId;
146 if (properties->isArray(
"itemName")) {
149 return properties->getAsString(
"itemName");
153 if (properties && properties->exists(
name)) {
154 return properties->getAsBool(
name);
164 auto shape = ndarray::makeVector(nbytes);
165 auto strides = ndarray::makeVector(1);
168 ndarray::Array<std::uint8_t const, 1, 1> localArray = ndarray::external(byteCArr, shape, strides);
169 return ndarray::copy(localArray);
174 char const* charCArr =
reinterpret_cast<char const*
>(
bytes.getData());
table::Key< std::string > name
#define LSST_EXCEPT(type,...)
std::vector< std::string > paramNames(bool topLevelOnly=true) const
A base class for image defects.
table::Key< table::Array< std::uint8_t > > bytes