Skip to content

Commit

Permalink
Updates to prepare for the initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Nov 9, 2017
1 parent 5057c21 commit 49bbde3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
@@ -0,0 +1,4 @@
0.5 (unreleased)
================

- initial release
5 changes: 3 additions & 2 deletions docs/dust_extinction/extinguish.rst
Expand Up @@ -7,8 +7,9 @@ factor to multiple (extinguish) or divide (unextinguish) a spectrum by
to add or remove the effects of dust, respectively.

Extinguish is also often called reddening. Extinguishing a spectrum often
reddens the flux, but not always (e.g, on the short wavelength side of the
2175 A bump. So extinguish is the more generic term.
reddens the flux, but sometimes 'bluens' the flux
(e.g, on the short wavelength side of the 2175 A bump).
So extinguish is the more generic term.

Example: Extinguish a Blackbody
===============================
Expand Down
10 changes: 8 additions & 2 deletions docs/dust_extinction/model_flavors.rst
Expand Up @@ -10,6 +10,8 @@ Average models

These models provide averages from the literature with the ability to
interpolate between the observed data points.
For the Milky Way, one of the R(V) dependent models with R(V) = 3.1
(see next section) are often used for the Milky Way 'average'.
Models are provided for the Magellanic Clouds from Gordon et al. (2003).
Models for the Milky Way still to be added (both UV/optical/NIR and IR).

Expand All @@ -19,15 +21,19 @@ Average models
import matplotlib.pyplot as plt
import astropy.units as u

from dust_extinction.dust_extinction import (G03_SMCBar,
from dust_extinction.dust_extinction import (F99,
G03_SMCBar,
G03_LMCAvg,
G03_LMC2)

fig, ax = plt.subplots()

# generate the curves and plot them
x = np.arange(0.3,10.0,0.1)/u.micron


ext_model = F99()
ax.plot(x,ext_model(x),label='MW Average (F99 w/ $R(V)=3.1$)')

ext_model = G03_SMCBar()
ax.plot(x,ext_model(x),label='G03 SMCBar')

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -48,7 +48,7 @@ edit_on_github = False
github_project = astropy/astropy
install_requires = astropy scipy
# version should be PEP440 compatible (http://www.python.org/dev/peps/pep-0440)
version = 0.1.dev
version = 0.5.dev

[entry_points]
astropy-package-template-example = packagename.example_mod:main

0 comments on commit 49bbde3

Please sign in to comment.