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]:
(3000, 10000)

In [5]:
sed.adjust_redshift(new_redshift=1.0)
plt.plot(sed._wavelength, sed._flux)
plt.xlim(3000, 10000)


Out[5]:
(3000, 10000)

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]:
array([ 23.98983814,  23.29310702,  23.04440913,  22.95099235])

In [8]:


In [ ]: