32 #ifndef LSST_AFW_IMAGE_FILTER_H 33 #define LSST_AFW_IMAGE_FILTER_H 37 #include <unordered_map> 59 double lambdaMin=NAN,
double lambdaMax=NAN,
bool force =
false)
60 : _name(name), _lambdaEff(lambdaEff), _lambdaMin(lambdaMin), _lambdaMax(lambdaMax) {
114 return !(*
this == rhs);
119 static void reset() { _initRegistry(); }
134 static void _initRegistry();
140 void _insert(
bool force =
false);
147 static PropertyMap* _propertyMap;
162 bool const force =
false 164 : _id(_lookup(name, force)), _name(name) {}
170 : _id(id), _name(_lookup(id)) {}
219 static void reset() { _initRegistry(); }
227 static int define(
FilterProperty const& filterProperty,
int id = AUTO,
bool force =
false);
250 static void _initRegistry();
267 static AliasMap* _aliasMap;
268 static IdMap* _idMap;
269 static NameMap* _nameMap;
285 #endif // LSST_AFW_IMAGE_FILTER_H std::string const & getCanonicalName() const
Return a filter's canonical name.
static void reset()
Clear all definitions.
bool operator!=(Filter const &rhs) const
int getId() const
Return a Filter's integral id.
bool operator==(CoordKey const &lhs, CoordKey const &rhs)
Compare CoordKeys for equality using the constituent Keys.
int stripFilterKeywords(std::shared_ptr< lsst::daf::base::PropertySet > metadata)
Remove Filter-related keywords from the metadata.
double getLambdaMax() const
Return the filter's maximum wavelength (nm) where the transmission is above 1% of the maximum...
double getLambdaEff() const
Return the filter's effective wavelength (nm)
A base class for image defects.
std::string const & getName() const
Return a filter's name.
double getLambdaMin() const
Return the filter's minimum wavelength (nm) where the transmission is above 1% of the maximum...
Holds an integer identifier for an LSST filter.
std::string const & getName() const
Return a Filter's name.
bool operator!=(FilterProperty const &rhs) const
Return true iff rhs != this.
Filter(int id=UNKNOWN)
Creates a Filter with the given identifier.
Filter(std::string const &name, bool const force=false)
Creates a Filter with the given name.
Describe the properties of a Filter (e.g.
FilterProperty(std::string const &name, double lambdaEff, double lambdaMin=NAN, double lambdaMax=NAN, bool force=false)
static void reset()
Clear all definitions.