astropy-tutorials icon indicating copy to clipboard operation
astropy-tutorials copied to clipboard

Dust Extinction Tutorial: unextinguish a spectrum

Open karllark opened this issue 7 years ago • 3 comments

Show how to use the dust_extinction package to unextinguish (deredden) a spectrum.

Use observed ultraviolet spectra from a FITS binary table file -> use astropy.io.fits. Include photometry from Simbad (optical/NIR) -> use astroquery Convert photometry from magnitudes to fluxes -> use astropy.units Unextinguish the spectrum using a dust extinction model -> use dust_extinction package Make a plot of the original and unextinguished spectrum -> use matplotlib Write the unextinguished spectrum to a FITS binary table file -> use astropy.io.fits.

Mention that one of the goals of the the dust_extinction package is to provide the equivalent of the IDL ccm_unred.pro and fm_unred.pro.

Possible bonus content. Extinguish a model spectrum to predict and show the impact of dust extinction. Could also include the non-linear impact of increasing extinction on broad band photometry. Would need a stellar atmosphere model spectrum. Could be a 2nd tutorial or a part of this one. Advice needed.

karllark avatar May 01 '18 18:05 karllark

This is a great idea! Looking forward to the first draft. :)

Please take a look at the Contributing doc to help plan the tutorial.

I would start small and then let's discuss the 'bonus content' once you have the meat put together.

kelle avatar May 01 '18 18:05 kelle

I've been working on this. Thanks to @emirkmo for getting this tutorial started, and to @karllark and @pllim for checking over my use of their packages.

There's lot more to be done, but here is a start. If you are logged into a google account and open the file with colaboratory, you can click comment in the upper right or in any cell to add a comment: https://drive.google.com/file/d/1zMgoGHMsWDnGLD-wtHUJheCNb2yDbqeh/view?usp=sharing

Here is a gist for just a quick look: https://gist.github.com/krislars/44a203ff867f1578cc2248e4f890fa16

krislars avatar Jun 04 '18 20:06 krislars

Hi @krislars , would you mind moving your notebook to our new Astropy Learn Draft Tutorials folder on google drive? https://drive.google.com/drive/folders/1k1HnAss-pHTA3E5s9jB1OMphpBjQ-U7l That should make it way easier for us to work collaboratively. I've sent an invite to your edu address.

kelle avatar Oct 02 '18 15:10 kelle