From 0fe416a4997342003a22a6f05e3c971276c04836 Mon Sep 17 00:00:00 2001 From: Karl Gordon Date: Sun, 24 Nov 2024 09:24:44 -0500 Subject: [PATCH] switching model data to use FM90_B3 --- measure_extinction/modeldata.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/measure_extinction/modeldata.py b/measure_extinction/modeldata.py index b2a1483..c7495f2 100644 --- a/measure_extinction/modeldata.py +++ b/measure_extinction/modeldata.py @@ -216,7 +216,7 @@ def dust_extinguished_sed(self, params, sed, fit_range="all", velocity=0.0): Parameters ---------- params : float array - dust extinction parameters [Av, Rv, c2, c3, c4, gamma, x0] + dust extinction parameters [Av, Rv, c2, b3, c4, gamma, x0] sed : dict fluxes for each spectral piece @@ -259,7 +259,7 @@ def dust_extinguished_sed(self, params, sed, fit_range="all", velocity=0.0): Rv, C1, params[2], # C2 - params[3], # C3 + params[3], # B3 params[4], # C4 xo=params[5], # xo gamma=params[6], # gamma @@ -267,6 +267,7 @@ def dust_extinguished_sed(self, params, sed, fit_range="all", velocity=0.0): optnir_axav_y=optnir_axav_y, valid_x_range=[0.033, 11.0], model_name="FM90_G23_measure_extinction", + fm90_version="B3", ) ext_sed[cspec] = sed[cspec] * (10 ** (-0.4 * axav * params[0]))