Sedterm#
- class lsst.fgcmcal.Sedterm(*args, **kw)#
Bases:
ConfigSED term for a single band.
The SED slope (in flux units) in the middle of a band is computed either as an “interpolated” or “extrapolated” computation. See Burke et al. 2018 Appendix A (https://ui.adsabs.harvard.edu/abs/2018AJ….155…41B).
For interpolation, with a secondary term:
F'_nu ~ constant * (primaryTerm + secondaryTerm) / 2.0
For interpolation, without a secondary term:
F'_nu ~ constant * primaryTerm
For extrapolation:
F'_nu ~ primaryTerm + constant * (((lambda_primaryBand - lambda_secondaryBand) / (lambda_primaryBand - lambda_tertiaryBand)) * (primaryTerm - secondaryTerm))
where primaryTerm and secondaryTerm are names from a
SedboundarytermDict, and primaryBand, secondaryBand, and tertiaryBand are band names.To construct a Sedterm, use keyword arguments:
Sedterm(primaryTerm=primaryTermName, secondaryTerm=secondaryTermName, extrapolated=False, constant=1.0)
or:
Sedterm(primaryTerm=primaryTermName, secondaryTerm=secondaryTermName, extrapolated=True, constant=1.0, primaryBand=primaryBandName, secondaryBand=secondaryBandName, tertiaryBand=tertiaryBandName)
This is a subclass of Config. This follows the form of
lsst.pipe.tasks.Colorterm.Attributes Summary
Adjustment constant for SED slope (
float, default1.0)Extrapolate to compute SED slope (
bool, defaultFalse)Primary band name for extrapolation (
str, defaultNone)Name of primary Sedboundaryterm (
str)Secondary band name for extrapolation (
str, defaultNone)Name of secondary Sedboundaryterm (
str, defaultNone)Tertiary band name for extrapolation (
str, defaultNone)Methods Summary
validate()Validate the Config, raising an exception if invalid.
Attributes Documentation
- constant#
Adjustment constant for SED slope (
float, default1.0)
- extrapolated#
Extrapolate to compute SED slope (
bool, defaultFalse)
- primaryBand#
Primary band name for extrapolation (
str, defaultNone)
- primaryTerm#
Name of primary Sedboundaryterm (
str)
- secondaryBand#
Secondary band name for extrapolation (
str, defaultNone)
- secondaryTerm#
Name of secondary Sedboundaryterm (
str, defaultNone)
- tertiaryBand#
Tertiary band name for extrapolation (
str, defaultNone)
Methods Documentation
- validate()#
Validate the Config, raising an exception if invalid.
Raises#
- lsst.pex.config.FieldValidationError
Raised if verification fails.
Notes#
The base class implementation performs type checks on all fields by calling their
validatemethods.Complex single-field validation can be defined by deriving new Field types. For convenience, some derived
lsst.pex.config.Field-types (ConfigFieldandConfigChoiceField) are defined inlsst.pex.configthat handle recursing into subconfigs.Inter-field relationships should only be checked in derived
Configclasses after calling this method, and base validation is complete.