Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extrapolation of Extinction Curve #53

Open
karllark opened this issue Oct 10, 2017 · 1 comment
Open

Extrapolation of Extinction Curve #53

karllark opened this issue Oct 10, 2017 · 1 comment

Comments

@karllark
Copy link

Extrapolating the extinction curve may cause weird and interesting results.
For example, knowledge from dust grain modeling tells us that the extinction curve at wavelengths shorter than 912 A does not continue to rise, but peaks around 800 A and then drops. This is only an example.
Basically, it might be good to have checks on the wavelength range in the spectrum and raise an error if it is beyond the tabulated extinction curve wavelength range.

@pllim
Copy link
Collaborator

pllim commented Oct 12, 2017

Just for the record, currently the following snippet does not raise an error (but it should according to the spec above):

import pysynphot as S
import numpy as np

wave = np.arange(50, 80)
flux = np.ones_like(wave)
sp = S.ArraySpectrum(wave, flux)

ext = S.Extinction(0.1, 'mwavg')

sp2 = sp * ext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants