Skip to content

Commit

Permalink
Merge pull request #115 from dannygoldstein/master
Browse files Browse the repository at this point in the history
Add CSP Bandpasses
  • Loading branch information
kbarbary committed Nov 9, 2015
2 parents 06e4b37 + d837fa8 commit e4e254a
Show file tree
Hide file tree
Showing 17 changed files with 6,992 additions and 1 deletion.
25 changes: 24 additions & 1 deletion sncosmo/builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@ def load_spectral_magsys_fits(relpath, name=None):
'description': 'Bandpass for the Kepler spacecraft',
'dataurl': 'http://keplergo.arc.nasa.gov/CalibrationResponse.shtml'}

csp_meta = {
'filterset': 'csp',
'retrieved': '6 Nov 2015',
'description': 'Carnegie Supernova Proj. filts (Swope+DuPont Telescopes)',
'dataurl': 'http://csp.obs.carnegiescience.edu/data/filters'}


# Bessell bandpasses have transmission in units of (photons / erg)
bands = [('bessellux', 'bessell/bessell_ux.dat', bessell_meta),
('bessellb', 'bessell/bessell_b.dat', bessell_meta),
Expand Down Expand Up @@ -360,7 +367,23 @@ def load_spectral_magsys_fits(relpath, name=None):
('f775w', 'hst/hst_acs_wfc_f775w.dat', acs_meta),
('f814w', 'hst/hst_acs_wfc_f814w.dat', acs_meta),
('f850lp', 'hst/hst_acs_wfc_f850lp.dat', acs_meta),
('kepler', 'kepler/kepler.dat', kepler_meta)]
('kepler', 'kepler/kepler.dat', kepler_meta),
('cspb', 'csp/B_texas_WLcorr_atm.txt', csp_meta),
('csphs', 'csp/H_SWO_TAM_scan_atm.dat', csp_meta),
('csphd', 'csp/H_texas_DUP_atm.dat', csp_meta),
('cspjs', 'csp/J_SWO_TAM_atm.dat', csp_meta),
('cspjd', 'csp/J_texas_DUP_atm.dat', csp_meta),
('cspv3009', 'csp/V_LC3009_texas_WLcorr_atm.txt', csp_meta),
('cspv3014', 'csp/V_LC3014_texas_WLcorr_atm.txt', csp_meta),
('cspv9844', 'csp/V_LC9844_texax_WLcorr_atm.txt', csp_meta),
('cspys', 'csp/Y_SWO_TAM_scan_atm.dat', csp_meta),
('cspyd', 'csp/Y_texas_DUP_atm.dat', csp_meta),
('cspg', 'csp/g_texas_WLcorr_atm.txt', csp_meta),
('cspi', 'csp/i_texas_WLcorr_atm.txt', csp_meta),
('cspk', 'csp/kfilter', csp_meta),
('cspr', 'csp/r_texas_WLcorr_atm.txt', csp_meta),
('cspu', 'csp/u_texas_WLcorr_atm.txt', csp_meta)]


for name, fname, meta in bands:
registry.register_loader(Bandpass, name, load_bandpass_angstroms,
Expand Down
99 changes: 99 additions & 0 deletions sncosmo/data/bandpasses/csp/B_texas_WLcorr_atm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
3480. 0.
3500. 5.142851E-5
3520. 3.567548E-4
3540. 9.827790E-4
3560. 0.002188997
3580. 0.00434873
3600. 0.007828698
3620. 0.01291309
3640. 0.01971251
3660. 0.02842712
3680. 0.0386132
3700. 0.05006693
3720. 0.06286888
3740. 0.07723869
3760. 0.09043033
3780. 0.1064745
3800. 0.1227991
3820. 0.1404992
3840. 0.1568806
3860. 0.1730374
3880. 0.1915024
3900. 0.2070992
3920. 0.2217109
3940. 0.2356667
3960. 0.2511677
3980. 0.2639593
4000. 0.2756944
4020. 0.2872675
4040. 0.2972141
4060. 0.3050674
4080. 0.3141283
4100. 0.3218333
4120. 0.3312858
4140. 0.3394273
4160. 0.3473603
4180. 0.3565815
4200. 0.36561
4220. 0.3742692
4240. 0.3815137
4260. 0.3849453
4280. 0.3904137
4300. 0.3942093
4320. 0.3982292
4340. 0.4006563
4360. 0.4027852
4380. 0.4047674
4400. 0.4058359
4420. 0.4061446
4440. 0.4054919
4460. 0.4034607
4480. 0.4018481
4500. 0.3992436
4520. 0.3958408
4540. 0.3938549
4560. 0.3927234
4580. 0.3913233
4600. 0.3874837
4620. 0.3824821
4640. 0.3755293
4660. 0.3665921
4680. 0.3556488
4700. 0.3430867
4720. 0.3286391
4740. 0.3118805
4760. 0.2942557
4780. 0.2760792
4800. 0.2574672
4820. 0.2390427
4840. 0.2202965
4860. 0.2007258
4880. 0.1826889
4900. 0.1661846
4920. 0.1506147
4940. 0.13641
4960. 0.1241771
4980. 0.1130995
5000. 0.1025618
5020. 0.09179091
5040. 0.08036646
5060. 0.06922001
5080. 0.05910528
5100. 0.05040132
5120. 0.04288751
5140. 0.03633823
5160. 0.0305933
5180. 0.02538498
5200. 0.02068356
5220. 0.01658303
5240. 0.01315222
5260. 0.01034052
5280. 0.008124945
5300. 0.006424342
5320. 0.005168464
5340. 0.004301401
5360. 0.00367737
5380. 0.002925989
5400. 0.002051711
5420. 0.001071448
5440. 0.

0 comments on commit e4e254a

Please sign in to comment.