Git Product home page Git Product logo

supernovae's Introduction

Open Supernova Catalog

Build Status Coverage Status Python Version ArXiv Paper

This is the primary repository for the Open Supernova Catalog (OSC), a module for the AstroCats catalog generation package. This repository also contains the primary JSON catalog file generated by AstroCats, which is used to drive the web-based table available on sne.space. Because GitHub repositories are limited to 1GB each, individual event JSON files are stored in separate repositories that are collated by year; these repositories contain the entirety of the data collected by the OSC:

https://github.com/astrocatalogs/sne-pre-1990 – Supernovae discovered before 1990.
https://github.com/astrocatalogs/sne-1990-1999 – Supernovae discovered between 1990 and 1999.
https://github.com/astrocatalogs/sne-2000-2004 – Supernovae discovered between 2000 and 2004.
https://github.com/astrocatalogs/sne-2005-2009 – Supernovae discovered between 2005 and 2009.
https://github.com/astrocatalogs/sne-2010-2014 – Supernovae discovered between 2010 and 2014.
https://github.com/astrocatalogs/sne-2015-2019 – Supernovae discovered between 2015 and the present.

Contributing Data

To contribute data to the repository, please read our contribution guide.

Format of Data Files

The data files are in JSON format, a detailed description of the particular structure we have chosen is available here.

Installing and Running OSC Import Script

If you are interested in reproducing the catalog on your own machine, you must first install AstroCats and its dependencies, and then install this repository into the astrocats directory

conda install matplotlib scipy
pip install -r requirements.txt
git clone https://github.com/astrocatalogs/astrocats.git
cd astrocats/astrocats
git clone https://github.com/astrocatalogs/supernovae.git

The OSC software is run in Python 3.4+ and is not tested for compatability with Python 2. After installing, navigate to the astrocats directory and execute the import script,

cd ..
python -m astrocats supernovae import

and the import process will begin. The first time you run the import may take over a day as the caches of many sources will need to be built from scratch (particularly collecting spectra from WISeREP); after the initial run the typical run time for the import is a few hours, and in update mode (python -m astrocats supernovae import -u), typical runtime is less than an hour. Runtime can be reduced significantly by selecting only specific tasks to run (below we just run the internal task),

python -m astrocats supernovae import --tasks internal

with the cheapest tasks typically appearing near the top of the tasks.json file. The above example should take less than a minute to execute.

Using the Collected OSC Data

There are several scripts in the scripts folders (both in this module and in the scripts folder of the main AstroCats module) that use the produced datafiles to generate various data products, print out metrics, etc. These are standalone scripts that can be invoked in the following way,

python -m astrocats.scripts.webcat -c sne

where above we run the script that generates the web-based supernova catalog. Some scripts are specific to the supernova module and are available within that directory, and can be invoked as follows

python -m astrocats.supernovae.scripts.histograms

supernovae's People

Contributors

blanchpk avatar guillochon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.