astropy / astropy-tutorials

Tutorials for the Astropy Project
BSD 3-Clause "New" or "Revised" License
290 stars 174 forks source link

Dust Extinction Tutorial: unextinguish a spectrum #222

Open karllark opened 6 years ago

karllark commented 6 years ago

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.

kelle commented 6 years ago

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.

krislars commented 6 years ago

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

kelle commented 5 years ago

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.