Skip to content

Download and normalize published supernova photometric data

License

Notifications You must be signed in to change notification settings

kbarbary/sndatasets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sndatasets

Download and normalize published supernova photometric data.

This is work in progress based on code by David Rubin. This may eventually be merged into sncosmo, e.g., as a sncosmo.datasets subpackage, but that is not yet clear.

Other than making it easy to load published SN datasets in a consistent fashion, this package aims to be maximally reproducible. Therefore, data are fetched from online sources whenever possible. In cases where data are not available online (e.g., it had to be copy-pasted from the text of a published paper), the data are included alongside the source code, sometimes with hand-editing to make the data machine-readable. In addition, some small metadata are currently hard-coded in the source code.

Current API

The following functions return a dictionary of astropy.table.Tables, with each table holding the photometric data for a supernova. The dictionary is keyed by the supernova name.

  • sndatasets.load_kowalski08(): Nearby 99 sample from Kowalski et al 2008.
  • sndatasets.load_hamuy96(): Calan-Tololo sample from Hamuy et al 1996.

Currently just uses sndatasets.CACHE_DIR to cache downloaded files (default value is 'cache'), but this is likely to change.

About

Download and normalize published supernova photometric data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%