#include "RecCalc.h"#include "CCalcRecConf.h"#include "ResPkModel.h"#include "SeismicDataComp.h"#include <iostream>#include <string>#include <algorithm>#include <readline/readline.h>Include dependency graph for calcrec2.cpp:

Go to the source code of this file.
Functions | |
| int | main () |
| int main | ( | void | ) |
Definition at line 13 of file calcrec2.cpp.
References RecCalc::CalcRecSynth(), CCalcRecConf::cc, SeismicModel::dt, ResPkModel::GetData(), CCalcRecConf::GetData(), SeismicModel::npts, CCalcRecConf::omega, CCalcRecConf::shift, CCalcRecConf::sigma, SeismicModel::slowness, SeismicDataComp::WriteAsSac(), and SeismicModel::WritePlot().
00014 { 00015 00016 int npts; 00017 double dt; 00018 double slowness; 00019 00020 CCalcRecConf Config; 00021 00022 Config.GetData("calcrec.conf"); 00023 00024 //cout << "Model Filename: "; 00025 //cin >> modelfilename; 00026 char *inputline = readline("Model Filename without extension (.mod): "); 00027 string modelfilename(inputline); 00028 free(inputline); 00029 cout << "Dt: "; 00030 cin >> dt; 00031 cout << "Npts: "; 00032 cin >> npts; 00033 cout << "Slowness: "; 00034 cin >> slowness; 00035 SeismicDataComp Result; 00036 RecCalc Receiver(Config.shift,Config.omega,Config.sigma,Config.cc); 00037 ResPkModel Model; 00038 Model.GetData(modelfilename+".mod"); 00039 Model.dt = dt; 00040 Model.npts = npts; 00041 Model.slowness = slowness; 00042 Receiver.CalcRecSynth(modelfilename,Model,Result,false); 00043 Result.WriteAsSac(modelfilename+".rec"); 00044 Model.WritePlot(modelfilename); 00045 }
Here is the call graph for this function:

1.5.1