11 #include <boost/program_options.hpp>
15 namespace po = boost::program_options;
27 po::options_description desc(
"Receiver function inversion options");
28 desc.add_options()(
"recinfofile", po::value<std::string>(&
recinfofile),
29 "The file containing information about the receiver function data")(
30 "recmethod", po::value<std::string>(&
recmethod)->default_value(
"iterdecon"),
31 "The method to calculate the receiver function, iterdecon oder specdiv")(
32 "normrec", po::value<bool>(&
normrec)->default_value(
false),
33 "The receiver functions have been normalized ")(
"recfitexponent",
35 "The exponent for the misfit functional")(
"starttime", po::value<
37 "The start time for the part of the RF considered in the inversion in s")(
38 "endtime", po::value<double>(&
endtime)->default_value(-1.0),
39 "The end time for the part of the RF considered in the iversion in s");
42 po::store(po::parse_config_file(instream, desc,
true), vm);
void GetData(std::ifstream &instream)