DustGrains

class dgfit.dustgrains.DustGrains[source]

Bases: object

DustGrains Class

dust grain properties stored by dust size/composition

Attributes:
origin‘string’

Simple initialization allowing for multiple origins of data

Methods Summary

eff_grain_props(ObsData[, predict_all])

Calculate the grain properties integrated over the size distribution for a single grain composition.

from_files(componentname[, path, every_nth])

Read in precomputed dust grain information from files.

from_object(DustGrain, ObsData)

Setup a new DustGrains object on the ObsData object wavelength grids using an existing DustGrain object for the dust grain information.

Methods Documentation

eff_grain_props(ObsData, predict_all=False)[source]

Calculate the grain properties integrated over the size distribution for a single grain composition.

Returns:
A dictionary of:
C(abs)‘numpy.ndarray’ named ‘cabs’

Absorption cross section

C(sca)‘numpy.ndarray’ named ‘csca’

Scattering cross section

Abundances(‘list’, ‘numpy.ndarray’) named ‘natoms’

Tuple with (atomic elements, # per/10^6 H atoms

Emission‘numpy.ndarray’ named ‘emission’

IR emission

albedo‘numpy.ndarray’ named ‘albedo’

Dust scattering albedo [Albedo C(sca)/Albedo C(ext)]

g‘numpy.ndarray’ named ‘g’

Dust scattering phase function assymetry [g = <cos theta>]

Albedo C(ext)‘numpy.ndarray’ named ‘scat_a_cext’

Extinction cross section on the albedo wavelength grid (needed for combining with other dust grain compositions)

Albedo C(sca)‘numpy.ndarray’ named ‘scat_a_csca’

Scattering cross section on the albedo wavelength grid (needed for combining with other dust grain compositions)

G C(sca)‘numpy.ndarray’ named ‘scat_g_csca’

Scattering cross section on the g wavelength grid (needed for combining with other dust grain compositions)

from_files(componentname, path='./', every_nth=5)[source]

Read in precomputed dust grain information from files.

Parameters:
componentname‘string’

Name that givesn the dust composition [astro-silicates, astro-carbonacenous, astro-graphite]

path‘string’

Path to the location of the dust grain files

every_nthint

Only use every nth size, faster fitting

from_object(DustGrain, ObsData)[source]

Setup a new DustGrains object on the ObsData object wavelength grids using an existing DustGrain object for the dust grain information. Currently the information is interpolated to the new wavelength grids.

In the future, this should be enhanced to integrate across filter bandpasses for the data derived in filters.

Parameters:
DustGrainDustGrains object

usually read from the files with the from_files function

ObsData: ObsData object

contains all the observed data to be fit