Skip to content

Commit

Permalink
Merge c862240 into 3ce49f0
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Mar 15, 2021
2 parents 3ce49f0 + c862240 commit 4b8d4b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions py/desiutil/dust.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,19 @@ def mwdust_transmission(ebv, band, photsys):

return transmission

def convert_sfd_ebv_to_true_ebv(ebv):
"""
Apply the correction from Schlafly+2010
https://ui.adsabs.harvard.edu/abs/2010ApJ...725.1175S/abstract
to the input SFD E(B-V)'s
to convert them into 'correct' E(B-V)'s that don't need additional
scaling. This function is here to avoid hardcoding the 0.86 factor
in some functions that expect 'true' E(B-V)s and be more explicit
about the conversion.
"""
return 0.86 * ebv


def ext_odonnell(wave, Rv=3.1):
"""Return extinction curve from Odonnell (1994), defined in the wavelength
range [3030,9091] Angstroms. Outside this range, use CCM (1989).
Expand Down

0 comments on commit 4b8d4b9

Please sign in to comment.