CT06_MWLoc

class dust_extinction.averages.CT06_MWLoc(**kwargs)[source]

Bases: BaseExtModel

Chiar & Tielens (2006) MW Local ISM Curve

Parameters:
None
Raises:
None

Notes

From Chiar & Tielens (2006, ApJ, 637 774)

Example showing the average curve

import numpy as np
import matplotlib.pyplot as plt
import astropy.units as u

from dust_extinction.averages import CT06_MWLoc

fig, ax = plt.subplots()

# define the extinction model
ext_model = CT06_MWLoc()

# generate the curves and plot them
x = np.arange(1.0/ext_model.x_range[1], 1.0/ext_model.x_range[0], 0.1) * u.micron

ax.plot(x,ext_model(x),label='CT06_MWLoc')
ax.plot(1.0/ext_model.obsdata_x, ext_model.obsdata_axav, 'ko',
        label='obsdata')

ax.set_xlabel(r'$\lambda$ [$\mu m$]')
ax.set_ylabel(r'$A(x)/A(V)$')

ax.legend(loc='best')
plt.show()

(Source code, png, hires.png, pdf)

../_images/dust_extinction-averages-CT06_MWLoc-1.png

Attributes Summary

Rv

x_range

Methods Summary

evaluate(x)

CG06 MWLoc function

Attributes Documentation

Rv = 3.1
x_range = [0.037037037037037035, 0.8064516129032259]

Methods Documentation

evaluate(x)[source]

CG06 MWLoc function

Parameters:
x: float

expects either x in units of wavelengths or frequency or assumes wavelengths in wavenumbers [1/micron]

internally wavenumbers are used

Returns:
axav: np array (float)

A(x)/A(V) extinction curve [mag]

Raises:
ValueError

Input x values outside of defined range