Guide to estimate SED errors

from astropy import units as u
import numpy as np
import sed_analysis_tools as st
import warnings
warnings.filterwarnings("ignore")

ADVANCED: Using filter transmission

  • Uses the filter transmission to perform synthetic photometry

  • ~1000 times slower than the infinitesimally narrow band approch with similar results (due to on-the-fly filter-spectrum convolution)

import warnings

warnings.filterwarnings("ignore")

list_filter_names = [
    "Astrosat/UVIT.F148W",
    "Astrosat/UVIT.F154W",
    "Astrosat/UVIT.F169M",
    "GALEX/GALEX.NUV",
    "KPNO/Mosaic.B",
    "GAIA/GAIA3.Gbp",
    "KPNO/Mosaic.V",
    "GAIA/GAIA3.G",
    "GAIA/GAIA3.Grp",
    "KPNO/Mosaic.I",
    "GAIA/GAIA3.Grvs",
    "2MASS/2MASS.J",
    "2MASS/2MASS.H",
    "2MASS/2MASS.Ks",
    "WISE/WISE.W1",
    "WISE/WISE.W2",
    "WISE/WISE.W3",
]
filter_set_2 = st.FilterSet(list_filter_names=list_filter_names)
frac_err = [
    0.05341997,
    0.05986721,
    0.05341997,
    0.02632069,
    0.06585393,
    0.00377348,
    0.06585393,
    0.00276771,
    0.00400373,
    0.06585393,
    0.00806181,
    0.02026275,
    0.01842068,
    0.01657861,
    0.01934171,
    0.01657861,
    0.03499929,
]
WOCS2002 = st.Binary(
    T_A=5250 * u.K,
    L_A=18 * u.solLum,
    T_B=14750 * u.K,
    L_B=0.0930 * u.solLum,
    frac_err=frac_err,
    seed=2,
    D=10 * u.pc,
    filter_set=filter_set_2,
    name="WOCS2002_with_filter_transmission",
)
WOCS2002.estimate_errors(niter=10, verbose=True, threshold_primary_match=0.10)
WOCS2002.evaluate_pseudo_secondaries(grid_size=3, niter=10, refit=False)
WOCS2002.plot_error_and_pseudo_secondaries()
print(WOCS2002.df_error_summary)
WOCS2002_with_filter_transmission
---------------------------------
T_in  = [5250.000000]        [14750.000000]
L_in  = [18.000000]  [0.093000]
T_fit = [5249.549374 +21.477557-47.459918]  [13826.073697 +8249.508217-1041.929859]
L_fit = [17.952060 +0.164233-0.209971]      [0.103876 +0.043730-0.047233]
Convergence rate:1.00
WOCS2002_with_filter_transmission: Grid params :   0%|          | 0/9 [00:00<?, ?it/s]
_images/output_6_2.png