I've been thinking about the issue of extinction for chromatic objects. For example, for photo-z tests or whatever you might want to be able to draw an image through various bandpasses and also allow for a different extinction law and extinction zero-point.
I thought of a few options and am curious for opinions on what makes the most sense (pinging @jmeyers314 @barnabytprowe @rmjarvis ):
- Make a method of the SED class called something like
withExtinction that will create a new SED object from another one, with an extinction law applied (as specified via kwargs),
extincted_sed = sed.withExtinction(...)
- Make some kwargs for the
ChromaticObject.drawImage() method that applies the extinction at the time of drawing, without requiring a new SED to be created.
I can see a use for both of these. The first could be useful if you anticipate re-using the object with extinction and don't want to have to do the calculations each time you draw, but the second could be useful if you only plan to use the object once.
Any thoughts? Any interest? :)
I've been thinking about the issue of extinction for chromatic objects. For example, for photo-z tests or whatever you might want to be able to draw an image through various bandpasses and also allow for a different extinction law and extinction zero-point.
I thought of a few options and am curious for opinions on what makes the most sense (pinging @jmeyers314 @barnabytprowe @rmjarvis ):
withExtinctionthat will create a new SED object from another one, with an extinction law applied (as specified via kwargs),ChromaticObject.drawImage()method that applies the extinction at the time of drawing, without requiring a new SED to be created.I can see a use for both of these. The first could be useful if you anticipate re-using the object with extinction and don't want to have to do the calculations each time you draw, but the second could be useful if you only plan to use the object once.
Any thoughts? Any interest? :)