Skip to content

Commit

Permalink
Merge pull request #306 from kboone/ps1_filters
Browse files Browse the repository at this point in the history
Add PS1 bandpasses
  • Loading branch information
kboone committed Aug 23, 2021
2 parents 9d098b7 + 4159e88 commit 5a68563
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sncosmo/builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,21 @@ def tophat_bandpass_um(ctr, width, name=None):
args=(fname,),
meta=swift_meta)

# Pan-STARRS1
ps1_meta = {
'filterset': 'ps1',
'dataurl': 'https://ipp.ifa.hawaii.edu/ps1.filters/',
'reference': ('T12', '`Tonry 2012 <http://adsabs.harvard.edu/'
'abs/2012ApJ...750...99T>`__, Table 3'),
'retrieved': '17 Aug 2021',
'description': 'Pan-STARRS1 filters at airmass 1.2'
}
for filter_id in ['open', 'g', 'r', 'i', 'z', 'y', 'w']:
name = 'ps1::{}'.format(filter_id)
fname = "bandpasses/ps1/ps1_{}.dat".format(filter_id)
_BANDPASSES.register_loader(name, load_bandpass_remote_nm,
args=(fname,),
meta=ps1_meta)

# =============================================================================
# interpolators
Expand Down

0 comments on commit 5a68563

Please sign in to comment.