Code Monkey home page Code Monkey logo

snpy's Introduction

PURPOSE

SNPY (or more affectionately SNooPy) is a Python package for fitting the light-curves of TypeIa supernovae. It is NOT an off-the-shelf program that will do all the work for you from the command line. It is meant to be run interactively. It provides many tools, but does not lock you into a specific routine for fitting and therefore allows for a great deal of customization. The package also contains a number of stand-alone sub-packages that can be installed seperately.

You can find intructions for installing snpy in the INSTALL file and at the following website:

http://csp.obs.carnegiescience.edu/data/snpy/installing_snoopy2

Documentation can be found the the docs/ directory under the source tree.
But briefly, here is what SNOOPY can do:

  • Fit lightcurve templates to data. These templates were constructed from the Carnegie Supernova Project's low-z data set (as outlined in Contreras et al. (2009) and Folatelli et al. (2010)). These include templates for the CSP uBVgriYJH filter set. You can also use Jose- Louis Prieto's templates to fit Johnson/Kron/Cousins BRVI lightcurves.

  • Using templates, fit for distance (and dm15, E(B-V), stretch, time of maximum, etc. This uses the calibration of Folatelli et al. (2010) for the CSP filter set, or Prieto et al. (2006) for the BVRI set.

  • Alternatively, fit for light-curve parameters only (dm15, stretch, time of maximum, maximum light, colors, etc).

  • Compute k-corrections based on the spectral energy distribution template of Hsiao et al. (2007) (+ Lu et al. 2003 if would like to use the updated NIR template). This includes color-matching the SED template to the observed filters. You can do plain K-corrections or cross-band K-corrections. This is normally done as part of the fitting procedure, but can be done separately.

  • Fit splines, Gaussian Processes, and polynomials to light-curves to do your own analysis, independent of the light-curve templates.

  • Built-in Lira Law to estimate E(B-V).

  • Various plotting routines.

  • Interact with a properly set-up SQL database.

The subpackages include:

  • filters: a package for working with filter systems. computing zero-points, producing synthetic photometry, etc.

  • dm15temp: a python wrapper to Jose-Louis Prieto's light-curve generator

  • CSPtemp: a generator for the CSP light-curve templates.

  • spline2: a python wrapper to the Hyperspline (or spline2) algorithm, which uses the Durbin-Watson statistic rather than chi-square. Good if you don't trust your error bars.

  • tspack: a python wrapper to the TSPACK library: generating tension splines.'''

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.