GalacticExtinction¶
- class eazy.utils.GalacticExtinction(EBV=0, Rv=3.1, force=None, radec=None, ebv_type='SandF')[source]¶
Bases:
objectWrapper to use either
specutils.extinctionor theextinctionmodules, which have different calling formats. The results from both of these modules should be equivalent.- Parameters:
- EBVfloat
Galactic reddening, e.g., from
https://irsa.ipac.caltech.edu/applications/DUST/.- Rvfloat
Selective extinction ratio,
Rv=Av/(E(B-V)).- radecNone or (float, float)
If provided, try to determine EBV based on these coordinates with
get_irsa_dust(type=[ebv_type])ordustmaps.- forceNone, ‘extinction’, ‘specutils.extinction’
Force use one or the other modules. If
None, then first try to importspecutils.extinctionand if that fails useextinction.
Attributes Summary
Methods Summary
__call__(wave)Compute Fitzpatrick99 extinction.
Attributes Documentation
- Av¶
- info¶
Methods Documentation
- __call__(wave)[source]¶
Compute Fitzpatrick99 extinction.
- Parameters:
- wavefloat or
numpy.ndarray Observed-frame wavelengths. If no
unitattribute available, assume units areastropy.units.Angstrom.
- wavefloat or
- Returns:
- Alambdalike
wave F99 extinction (mags) as a function of wavelength. Output will be set to zero below 909 Angstroms and above 6 microns as the extinction modules themselves don’t compute outside that range.
- Alambdalike