P24

class dust_extinction.grain_models.P24(modelname='KP5', **kwargs)[source]

Bases: BaseExtGrainModel

Pontoppidan et al. (2024) protostellar envelope extinction curve

Parameters:

None

Raises:

None

Notes

From Pontoppidan et al. (2024, RNAAS, 8, 68)

Example showing the average curve

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

from dust_extinction.grain_models import P24

fig, ax = plt.subplots()

# define the extinction model
ext_model = P24()

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

ax.plot(x,ext_model(x),label='P24')

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-grain_models-P24-1.png

Attributes Summary

Rv

possnames

x_range

Attributes Documentation

Rv = 3.1
possnames = {'KP5': ('p24.dat', 3.1)}
x_range = [0.0005, 10.1010101010101]