Commit 4d209ab0 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Extend the quasar spectrum down to shorter wavelength. Update from Daniel Dale.

parent 3dbd0d67
......@@ -369,22 +369,16 @@ def build_dale2014(base):
base.add_dale2014(Dale2014(fraction, alpha_grid[al-1], wave, lumin))
# Emission from dust heated by AGN - Quasar template
fraction = 1.0
filename = dale2014_dir + "spectra.1.00AGN.dat"
filename = dale2014_dir + "shi_agn.regridded.extended.dat"
print("Importing {}...".format(filename))
datafile = open(filename)
data = "".join(datafile.readlines())
datafile.close()
for al in range(1, len(alpha_grid), 1):
lumin_quasar = np.genfromtxt(io.BytesIO(data.encode()), usecols=(al))
lumin_quasar = pow(10, lumin_quasar) / wave
lumin_quasar[lumin_quasar < 0] = 0
norm = np.trapz(lumin_quasar, x=wave)
lumin_quasar = lumin_quasar / norm
base.add_dale2014(Dale2014(fraction, alpha_grid[al-1], wave,
lumin_quasar))
wave, lumin_quasar = np.genfromtxt(filename, unpack=True)
wave *= 1e3
lumin_quasar = 10**lumin_quasar / wave
norm = np.trapz(lumin_quasar, x=wave)
lumin_quasar = lumin_quasar / norm
base.add_dale2014(Dale2014(1.0, 0.0, wave, lumin_quasar))
def build_dl2007(base):
......
0.0599999987 0.0633310601
0.0899999961 0.238134116
0.119999997 0.433180511
0.149999991 0.432364315
0.179999992 0.382773697
0.209999993 0.329300523
0.239999995 0.301999986
0.269999981 0.291999996
0.299999982 0.261698812
0.329999983 0.219459161
0.359999985 0.162776217
0.389999986 0.11775516
0.419999987 0.0755706429
0.449999988 0.0456077568
0.479999989 0.017578721
0.50999999 -0.00875055417
0.539999962 -0.0335735604
0.569999993 -0.0570550263
0.599999964 -0.0786654949
0.629999995 -0.0892603844
0.659999967 -0.0993618295
0.689999998 -0.110029347
0.719999969 -0.128256157
0.75 -0.137120739
0.779999971 -0.153274596
0.810000002 -0.163832411
0.839999974 -0.171729743
0.870000005 -0.180699095
0.899999976 -0.195422739
0.930000007 -0.203831553
0.959999979 -0.210725531
1. -0.219589859
1.27999997 -0.247999996
1.64999998 -0.187335879
2.11999989 -0.0684846044
2.70000005 -0.00072809495
3.20000005 0.0261650551
3.25 0.0295317546
3.29999995 0.0320000015
3.3499999 0.0320000015
3.5 0.0356240459
3.5999999 0.0417412631
4.5 0.0260823257
5. 0.0111400578
5.11999989 0.00726491306
5.13999987 0.00675696786
5.15999985 0.00625100732
5.17999983 0.00574701373
5.19999981 0.0052449517
5.21999979 0.0047448026
5.23999977 0.00424658461
5.26000023 0.00375024416
5.28000021 0.00325579941
5.30000019 0.00276323175
5.32000017 0.00227252394
5.34000015 0.00171152025
5.36000013 0.00106213056
5.38000011 0.000415148796
5.4000001 -0.00022942503
5.42000008 -0.000871638302
5.44000006 -0.00151146762
5.46000004 -0.00211170269
5.48000002 -0.00258807
5.5 -0.00306270272
5.51999998 -0.00353560108
5.53999996 -0.00400680071
5.55999994 -0.00447630184
5.57999992 -0.00494410377
5.5999999 -0.00541028241
5.61999989 -0.00587480329
5.63999987 -0.00633767899
5.65999985 -0.00679890951
5.67999983 -0.00725851255
5.69999981 -0.00771648809
5.71999979 -0.00823049806
5.73999977 -0.00883680675
5.76000023 -0.00944106467
5.78000021 -0.0100431768
5.80000019 -0.0106432391
5.82000017 -0.0112412032
5.84000015 -0.0118371397
5.86000013 -0.0123232706
5.88000011 -0.0127671836
5.9000001 -0.0132095767
5.92000008 -0.0136504686
5.94000006 -0.0140898759
5.96000004 -0.0145278163
5.98000002 -0.0149642918
6. -0.0153992996
6.01999998 -0.01583286
6.03999996 -0.0162649713
6.05999994 -0.0166956708
6.07999992 -0.0171249583
6.0999999 -0.0175528135
6.11999989 -0.0179792754
6.13999987 -0.0184043981
6.15999985 -0.0188281294
6.17999983 -0.0192504823
6.19999981 -0.0196714774
6.21999979 -0.0200911127
6.23999977 -0.0205094069
6.26000023 -0.0209263768
6.28000021 -0.0214559641
6.30000019 -0.0220082961
6.32000017 -0.0225589126
6.34000015 -0.0231077634
6.36000013 -0.0236548968
6.38000011 -0.0242002904
6.4000001 -0.0247440152
6.42000008 -0.0252145194
6.44000006 -0.0256197583
6.46000004 -0.0260237474
6.48000002 -0.0264264829
6.5 -0.0268279854
6.51999998 -0.027228253
6.53999996 -0.0276272874
6.55999994 -0.0280251056
6.57999992 -0.0284217037
6.5999999 -0.0288171209
6.61999989 -0.0292113218
6.63999987 -0.0296043269
6.65999985 -0.0299961679
6.67999983 -0.0303868279
6.69999981 -0.0307763107
6.71999979 -0.0312195532
6.73999977 -0.0317358412
6.76000023 -0.0322506018
6.78000021 -0.0327638388
6.80000019 -0.0332755744
6.82000017 -0.0337858051
6.84000015 -0.0342945345
6.86000013 -0.0348017626
6.88000011 -0.0352306291
6.9000001 -0.0356088132
6.92000008 -0.035985902
6.94000006 -0.0363619216
6.96000004 -0.0367368348
6.98000002 -0.03711069
7. -0.0374834538
7.01999998 -0.0378551818
7.03999996 -0.0382258333
7.05999994 -0.0385954343
7.07999992 -0.0389639772
7.0999999 -0.0393314995
7.11999989 -0.0396979861
7.13999987 -0.0400634371
7.15999985 -0.0404278673
7.17999983 -0.0407912955
7.19999981 -0.0412049182
7.21999979 -0.0416867994
7.23999977 -0.0421673208
7.26000023 -0.0426465534
7.28000021 -0.0431244522
7.30000019 -0.0436010174
7.32000017 -0.0440762937
7.34000015 -0.0445502847
7.36000013 -0.0450172238
7.38000011 -0.0453708172
7.4000001 -0.0457234457
7.42000008 -0.046075128
7.44000006 -0.0464258604
7.46000004 -0.0467756614
7.48000002 -0.0471245199
7.5 -0.0474724434
7.51999998 -0.0478194393
7.53999996 -0.0481655076
7.55999994 -0.048510626
7.57999992 -0.0488548353
7.5999999 -0.0491981506
7.61999989 -0.0495405532
7.63999987 -0.0498820618
7.65999985 -0.0502226762
7.67999983 -0.0505623966
7.69999981 -0.0509012416
7.71999979 -0.0513189472
7.73999977 -0.0517684035
7.76000023 -0.0522167161
7.78000021 -0.0526638366
7.80000019 -0.0531098358
7.82000017 -0.0535546914
7.84000015 -0.0539984033
7.86000013 -0.0544409938
7.88000011 -0.054882437
7.9000001 -0.0552420914
7.92000008 -0.0555715114
7.94000006 -0.0559000932
7.96000004 -0.0562278517
7.98000002 -0.0565547869
8. -0.0568809174
8.02000046 -0.0572062247
8.03999996 -0.0575307123
8.06000042 -0.0578544103
8.07999992 -0.058236409
8.10000038 -0.0586659275
8.11999989 -0.0590943471
8.14000034 -0.0595217422
8.15999985 -0.0599480681
8.18000031 -0.0603733659
8.19999981 -0.0607975908
8.22000027 -0.0612208135
8.23999977 -0.0616429895
8.26000023 -0.0620481335
8.27999973 -0.0623631962
8.30000019 -0.062677525
8.31999969 -0.0629910901
8.34000015 -0.0633038953
8.35999966 -0.0636159554
8.38000011 -0.063927263
8.39999962 -0.0642378405
8.42000008 -0.0645476803
8.43999958 -0.0648567677
8.46000004 -0.0651651472
8.47999954 -0.0654727742
8.5 -0.0657797009
8.52000046 -0.0660858974
8.53999996 -0.0663913712
8.56000042 -0.0666961372
8.57999992 -0.0670001879
8.60000038 -0.0673035383
8.61999989 -0.0676061586
8.64000034 -0.0679081157
8.65999985 -0.0678604469
8.68000031 -0.0676600859
8.69999981 -0.0674601868
8.72000027 -0.0672607347
8.73999977 -0.0670617595
8.76000023 -0.0668632165
8.77999973 -0.0666651428
8.80000019 -0.0664675087
8.81999969 -0.0662703365
8.84000015 -0.0660735965
8.85999966 -0.0653865114
8.88000011 -0.0644071996
8.89999962 -0.0634300932
8.92000008 -0.0624551363
8.93999958 -0.0614824444
8.96000004 -0.0605118945
8.97999954 -0.0595434941
9. -0.0585772395
9.02000046 -0.0576131307
9.03999996 -0.0566512272
9.06000042 -0.0555061996
9.07999992 -0.0539740622
9.10000038 -0.0524451658
9.11999989 -0.0509197041
9.14000034 -0.0493975803
9.15999985 -0.0478787906
9.18000031 -0.0463632457
9.19999981 -0.0448511355
9.22000027 -0.0433421694
9.23999977 -0.0418365449
9.26000023 -0.0403341576
9.27999973 -0.0388350189
9.30000019 -0.0373390242
9.31999969 -0.0358463675
9.34000015 -0.0343568549
9.35999966 -0.0328705907
9.38000011 -0.0313873738
9.39999962 -0.0299073998
9.42000008 -0.0284305736
9.43999958 -0.0269568935
9.46000004 -0.0254862681
9.47999954 -0.0240187868
9.5 -0.0228254162
9.52000046 -0.021638047
9.53999996 -0.0204532351
9.56000042 -0.0192709025
9.57999992 -0.018091049
9.60000038 -0.0169136003
9.61999989 -0.0157387052
9.64000034 -0.0145661356
9.65999985 -0.0133960461
9.68000031 -0.0122283576
9.69999981 -0.0110631492
9.72000027 -0.0106616206
9.73999977 -0.0103045488
9.76000023 -0.00994821638
9.77999973 -0.00959260017
9.80000019 -0.00923772156
9.81999969 -0.00888355915
9.84000015 -0.00853013527
9.85999966 -0.00817742757
9.88000011 -0.00782540999
9.89999962 -0.00747413235
9.92000008 -0.00712352199
9.93999958 -0.00705658738
9.96000004 -0.007143897
9.97999954 -0.00723102223
10. -0.00731797423
10.0200005 -0.00740475347
10.04 -0.0074913539
10.0600004 -0.00757779926
10.0799999 -0.00766405417
10.1000004 -0.0077501419
10.1199999 -0.00783606246
10.1400003 -0.00792181678
10.1599998 -0.00792597327
10.1800003 -0.00707197748
10.1999998 -0.00621965015
10.2200003 -0.00536887301
10.2399998 -0.00451988354
10.2600002 -0.00367244426
10.2799997 -0.00282679312
10.3000002 -0.00198257202
10.3199997 -0.00114013907
10.3400002 -0.000299375504
10.3599997 0.000539839268
10.3800001 0.00137738418
10.3999996 0.00193598622
10.4200001 0.00168568816
10.4399996 0.00143585505
10.46 0.0011864868
10.4799995 0.000937619363
10.5 0.000689216657
10.5200005 0.000441279029
10.54 0.000193841872
10.5600004 -5.31303231E-05
10.5799999 -0.000299673295
10.6000004 -0.00054571568
10.6199999 -0.000791293103
10.6400003 -0.000951411435
10.6599998 -0.000625214598
10.6800003 -0.000299589941
10.6999998 2.54148617E-05
10.7200003 0.000349799753
10.7399998 0.000673612463
10.7600002 0.000996805378
10.7799997 0.00131937827
10.8000002 0.00164137909
10.8199997 0.00196276
10.8400002 0.00228356849
10.8599997 0.00260375766
10.8800001 0.00292337406
10.8999996 0.00354548707
10.9200001 0.00426210929
10.9399996 0.00497733708
10.96 0.00569127686
10.9799995 0.00640392955
11. 0.00711529423
11.0200005 0.00782537088
11.04 0.00853416137
11.0600004 0.00924166292
11.0799999 0.00994787831
11.1000004 0.0106528047
11.1199999 0.011356445
11.1400003 0.0120065445
11.1599998 0.0120844347
11.1800003 0.0121621946
11.1999998 0.0122398231
11.2200003 0.0123173082
11.2399998 0.0123946499
11.2600002 0.0124718491
11.2799997 0.012548917
11.3000002 0.0126258545
11.3199997 0.0127026476
11.3400002 0.0127793225
11.3599997 0.0128558418
11.3800001 0.0129322307
11.3999996 0.0129575627
11.4200001 0.0125769358
11.4399996 0.0121969655
11.46 0.0118176499
11.4799995 0.0114390496
11.5 0.0110611059
11.5200005 0.0106837573
11.54 0.0103071239
11.5600004 0.00993108749
11.5799999 0.00955576543
11.6000004 0.00918103941
11.6199999 0.00880696904
11.6400003 0.00843355432
11.6599998 0.00806079619
11.6800003 0.00762635935
11.6999998 0.00718062231
11.7200003 0.00673552882
11.7399998 0.00629129354
11.7600002 0.00584777351
11.7799997 0.00540496875
11.8000002 0.00496295094
11.8199997 0.00452172011
11.8400002 0.00408113236
11.8599997 0.00364140328
11.8800001 0.00320231775
11.8999996 0.00276401918
11.9200001 0.00232643588
11.9399996 0.00154012244
11.96 -0.000277035171
11.9799995 -0.00209121243
12. -0.00390240946
12.0200005 -0.00571062602
12.04 -0.00751586165
12.0600004 -0.00931811705
12.0799999 -0.0111170942
12.1000004 -0.0129133891
12.1199999 -0.0147067029
12.1400003 -0.0164970364
12.1599998 -0.0182840917
12.1800003 -0.0200687628
12.1999998 -0.0218501557
12.2200003 -0.023402255
12.2399998 -0.0245386418
12.2600002 -0.0256731194
12.2799997 -0.0268056914
12.3000002 -0.0279365461
12.3199997 -0.0290654935
12.3400002 -0.0301925335
12.3599997 -0.0313178562
12.3800001 -0.0324412733
12.3999996 -0.0335629731
12.4200001 -0.0346827656
12.4399996 -0.0358008407
12.46 -0.0369170085
12.4799995 -0.0380314589
12.5 -0.0389369167
12.5200005 -0.038450852
12.54 -0.0379657038
12.5600004 -0.037481226
12.5799999 -0.0369974971
12.6000004 -0.0365146026
12.6199999 -0.0360324606
12.6400003 -0.0355510712
12.6599998 -0.0350704268
12.6800003 -0.0345905386
12.6999998 -0.0341113992
12.7200003 -0.0336330943
12.7399998 -0.0331554599
12.7600002 -0.0326785743
12.7799997 -0.0322025232
12.8000002 -0.0329355337
12.8199997 -0.0345628485
12.8400002 -0.0361875854
12.8599997 -0.037810035
12.8800001 -0.0394296199
12.8999996 -0.0410469212
12.9200001 -0.0426616445
12.9399996 -0.0442737937
12.96 -0.0458833687
12.9799995 -0.0474906564
13. -0.0490953662
13.0200005 -0.0506977886
13.04 -0.0522976369
13.0600004 -0.0538949072
13.0799999 -0.0554898903
13.1000004 -0.0560451001
13.1199999 -0.0561113618
13.1400003 -0.0561775155
13.1599998 -0.0562435761
13.1800003 -0.0563095249
13.1999998 -0.0563753843
13.2200003 -0.0564411432
13.2399998 -0.0565067977
13.2600002 -0.0565723665
13.2799997 -0.0566378161
13.3000002 -0.0567031838
13.3199997 -0.0567684434
13.3400002 -0.0568336062
13.3599997 -0.0568986759
13.3800001 -0.0569636524
13.3999996 -0.0569714867
13.4200001 -0.0569067076
13.4399996 -0.0568420403
13.46 -0.0567774661
13.4799995 -0.0567129739
13.5 -0.0566485934
13.5200005 -0.0565843023
13.54 -0.0565201119
13.5600004 -0.0564560033
13.5799999 -0.0563919991
13.6000004 -0.0563280806
13.6199999 -0.0562642701
13.6400003 -0.0562005416
13.6599998 -0.0561369099
13.6800003 -0.056073375
13.6999998 -0.0560099334
13.7200003 -0.0561602861
13.7399998 -0.0563500747
13.7600002 -0.0565395765
13.7799997 -0.0567287952
13.8000002 -0.0569177605
13.8199997 -0.057106439
13.8400002 -0.0572948344
13.8599997 -0.0574829802
13.8800001 -0.0576708354
13.8999996 -0.0578584448
13.9200001 -0.0580457635
13.9399996 -0.0582328364
13.96 -0.0584196188
13.9799995 -0.0586061552
14. -0.0587924011
14.0200005 -0.0589784011
14.04 -0.0578512326
14.0600004 -0.0565530173
14.0799999 -0.0552568026
14.1000004 -0.0539620928
14.1199999 -0.0526693836
14.1400003 -0.0513786785
14.1599998 -0.0500897244
14.1800003 -0.0488022752
14.1999998 -0.0475170761
14.2200003 -0.0462333784
14.2399998 -0.0449516848
14.2600002 -0.0436717458
14.2799997 -0.0423935577
14.3000002 -0.0411171168
14.3199997 -0.0398424342
14.3400002 -0.0385695025
14.3599997 -0.0381670259
14.3800001 -0.0384692475
14.3999996 -0.0387711115
14.4200001 -0.039072495
14.4399996 -0.0393735245
14.46 -0.0396740772
14.4799995 -0.0399742126
14.5 -0.0402739905
14.5200005 -0.0405733511
14.54 -0.0408722311
14.5600004 -0.0411707573
14.5799999 -0.0414688662
14.6000004 -0.0417665578
14.6199999 -0.0420638323
14.6400003 -0.0423606858
14.6599998 -0.0426571853
14.6800003 -0.0429532677
14.6999998 -0.0428506956
14.7200003 -0.0426735356
14.7399998 -0.0424966589
14.7600002 -0.0423199944
14.7799997 -0.0421435833
14.8000002 -0.0419673845
14.8199997 -0.0417914391
14.8400002 -0.0416157432
14.8599997 -0.0414402969
14.8800001 -0.041265063
14.8999996 -0.0410900488
14.9200001 -0.0409152806
14.9399996 -0.0407407656
14.96 -0.040566463
14.9799995 -0.04039241
15. -0.0402185731
15.0200005 -0.0400449857
15.04 -0.0392296761
15.0600004 -0.0381909236
15.0799999 -0.0371534564
15.1000004 -0.036117278
15.1199999 -0.0350825973
15.1400003 -0.0340494215
15.1599998 -0.0330173224
15.1800003 -0.0319867209
15.1999998 -0.0309574064
15.2200003 -0.0299295951
15.2399998 -0.0289030708
15.2600002 -0.0278778356
15.2799997 -0.0268538855
15.3000002 -0.0258314386
15.3199997 -0.0248102807
15.3400002 -0.0237904079
15.3599997 -0.0227718242
15.3800001 -0.0219454989
15.3999996 -0.0217197239
15.4200001 -0.0214942843
15.4399996 -0.0212691296
15.46 -0.0210442599
15.4799995 -0.0208196789
15.5 -0.020595381
15.5200005 -0.0203713719
15.54 -0.0201476477
15.5600004 -0.019924257
15.5799999 -0.0197011046
15.6000004 -0.0194782391
15.6199999 -0.019255707
15.6400003 -0.0190334134
15.6599998 -0.0188114047
15.6800003 -0.0185896829
15.6999998 -0.0183682963
15.7200003 -0.0181471463
15.7399998 -0.0179999992
15.7600002 -0.0179999992
15.7799997 -0.0179999992
15.8000002 -0.0179999992
15.8199997 -0.0179999992
15.8400002 -0.0179999992
15.8599997 -0.0179999992
15.8800001 -0.0179999992
15.8999996 -0.0179999992
15.9200001 -0.0179999992
15.9399996 -0.0179999992
15.96 -0.0179999992
15.9799995 -0.0179999992
16. -0.0179999992
16.0200005 -0.0179999992
16.0400009 -0.0179999992
16.0599995 -0.0179999992
16.0799999 -0.0179999992
16.1000004 -0.0179962087
16.1200008 -0.0176727064
16.1399994 -0.0173496325