In [2]:
import numpy as np
import matplotlib.pyplot as plt
from astrotools.filters import Filters
from astrotools.models import BlackbodySED
%matplotlib inline
plt.rcParams['figure.figsize'] = 16, 8
In [3]:
sed = BlackbodySED(10000, 3e15, redshift=0, wavelength=np.arange(1000, 10000))
plt.plot(sed._wavelength, sed._flux)
plt.xlim(3000, 10000)
Out[3]:
In [5]:
sed.adjust_redshift(new_redshift=1.0)
plt.plot(sed._wavelength, sed._flux)
plt.xlim(3000, 10000)
Out[5]:
In [6]:
filters = Filters(load_all=True)
In [7]:
sed.synthesis_magnitudes(filter_name=['DES_g', 'DES_r', 'DES_i', 'DES_z'], filters=filters)
Out[7]:
In [8]:
In [ ]: