cphot 0.1
A C++ tool for computing photometry from spectra.
Using pyphot filter library

This page shows the content of the pyphot library with the respective properties of the passband filters. The code to generate the table is also provided in hdf5test.cpp.

You can download the pyphot library using cphot::download_pyphot_hdf5library and use the cphot::HDF5Library interface.

A short example below shows how to use that library.

#include <cphot/io.hpp>
// where to save the file
std::string filename = "pyphot_library.hdf5";
// use the library (like in pyphot)
std::cout << lib << "\n";
auto f = lib.load_filter("HST_WFC3_F160W");
f.info();

Library content

Zeropoints are defined for Vega, AB, and ST systems, while also accounting for the detector type.

Pyphot Filter Library

cphot::HDF5Library::load_filter
Filter load_filter(const std::string &filter_name)
Load a given filter from the library.
Definition: library.hpp:180
io.hpp
library.hpp
cphot::Filter::info
void info()
Display some information on cout.
Definition: filter.hpp:467
cphot::download_pyphot_hdf5library
std::string download_pyphot_hdf5library(const std::string &where="./pyphot_library.hdf5")
Download the filter library from pyphot repository.
Definition: io.hpp:97
cphot::HDF5Library
Storage of filters in HDF5 format.
Definition: library.hpp:135