chanter 0.1.3__tar.gz → 0.1.4__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 (30) hide show
  1. {chanter-0.1.3 → chanter-0.1.4}/PKG-INFO +1 -1
  2. chanter-0.1.4/chanter/examples/create_galaxy_example.py +47 -0
  3. chanter-0.1.4/chanter/examples/filters/__init__.py +0 -0
  4. chanter-0.1.4/chanter/examples/filters/filt_list.txt +11 -0
  5. chanter-0.1.4/chanter/examples/filters/filt_list_jades.txt +14 -0
  6. chanter-0.1.4/chanter/examples/filters/g_HSC.txt +187 -0
  7. chanter-0.1.4/chanter/examples/filters/i_HSC.txt +566 -0
  8. chanter-0.1.4/chanter/examples/filters/r_HSC.txt +582 -0
  9. chanter-0.1.4/chanter/examples/filters/y_HSC.txt +101 -0
  10. chanter-0.1.4/chanter/examples/filters/z_HSC.txt +76 -0
  11. chanter-0.1.4/chanter/examples/fit_galaxy_example.py +58 -0
  12. chanter-0.1.4/chanter/grids/__init__.py +0 -0
  13. {chanter-0.1.3 → chanter-0.1.4}/chanter.egg-info/PKG-INFO +1 -1
  14. {chanter-0.1.3 → chanter-0.1.4}/chanter.egg-info/SOURCES.txt +11 -0
  15. {chanter-0.1.3 → chanter-0.1.4}/setup.py +1 -1
  16. {chanter-0.1.3 → chanter-0.1.4}/README.md +0 -0
  17. {chanter-0.1.3 → chanter-0.1.4}/chanter/__init__.py +0 -0
  18. {chanter-0.1.3/chanter/grids → chanter-0.1.4/chanter/examples}/__init__.py +0 -0
  19. {chanter-0.1.3 → chanter-0.1.4}/chanter/galaxy_fitter.py +0 -0
  20. {chanter-0.1.3 → chanter-0.1.4}/chanter/grids/d_igm_grid_inoue14.fits +0 -0
  21. {chanter-0.1.3 → chanter-0.1.4}/chanter/grids/lyman_series_coefs_inoue_2014_table2.txt +0 -0
  22. {chanter-0.1.3 → chanter-0.1.4}/chanter/grids/ssps_5.fits +0 -0
  23. {chanter-0.1.3 → chanter-0.1.4}/chanter/model_galaxy.py +0 -0
  24. {chanter-0.1.3 → chanter-0.1.4}/chanter/utils/__init__.py +0 -0
  25. {chanter-0.1.3 → chanter-0.1.4}/chanter/utils/filter_set.py +0 -0
  26. {chanter-0.1.3 → chanter-0.1.4}/chanter/utils/make_igm_grid.py +0 -0
  27. {chanter-0.1.3 → chanter-0.1.4}/chanter.egg-info/dependency_links.txt +0 -0
  28. {chanter-0.1.3 → chanter-0.1.4}/chanter.egg-info/requires.txt +0 -0
  29. {chanter-0.1.3 → chanter-0.1.4}/chanter.egg-info/top_level.txt +0 -0
  30. {chanter-0.1.3 → chanter-0.1.4}/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.4
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
+
File without changes
@@ -0,0 +1,11 @@
1
+ chanter/examples/filters/f435w
2
+ chanter/examples/filters/f606w
3
+ chanter/examples/filters/f814w
4
+ chanter/examples/filters/F090W
5
+ chanter/examples/filters/F115W
6
+ chanter/examples/filters/F150W
7
+ chanter/examples/filters/F200W
8
+ chanter/examples/filters/F277W
9
+ chanter/examples/filters/F356W
10
+ chanter/examples/filters/F410M
11
+ chanter/examples/filters/F444W
@@ -0,0 +1,14 @@
1
+ filters/f435w
2
+ filters/f606w
3
+ filters/f775w
4
+ filters/f814w
5
+ filters/f850lp
6
+ filters/F090W
7
+ filters/F115W
8
+ filters/F150W
9
+ filters/F200W
10
+ filters/F277W
11
+ filters/F335M
12
+ filters/F356W
13
+ filters/F410M
14
+ filters/F444W
@@ -0,0 +1,187 @@
1
+ 3840.00 0.0000
2
+ 3850.00 0.0001
3
+ 3860.00 0.0001
4
+ 3870.00 0.0001
5
+ 3880.00 0.0001
6
+ 3890.00 0.0001
7
+ 3900.00 0.0001
8
+ 3910.00 0.0003
9
+ 3920.00 0.0004
10
+ 3930.00 0.0008
11
+ 3940.00 0.0023
12
+ 3950.00 0.0058
13
+ 3960.00 0.0127
14
+ 3970.00 0.0256
15
+ 3980.00 0.0505
16
+ 3990.00 0.0969
17
+ 4000.00 0.1630
18
+ 4010.00 0.2274
19
+ 4020.00 0.2693
20
+ 4030.00 0.2885
21
+ 4040.00 0.2966
22
+ 4050.00 0.3018
23
+ 4060.00 0.3062
24
+ 4070.00 0.3113
25
+ 4080.00 0.3181
26
+ 4090.00 0.3227
27
+ 4100.00 0.3282
28
+ 4110.00 0.3329
29
+ 4120.00 0.3381
30
+ 4130.00 0.3416
31
+ 4140.00 0.3459
32
+ 4150.00 0.3507
33
+ 4160.00 0.3556
34
+ 4170.00 0.3602
35
+ 4180.00 0.3647
36
+ 4190.00 0.3700
37
+ 4200.00 0.3749
38
+ 4210.00 0.3776
39
+ 4220.00 0.3815
40
+ 4230.00 0.3855
41
+ 4240.00 0.3894
42
+ 4250.00 0.3948
43
+ 4260.00 0.3965
44
+ 4270.00 0.4000
45
+ 4280.00 0.4016
46
+ 4290.00 0.4041
47
+ 4300.00 0.4090
48
+ 4310.00 0.4146
49
+ 4320.00 0.4203
50
+ 4330.00 0.4242
51
+ 4340.00 0.4283
52
+ 4350.00 0.4319
53
+ 4360.00 0.4350
54
+ 4370.00 0.4383
55
+ 4380.00 0.4411
56
+ 4390.00 0.4451
57
+ 4400.00 0.4496
58
+ 4410.00 0.4528
59
+ 4420.00 0.4551
60
+ 4430.00 0.4589
61
+ 4440.00 0.4622
62
+ 4450.00 0.4648
63
+ 4460.00 0.4693
64
+ 4470.00 0.4728
65
+ 4480.00 0.4754
66
+ 4490.00 0.4791
67
+ 4500.00 0.4819
68
+ 4510.00 0.4847
69
+ 4520.00 0.4860
70
+ 4530.00 0.4887
71
+ 4540.00 0.4927
72
+ 4550.00 0.4958
73
+ 4560.00 0.4992
74
+ 4570.00 0.5023
75
+ 4580.00 0.5057
76
+ 4590.00 0.5082
77
+ 4600.00 0.5117
78
+ 4610.00 0.5132
79
+ 4620.00 0.5147
80
+ 4630.00 0.5165
81
+ 4640.00 0.5178
82
+ 4650.00 0.5191
83
+ 4660.00 0.5214
84
+ 4670.00 0.5242
85
+ 4680.00 0.5265
86
+ 4690.00 0.5293
87
+ 4700.00 0.5315
88
+ 4710.00 0.5336
89
+ 4720.00 0.5348
90
+ 4730.00 0.5364
91
+ 4740.00 0.5372
92
+ 4750.00 0.5371
93
+ 4760.00 0.5389
94
+ 4770.00 0.5404
95
+ 4780.00 0.5432
96
+ 4790.00 0.5465
97
+ 4800.00 0.5484
98
+ 4810.00 0.5495
99
+ 4820.00 0.5517
100
+ 4830.00 0.5531
101
+ 4840.00 0.5537
102
+ 4850.00 0.5560
103
+ 4860.00 0.5560
104
+ 4870.00 0.5572
105
+ 4880.00 0.5616
106
+ 4890.00 0.5631
107
+ 4900.00 0.5649
108
+ 4910.00 0.5666
109
+ 4920.00 0.5666
110
+ 4930.00 0.5680
111
+ 4940.00 0.5690
112
+ 4950.00 0.5711
113
+ 4960.00 0.5727
114
+ 4970.00 0.5741
115
+ 4980.00 0.5754
116
+ 4990.00 0.5801
117
+ 5000.00 0.5835
118
+ 5010.00 0.5857
119
+ 5020.00 0.5871
120
+ 5030.00 0.5867
121
+ 5040.00 0.5865
122
+ 5050.00 0.5861
123
+ 5060.00 0.5875
124
+ 5070.00 0.5894
125
+ 5080.00 0.5928
126
+ 5090.00 0.5959
127
+ 5100.00 0.5970
128
+ 5110.00 0.5983
129
+ 5120.00 0.5991
130
+ 5130.00 0.6006
131
+ 5140.00 0.6019
132
+ 5150.00 0.6030
133
+ 5160.00 0.6043
134
+ 5170.00 0.6065
135
+ 5180.00 0.6080
136
+ 5190.00 0.6086
137
+ 5200.00 0.6102
138
+ 5210.00 0.6121
139
+ 5220.00 0.6139
140
+ 5230.00 0.6146
141
+ 5240.00 0.6151
142
+ 5250.00 0.6144
143
+ 5260.00 0.6169
144
+ 5270.00 0.6187
145
+ 5280.00 0.6186
146
+ 5290.00 0.6215
147
+ 5300.00 0.6221
148
+ 5310.00 0.6222
149
+ 5320.00 0.6238
150
+ 5330.00 0.6255
151
+ 5340.00 0.6283
152
+ 5350.00 0.6330
153
+ 5360.00 0.6333
154
+ 5370.00 0.6344
155
+ 5380.00 0.6370
156
+ 5390.00 0.6382
157
+ 5400.00 0.6381
158
+ 5410.00 0.6349
159
+ 5420.00 0.6240
160
+ 5430.00 0.5994
161
+ 5440.00 0.5523
162
+ 5450.00 0.4841
163
+ 5460.00 0.3991
164
+ 5470.00 0.3081
165
+ 5480.00 0.2239
166
+ 5490.00 0.1532
167
+ 5500.00 0.0987
168
+ 5510.00 0.0590
169
+ 5520.00 0.0329
170
+ 5530.00 0.0174
171
+ 5540.00 0.0092
172
+ 5550.00 0.0051
173
+ 5560.00 0.0032
174
+ 5570.00 0.0022
175
+ 5580.00 0.0016
176
+ 5590.00 0.0012
177
+ 5600.00 0.0010
178
+ 5610.00 0.0007
179
+ 5620.00 0.0005
180
+ 5630.00 0.0003
181
+ 5640.00 0.0003
182
+ 5650.00 0.0002
183
+ 5660.00 0.0002
184
+ 5670.00 0.0002
185
+ 5680.00 0.0002
186
+ 5690.00 0.0002
187
+ 5700.00 0.0001