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.
Files changed (36) hide show
  1. {chanter-0.1.3 → chanter-0.1.5}/PKG-INFO +1 -1
  2. chanter-0.1.5/chanter/examples/create_galaxy_example.py +47 -0
  3. chanter-0.1.5/chanter/examples/filters/F090W.txt +2050 -0
  4. chanter-0.1.5/chanter/examples/filters/F115W.txt +2050 -0
  5. chanter-0.1.5/chanter/examples/filters/F150W.txt +2049 -0
  6. chanter-0.1.5/chanter/examples/filters/F200W.txt +2049 -0
  7. chanter-0.1.5/chanter/examples/filters/F277W.txt +2536 -0
  8. chanter-0.1.5/chanter/examples/filters/F356W.txt +2158 -0
  9. chanter-0.1.5/chanter/examples/filters/F410M.txt +629 -0
  10. chanter-0.1.5/chanter/examples/filters/F444W.txt +2238 -0
  11. chanter-0.1.5/chanter/examples/filters/__init__.py +0 -0
  12. chanter-0.1.5/chanter/examples/filters/f435w.txt +1454 -0
  13. chanter-0.1.5/chanter/examples/filters/f606w.txt +297 -0
  14. chanter-0.1.5/chanter/examples/filters/f814w.txt +330 -0
  15. chanter-0.1.5/chanter/examples/filters/filt_list.txt +11 -0
  16. chanter-0.1.5/chanter/examples/fit_galaxy_example.py +58 -0
  17. chanter-0.1.5/chanter/grids/__init__.py +0 -0
  18. {chanter-0.1.3 → chanter-0.1.5}/chanter.egg-info/PKG-INFO +1 -1
  19. chanter-0.1.5/chanter.egg-info/SOURCES.txt +33 -0
  20. {chanter-0.1.3 → chanter-0.1.5}/setup.py +1 -1
  21. chanter-0.1.3/chanter.egg-info/SOURCES.txt +0 -17
  22. {chanter-0.1.3 → chanter-0.1.5}/README.md +0 -0
  23. {chanter-0.1.3 → chanter-0.1.5}/chanter/__init__.py +0 -0
  24. {chanter-0.1.3/chanter/grids → chanter-0.1.5/chanter/examples}/__init__.py +0 -0
  25. {chanter-0.1.3 → chanter-0.1.5}/chanter/galaxy_fitter.py +0 -0
  26. {chanter-0.1.3 → chanter-0.1.5}/chanter/grids/d_igm_grid_inoue14.fits +0 -0
  27. {chanter-0.1.3 → chanter-0.1.5}/chanter/grids/lyman_series_coefs_inoue_2014_table2.txt +0 -0
  28. {chanter-0.1.3 → chanter-0.1.5}/chanter/grids/ssps_5.fits +0 -0
  29. {chanter-0.1.3 → chanter-0.1.5}/chanter/model_galaxy.py +0 -0
  30. {chanter-0.1.3 → chanter-0.1.5}/chanter/utils/__init__.py +0 -0
  31. {chanter-0.1.3 → chanter-0.1.5}/chanter/utils/filter_set.py +0 -0
  32. {chanter-0.1.3 → chanter-0.1.5}/chanter/utils/make_igm_grid.py +0 -0
  33. {chanter-0.1.3 → chanter-0.1.5}/chanter.egg-info/dependency_links.txt +0 -0
  34. {chanter-0.1.3 → chanter-0.1.5}/chanter.egg-info/requires.txt +0 -0
  35. {chanter-0.1.3 → chanter-0.1.5}/chanter.egg-info/top_level.txt +0 -0
  36. {chanter-0.1.3 → chanter-0.1.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chanter
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Simple quiescent galaxy spectral modelling and fitting
5
5
  Author: Struan Stevenson
6
6
  Author-email: struan.stevenson@ed.ac.uk
@@ -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
+