Giter Club home page Giter Club logo

pyphot's Introduction

pyphot -- A tool for computing photometry from spectra

This is a set of tools to compute synthetic photometry in a simple way, ideal to integrate in larger projects.

full documentation at: http://mfouesneau.github.io/docs/pyphot/

The inputs are photonic or energetic response functions for the desired photometric bands and stellar spectra. The modules are flexible to handle units in the wavelength definition through a simplified version of pint (link) and astropy.units

Filters are represented individually by a Filter object. Collections of filters are handled with a Library. We provide an internal library that contains a signitificant amount of common filters.

Each filter is minimally defined by a wavelength and throughput. Many properties such as central of pivot wavelength are computed internally. When units are provided for the wavelength, zero points in multiple units are also accessible (AB, Vega magnitude, Jy, erg/s/cm2/AA). The default detector type is assumed to be photonic, but energetic detectors are also handled for the computations.

What's new?

  • [November 6, 2019] astropy version available in beta (from pyphot import astropy as pyphot)
  • [April 29, 2019] sandbox contains fully unit aware passbands and lick indices libraries
  • [April 15, 2019] merged UncertainFilter to main, sandbox contains passbands accounting for spectrum units
  • [March 4, 2019] added flux calculations in photon/s/cm2
  • [March 4, 2019] added many properties per filter (lphot, lmin, lmax)
  • [June 12, 2018] adding Sun reference spectra (see :class:Sun)
  • [Apr. 26, 2018] includes Gaia nominal, DR2 and revised DR2 passbands

Installation

  • Install with pip
pip install git+https://github.com/mfouesneau/pyphot

(--user if you want to install it in your user profile)

  • Manual installation

download the repository and run the setup

python setup.py install

Contributors

Author:

Morgan Fouesneau

Direct contributions to the code base:

  • Tim Morton (@timothydmorton)
  • Ariane Lancon (@lancon)

pyphot's People

Contributors

jvines avatar lancon avatar mfouesneau avatar timothydmorton 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.