Commit 9b2ed603 authored by Médéric Boquien's avatar Médéric Boquien

Add JWST MIRI and NIRCam filters.

parent b70f248e
Pipeline #1683 skipped with stage
......@@ -7,6 +7,7 @@
- Implementation of the auto-detection of lines in the input flux file so they are automatically added to the list of bands in `pcigale.ini`. (Médéric Boquien)
- The `dl2007` and `dl2014` modules now provide \<U\>. (Médéric Boquien)
- Saving the χ² is now a bit more fine-grained. It is possible to save none, all, only the properties, or only the fluxes. (Médéric Boquien)
- The database now includes the JWST MIRI and NIRCam filters. (Médéric Boquien)
### Changed
- Python 3.6 is now the minimum required version. (Médéric Boquien)
- The logo has now been moved to the lower-right corner of the figure so that it does not overlap with any information and it has been updated for a less pixelated version. (Médéric Boquien & Rodrigo González Castillo)
......
......@@ -140,11 +140,16 @@ def read_bc03_ssp(filename):
def build_filters(base):
filters = []
filters_dir = os.path.join(os.path.dirname(__file__), 'filters/')
for filter_file in glob.glob(filters_dir + '*.dat'):
for filter_file in glob.glob(filters_dir + '**/*.dat', recursive=True):
with open(filter_file, 'r') as filter_file_read:
filter_name = filter_file_read.readline().strip('# \n\t')
filter_type = filter_file_read.readline().strip('# \n\t')
filter_description = filter_file_read.readline().strip('# \n\t')
# Make the name dynamic for filters in subdirectories
tmp_name = filter_file.replace(filters_dir, '')[:-4]
if '/' in tmp_name:
filter_name = tmp_name.replace('/', '.')
filter_table = np.genfromtxt(filter_file)
# The table is transposed to have table[0] containing the wavelength
# and table[1] containing the transmission.
......
# F1000W
# photon
# Includes Nominal transmission of the JWST OTE is not included. Source: http://svo2.cab.inta-csic.es/svo/theory/fps3/index.php?mode=browse&gname=JWST&gname2=MIRI
87430 0.0004
87490 0.0012
87550 0.002
87600 0.0029
87660 0.0056
87720 0.0082
87780 0.0109
87840 0.0127
87890 0.0139
87950 0.0151
88010 0.0156
88070 0.013
88130 0.0104
88180 0.0078
88240 0.0062
88300 0.005
88360 0.0038
88420 0.0029
88470 0.0029
88530 0.0029
88590 0.0029
88650 0.0033
88710 0.0038
88760 0.0043
88820 0.0052
88880 0.0065
88940 0.0078
89000 0.0092
89050 0.0119
89110 0.0147
89170 0.0174
89230 0.0211
89290 0.0258
89340 0.0305
89400 0.0352
89460 0.0416
89520 0.0481
89580 0.0545
89630 0.0623
89690 0.0711
89750 0.0799
89810 0.0894
89870 0.1029
89920 0.1163
89980 0.1298
90040 0.1482
90100 0.1687
90160 0.1893
90210 0.2109
90270 0.2357
90330 0.2605
90390 0.2853
90450 0.3036
90500 0.3202
90560 0.3369
90620 0.3482
90680 0.3494
90740 0.3506
90790 0.3518
90850 0.347
90910 0.3414
90970 0.3358
91030 0.3312
91080 0.3277
91140 0.3242
91200 0.3208
91260 0.3223
91320 0.3239
91370 0.3255
91430 0.3292
91490 0.3347
91550 0.3401
91610 0.3457
91660 0.3518
91720 0.358
91780 0.3641
91840 0.3693
91900 0.374
91950 0.3787
92010 0.383
92070 0.3855
92130 0.388
92190 0.3905
92240 0.3916
92300 0.3922
92360 0.3928
92420 0.393
92480 0.3926
92530 0.3921
92590 0.3917
92650 0.3908
92710 0.3898
92770 0.3889
92820 0.3878
92880 0.3867
92940 0.3856
93000 0.3845
93060 0.3835
93110 0.3825
93170 0.3815
93230 0.3807
93290 0.38
93350 0.3793
93400 0.3786
93460 0.3784
93520 0.3782
93580 0.3779
93640 0.378
93690 0.3783
93750 0.3786
93810 0.379
93870 0.3798
93930 0.3806
93980 0.3814
94040 0.3823
94100 0.3833
94160 0.3843
94220 0.3853
94270 0.3862
94330 0.3871
94390 0.388
94450 0.3887
94510 0.3894
94560 0.39
94620 0.3906
94680 0.391
94740 0.3915
94800 0.3919
94850 0.3923
94910 0.3927
94970 0.393
95030 0.3934
95090 0.3938
95140 0.3942
95200 0.3946
95260 0.3951
95320 0.3955
95380 0.396
95430 0.3964
95490 0.3968
95550 0.3972
95610 0.3976
95670 0.3978
95720 0.398
95780 0.3982
95840 0.3981
95900 0.3979
95960 0.3977
96010 0.3974
96070 0.3968
96130 0.3963
96190 0.3957
96250 0.3951
96300 0.3944
96360 0.3937
96420 0.3931
96480 0.3925
96540 0.392
96590 0.3914
96650 0.3911
96710 0.3908
96770 0.3905
96830 0.3903
96880 0.3903
96940 0.3904
97000 0.3904
97060 0.3907
97120 0.391
97170 0.3913
97230 0.3917
97290 0.3922
97350 0.3927
97410 0.3932
97460 0.3937
97520 0.3941
97580 0.3946
97640 0.3949
97700 0.3952
97750 0.3955
97810 0.3957
97870 0.3958
97930 0.3959
97990 0.3959
98040 0.3959
98100 0.3958
98160 0.3957
98220 0.3956
98280 0.3953
98330 0.395
98390 0.3948
98450 0.3945
98510 0.3942
98570 0.3939
98620 0.3936
98680 0.3934
98740 0.3932
98800 0.3931
98860 0.393
98910 0.393
98970 0.3929
99030 0.3929
99090 0.3928
99150 0.3927
99200 0.3927
99260 0.3925
99320 0.3924
99380 0.3922
99440 0.392
99490 0.3917
99550 0.3914
99610 0.3912
99670 0.3909
99730 0.3905
99780 0.3902
99840 0.3899
99900 0.3897
99960 0.3895
100020 0.3893
100070 0.3895
100130 0.3897
100190 0.3898
100250 0.3902
100310 0.3905
100360 0.3909
100420 0.3914
100480 0.392
100540 0.3926
100600 0.3931
100650 0.3939
100710 0.3947
100770 0.3955
100830 0.3964
100890 0.3973
100940 0.3982
101000 0.3991
101060 0.3999
101120 0.4007
101180 0.4016
101230 0.4023
101290 0.4029
101350 0.4035
101410 0.404
101470 0.4043
101520 0.4047
101580 0.405
101640 0.4052
101700 0.4053
101760 0.4054
101810 0.4054
101870 0.4053
101930 0.4052
101990 0.4051
102050 0.4049
102100 0.4047
102160 0.4045
102220 0.4042
102280 0.404
102340 0.4038
102390 0.4036
102450 0.4035
102510 0.4034
102570 0.4032
102630 0.4032
102680 0.4032
102740 0.4032
102800 0.4033
102860 0.4035
102920 0.4036
102970 0.4038
103030 0.404
103090 0.4043
103150 0.4046
103210 0.4049
103260 0.4052
103320 0.4056
103380 0.4059
103440 0.4062
103500 0.4065
103550 0.4068
103610 0.4071
103670 0.4074
103730 0.4077
103790 0.408
103840 0.4082
103900 0.4085
103960 0.4088
104020 0.4091
104080 0.4093
104130 0.4096
104190 0.4099
104250 0.4101
104310 0.4104
104370 0.4107
104420 0.411
104480 0.4114
104540 0.4117
104600 0.4121
104660 0.4125
104710 0.4129
104770 0.4133
104830 0.4136
104890 0.414
104950 0.4143
105000 0.4146
105060 0.4143
105120 0.414
105180 0.4138
105240 0.4134
105290 0.4129
105350 0.4124
105410 0.4119
105470 0.4112
105530 0.4105
105580 0.4098
105640 0.409
105700 0.4081
105760 0.4072
105820 0.4064
105870 0.4054
105930 0.4045
105990 0.4035
106050 0.4026
106110 0.4017
106160 0.4007
106220 0.3999
106280 0.3991
106340 0.3983
106400 0.3975
106450 0.3969
106510 0.3963
106570 0.3957
106630 0.3952
106690 0.3949
106740 0.3945
106800 0.3942
106860 0.394
106920 0.3938
106980 0.3937
107030 0.3935
107090 0.3934
107150 0.3933
107210 0.3932
107270 0.393
107320 0.3927
107380 0.3924
107440 0.3919
107500 0.3912
107560 0.3905
107610 0.3896
107670 0.3882
107730 0.3868
107790 0.3853
107850 0.3829
107900 0.3803
107960 0.3777
108020 0.3742
108080 0.3693
108140 0.3643
108190 0.3594
108250 0.3516
108310 0.3435
108370 0.3354
108430 0.3257
108480 0.3142
108540 0.3028
108600 0.2913
108660 0.2771
108720 0.2629
108770 0.2488
108830 0.2339
108890 0.2184
108950 0.2029
109010 0.1875
109060 0.1725
109120 0.1575
109180 0.1426
109240 0.1292
109300 0.1166
109350 0.1041
109410 0.0923
109470 0.0834
109530 0.0744
109590 0.0655
109640 0.0586
109700 0.0524
109760 0.0461
109820 0.0405
109880 0.0363
109930 0.0321
109990 0.0278
110050 0.0249
110110 0.0222
110170 0.0194
110220 0.0171
110280 0.0154
110340 0.0136
110400 0.0119
110460 0.0108
110510 0.0097
110570 0.0087
110630 0.0078
110690 0.0071
110750 0.0065
110800 0.0058
110860 0.0053
110920 0.0049
110980 0.0044
111040 0.004
111090 0.0037
111150 0.0033
111210 0.003
111270 0.0028
111330 0.0026
111380 0.0023
111440 0.0021
111500 0.002
111560 0.0018
111620 0.0017
111670 0.0016
111730 0.0015
111790 0.0013
111850 0.0013
111910 0.0012
111960 0.0011
112020 0.001
112080 0.0009
112140 0.0009
112200 0.0008
112250 0.0008
112310 0.0007
112370 0.0007
112430 0.0006
112490 0.0006
112540 0.0005
112600 0.0005
112660 0.0005
112720 0.0005
112780 0.0004
112830 0.0004
112890 0.0004
112950 0.0004
113010 0.0004
113070 0.0004
113120 0.0003
113180 0.0003
113240 0.0003
113300 0.0003
113360 0.0003
113410 0.0002
113470 0.0002
113530 0.0002
113590 0.0002
113650 0.0002
113700 0.0002
113760 0.0002
113820 0.0002
113880 0.0002
113940 0.0002
113990 0.0002
114050 0.0002
114110 0.0002
114170 0.0002
114230 0.0002
114280 0.0002
114340 0.0002
114400 0.0002
114460 0.0002
114520 0.0002
114570 0.0002
114630 0.0002
114690 0.0001
114750 0.0001
114810 0.0001
114860 0.0001
114920 0.0001
114980 0.0001
115040 0.0001
115100 0.0001
115150 0.0001
# F1130W
# photon
# Includes Nominal transmission of the JWST OTE is not included. Source: http://svo2.cab.inta-csic.es/svo/theory/fps3/index.php?mode=browse&gname=JWST&gname2=MIRI
102510 0.0001
102570 0.0001
102630 0.0001
102680 0.0001
102740 0.0001
102800 0.0001
102860 0.0001
102920 0.0001
102970 0.0001
103030 0.0001
103090 0.0001
103150 0.0001
103210 0.0001
103260 0.0002
103320 0.0002
103380 0.0002
103440 0.0002
103500 0.0002
103550 0.0002
103610 0.0002
103670 0.0002
103730 0.0002
103790 0.0002
103840 0.0002
103900 0.0003
103960 0.0003
104020 0.0003
104080 0.0003
104130 0.0003
104190 0.0003
104250 0.0003
104310 0.0004
104370 0.0004
104420 0.0004
104480 0.0004
104540 0.0004
104600 0.0004
104660 0.0004
104710 0.0005
104770 0.0005
104830 0.0005
104890 0.0006
104950 0.0006
105000 0.0006
105060 0.0007
105120 0.0007
105180 0.0008
105240 0.0008
105290 0.0009
105350 0.001
105410 0.001
105470 0.0011
105530 0.0012
105580 0.0012
105640 0.0013
105700 0.0014
105760 0.0015
105820 0.0017
105870 0.0018
105930 0.0019
105990 0.0021
106050 0.0022
106110 0.0024
106160 0.0026
106220 0.0028
106280 0.003
106340 0.0033
106400 0.0035
106450 0.0038
106510 0.0041
106570 0.0044
106630 0.0048
106690 0.0052
106740 0.0056
106800 0.0061
106860 0.0066
106920 0.0072
106980 0.0077
107030 0.0084
107090 0.0091
107150 0.0098
107210 0.0106
107270 0.0115
107320 0.0124
107380 0.0134
107440 0.0145
107500 0.0157
107560 0.0168
107610 0.0181
107670 0.0196
107730 0.0211
107790 0.0226
107850 0.0244
107900 0.0263
107960 0.0281
108020 0.0302
108080 0.0326
108140 0.035
108190 0.0375
108250 0.0405
108310 0.0436
108370 0.0467
108430 0.0501
108480 0.054
108540 0.0579
108600 0.0618
108660 0.0667
108720 0.0715
108770 0.0763
108830 0.0818
108890 0.0877
108950 0.0936
109010 0.0996
109060 0.1067
109120 0.1138
109180 0.1208
109240 0.1287
109300 0.1369
109350 0.1451
109410 0.1536
109470 0.1627
109530 0.1718
109590 0.1809
109640 0.1901
109700 0.1993
109760 0.2085
109820 0.2175
109880 0.2262
109930 0.2349
109990 0.2435
110050 0.2514
110110 0.2591
110170 0.2668
110220 0.274
110280 0.2804
110340 0.2868
110400 0.2932
110460 0.298