Skip to content

Extinction for chromatic objects #541

Description

@rmandelb

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 ):

  1. 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(...)
  1. 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? :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    chromaticRelated to the Chromatic classes, SEDs, bandpasses, etc.descOf possible interest to LSST DESC members looking for a projectfeature requestRequest for a new feature in GalSimstarter projectsPossibly a good choice for someone looking to get started on GalSim development

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions