chanter 0.1.3__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {chanter-0.1.3 → chanter-0.1.5}/PKG-INFO +1 -1
- chanter-0.1.5/chanter/examples/create_galaxy_example.py +47 -0
- chanter-0.1.5/chanter/examples/filters/F090W.txt +2050 -0
- chanter-0.1.5/chanter/examples/filters/F115W.txt +2050 -0
- chanter-0.1.5/chanter/examples/filters/F150W.txt +2049 -0
- chanter-0.1.5/chanter/examples/filters/F200W.txt +2049 -0
- chanter-0.1.5/chanter/examples/filters/F277W.txt +2536 -0
- chanter-0.1.5/chanter/examples/filters/F356W.txt +2158 -0
- chanter-0.1.5/chanter/examples/filters/F410M.txt +629 -0
- chanter-0.1.5/chanter/examples/filters/F444W.txt +2238 -0
- chanter-0.1.5/chanter/examples/filters/__init__.py +0 -0
- chanter-0.1.5/chanter/examples/filters/f435w.txt +1454 -0
- chanter-0.1.5/chanter/examples/filters/f606w.txt +297 -0
- chanter-0.1.5/chanter/examples/filters/f814w.txt +330 -0
- chanter-0.1.5/chanter/examples/filters/filt_list.txt +11 -0
- chanter-0.1.5/chanter/examples/fit_galaxy_example.py +58 -0
- chanter-0.1.5/chanter/grids/__init__.py +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter.egg-info/PKG-INFO +1 -1
- chanter-0.1.5/chanter.egg-info/SOURCES.txt +33 -0
- {chanter-0.1.3 → chanter-0.1.5}/setup.py +1 -1
- chanter-0.1.3/chanter.egg-info/SOURCES.txt +0 -17
- {chanter-0.1.3 → chanter-0.1.5}/README.md +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter/__init__.py +0 -0
- {chanter-0.1.3/chanter/grids → chanter-0.1.5/chanter/examples}/__init__.py +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter/galaxy_fitter.py +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter/grids/d_igm_grid_inoue14.fits +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter/grids/lyman_series_coefs_inoue_2014_table2.txt +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter/grids/ssps_5.fits +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter/model_galaxy.py +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter/utils/__init__.py +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter/utils/filter_set.py +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter/utils/make_igm_grid.py +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter.egg-info/dependency_links.txt +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter.egg-info/requires.txt +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/chanter.egg-info/top_level.txt +0 -0
- {chanter-0.1.3 → chanter-0.1.5}/setup.cfg +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import chanter as ch
|
|
2
|
+
import matplotlib.pyplot as plt
|
|
3
|
+
|
|
4
|
+
'''
|
|
5
|
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
6
|
+
Define model galaxy parameters
|
|
7
|
+
'''
|
|
8
|
+
|
|
9
|
+
exp = {}
|
|
10
|
+
exp["age"] = 1 # Age of galaxy in its rest frame
|
|
11
|
+
exp["tau"] = 0.3 # Scale of star-formation exponential decline
|
|
12
|
+
exp["massformed"] = 11. # Total mass formed in stars
|
|
13
|
+
exp["metallicity"] = 0.02 # Z/Z_oldsolar
|
|
14
|
+
|
|
15
|
+
dust = {}
|
|
16
|
+
dust["type"] = "Calzetti" # Type of dust law
|
|
17
|
+
dust["Av"] = 1 # Dust extinction in magnitudes
|
|
18
|
+
|
|
19
|
+
fit_instructions = {}
|
|
20
|
+
fit_instructions["redshift"] = 5 # Redshift of galaxy
|
|
21
|
+
fit_instructions["exponential"] = exp
|
|
22
|
+
fit_instructions["dust"] = dust
|
|
23
|
+
|
|
24
|
+
'''
|
|
25
|
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
26
|
+
'''
|
|
27
|
+
|
|
28
|
+
# Plot CHANTER
|
|
29
|
+
model = ch.modelgalaxy(fit_instructions)
|
|
30
|
+
fig, ax = plt.subplots(figsize=(10, 3))
|
|
31
|
+
model.plot_spec(ax, dict(color='darkcyan'))
|
|
32
|
+
ax.set_xlim(1000, 50000)
|
|
33
|
+
fig, ax = plt.subplots(figsize=(10, 3))
|
|
34
|
+
model.plot_sfh(ax)
|
|
35
|
+
plt.show()
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|