cphot 0.1
A C++ tool for computing photometry from spectra.
Input/Output

Tools to read and write filter libraries. More...

Functions

Filter cphot::get_filter (votable::VOTable &vot)
 Get the filter object from VOTable object. More...
 
Filter cphot::get_filter (const std::string &vot_filename)
 Get the filter object from a VOTable file. More...
 
Filter cphot::download_svo_filter (const std::string &id)
 main interface to SVO data requests More...
 
std::string cphot::download_pyphot_hdf5library (const std::string &where="./pyphot_library.hdf5")
 Download the filter library from pyphot repository. More...
 

Detailed Description

Tools to read and write filter libraries.

Version
0.1

Function Documentation

◆ download_pyphot_hdf5library()

std::string cphot::download_pyphot_hdf5library ( const std::string &  where = "./pyphot_library.hdf5")

Download the filter library from pyphot repository.

The url to pyphot's file is hard-coded in the function for: "https://raw.githubusercontent.com/mfouesneau/pyphot/master/pyphot/libs/new_filters.hd5"

Parameters
wherewhere to store the hdf5 file
Returns
std::string path to the hdf5 file

Definition at line 97 of file io.hpp.

◆ download_svo_filter()

Filter cphot::download_svo_filter ( const std::string &  id)

main interface to SVO data requests

Query the SVO filter profile service and return the filter object (http://svo2.cab.inta-csic.es/theory/fps)

Parameters
idpassband id
Returns
std::string data content

Definition at line 79 of file io.hpp.

◆ get_filter() [1/2]

Filter cphot::get_filter ( const std::string &  vot_filename)

Get the filter object from a VOTable file.

Parameters
vot_filenamepath to the xml file
Returns
Filter object

Definition at line 62 of file io.hpp.

◆ get_filter() [2/2]

Filter cphot::get_filter ( votable::VOTable vot)

Get the filter object from VOTable object.

Parameters
votvotable document
Returns
Filter object

Definition at line 23 of file io.hpp.