Skip to content

Commit

Permalink
color-excess: update synphot call
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Jan 22, 2025
1 parent a688a94 commit 0724819
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tutorials/color-excess/color-excess.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"from astropy.table import Table\n",
"from dust_extinction.parameter_averages import CCM89, F99\n",
"from synphot import units, config\n",
"from synphot import SourceSpectrum,SpectralElement,Observation,ExtinctionModel1D\n",
"from synphot import SourceSpectrum,SpectralElement,Observation,ReddeningLaw\n",
"from synphot.models import BlackBodyNorm1D\n",
"from synphot.spectrum import BaseUnitlessSpectrum\n",
"from synphot.reddening import ExtinctionCurve\n",
Expand Down Expand Up @@ -540,8 +540,7 @@
"wav = np.arange(0.1, 3, 0.001)*u.micron\n",
"\n",
"# Make the extinction model in synphot using a lookup table.\n",
"ex = ExtinctionCurve(ExtinctionModel1D, \n",
" points=wav, lookup_table=ext.extinguish(wav, Av=Av))\n",
"ex = ReddeningLaw(ext).extinction_curve(Av / ext.Rv, wavelengths=wav)\n",
"sp_ext = sp_norm*ex\n",
"sp_ext.plot(left=1, right=15000, flux_unit='flam',\n",
" title='Normed Blackbody with Extinction')"
Expand Down

0 comments on commit 0724819

Please sign in to comment.