24 #include <boost/program_options.hpp>
30 namespace po = boost::program_options;
35 infile.open(filename.c_str());
47 po::options_description desc(
"Receiver function calculation options");
48 desc.add_options()(
"cc", po::value<double>(&cc),
49 "The waterlevel for the deconvolution")(
"shift",
50 po::value<int>(&shift)->default_value(0),
51 "The shift in s of the initial correlation peak")(
"sigma",
52 po::value<double>(&sigma)->default_value(1.0),
53 "The bandwidth of the receiver function")(
"recmethod",
54 po::value<std::string>(&recmethod),
"The deconvolution method")(
"normalize",
55 po::value<bool>(&normalize),
"Normalize the receiver function")(
"upperfreq",
56 po::value<double>(&upperfreq)->default_value(-1.0),
"")(
"lowerfreq",
57 po::value<double>(&lowerfreq)->default_value(-1.0),
"")(
"rotate",
58 po::value<bool>(&rotate)->default_value(
false))(
"prec",
59 po::value<bool>(&prec)->default_value(
true))(
"beta",
60 po::value<double>(&beta)->default_value(3.5))(
"p",
61 po::value<double>(&p)->default_value(-1));
64 po::store(po::parse_config_file(instream, desc), vm);
65 po::store(po::parse_command_line(argc, argv, desc), vm);
void GetData(std::string filename)
The basic exception class for all errors that arise in gplib.