High-level concept
Enable arithmetic with SpectralSource.
Proposal detailssynphotSpectralSources can be added together to form a new source, or scaled. sbpy's SpectralSource is based on synphot and should do the same. This would allow, e.g., creating a combined spectrum of reflected sunlight + blackbody thermal emission.
This is a request for
The requested changes will be implemented by
High-level concept Enable arithmetic with
SpectralSource
.Proposal details
synphot
SpectralSource
s can be added together to form a new source, or scaled.sbpy
'sSpectralSource
is based onsynphot
and should do the same. This would allow, e.g., creating a combined spectrum of reflected sunlight + blackbody thermal emission.Example (pseudo-)code