19 std::string filename =
"pyphot_library.hdf5";
23 std::cout << lib <<
"\n";
25 std::ofstream out(
"filters_properties.csv");
28 <<
"detector type" <<
", "
29 <<
"wavelength units" <<
", "
30 <<
"number of def points" <<
", "
31 <<
"central wavelength (nm)" <<
", "
32 <<
"pivot wavelength (nm)" <<
", "
33 <<
"effective wavelength (nm)" <<
", "
34 <<
"Vega mag (mag)" <<
", "
35 <<
"Vega flux (flam)" <<
", "
36 <<
"Vega flux (Jy)" <<
", "
37 <<
"AB mag (mag)" <<
", "
38 <<
"AB flux (flam)" <<
", "
39 <<
"AB flux (Jy)" <<
", "
40 <<
"ST mag (mag)" <<
", "
41 <<
"ST flux (flam)" <<
", "
45 for (
auto &
c : lib.get_content()) {
46 auto current = lib.load_filter(
c);
47 out << current.get_name() <<
", "
48 << (current.is_photon_type() ?
"photon" :
"energy") <<
", "
50 << current.get_wavelength().size() <<
", "
51 << current.get_cl().to(
nm) <<
", "
52 << current.get_lpivot().to(
nm) <<
", "
53 << current.get_leff().to(
nm) <<
", "
54 << current.get_Vega_zero_mag() <<
", "
55 << current.get_Vega_zero_flux().to(
flam) <<
", "
56 << current.get_Vega_zero_Jy().to(
Jy) <<
", "
57 << current.get_AB_zero_mag() <<
", "
58 << current.get_AB_zero_flux().to(
flam) <<
", "
59 << current.get_AB_zero_Jy().to(
Jy) <<
", "
60 << current.get_ST_zero_mag() <<
", "
61 << current.get_ST_zero_flux().to(
flam) <<
", "
62 << current.get_ST_zero_Jy().to(
Jy)
66 std::cout << lib.find(
"gaia",
false) <<
"\n";