Coder Social home page Coder Social logo

mfouesneau / cphot Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.97 MB

A C++ portage of pyphot for computing photometry from spectra

Home Page: https://mfouesneau.github.io/cphot

CMake 0.26% C++ 90.43% C 1.65% HTML 7.66%
cpp photometry astronomy-software

cphot's Introduction

cphot -- A C++ tool for computing photometry from spectra

This project is a portage from pyphot, a Python tool for computing photometry from spectra.

This package is a header-only library to compute synthetic photometry in a simple way, ideal to integrate into larger projects.

Complete documentation at: http://mfouesneau.github.io/cphot/

The inputs are photonic or energetic response functions for the desired photometric bands and stellar spectra. The modules are flexible to handle (some) units in the wavelength and flux definitions through a simplified code.

Filters are represented individually by a cphot::Filter object.

One can use a collection of filters handled with a cphot::HDF5Library. For example, the internal library of pyphot contains a significant amount of standard filters. We also provide a single function interface to the SVO Filter Profile Service cphot::download_svo_filter

Each filter is minimally defined by a wavelength and throughput. Many properties such as central or pivot wavelength are computed internally. 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 transparently for the computations.

Open in Gitpod

What's new?

  • [Dec 15, 2021] Added cphot::download_pyphot_hdf5library for convenience.
  • [Dec 14, 2021] Added cphot::HDF5Library interface and revised documentation.
  • [Dec 10, 2021] First portage of the pyphot library to C++. (no internal library)

Contributors

Author:

  • Morgan Fouesneau

cphot's People

Contributors

mfouesneau avatar

Stargazers

 avatar

Watchers

 avatar  avatar

cphot's Issues

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.