10 using namespace
12 int main
20 "$Id: anisomt.cpp 1816 2009-09-07 11:28:35Z mmoorkamp $"
cout << "Program "
<< version << endl;
<< "Calculates 1D MT Responses with Anisotropy from input models "
cout << "Based on Pek and Santos code. "
cout << "You can give up to 3 command line parameters: "
cout << " anisomt modelfilename outfilebase masterfile "
<< " Modelfilename: The name of the file containing the model"
<< " Outfilebase: The name of the outputfiles without ending,"
<< " the code will produce 2 files with additional endings .mtt and .ptensor"
<< " Masterfile: A regular MT data file, the frequencies in this files "
<< " will be used as the frequencies for the forward calculation "
<< "If not command line parameters are given the program will ask for the first two parameters"
cout << "and use a standard set of frequencies. "
<< endl << endl;
modelfilename = argv;
modelfilename = AskFilename("Model filename: "
mttfilename = argv;
cout << "Output Format is .mtt ! Do not append ending. "
mttfilename = AskFilename("Output Filename: "
cerr << e.what() << endl;
cerr << "Fatal Error, aborting !"
virtual void GetData()
Calculate the synthetic data given the previously set parameters.
Calculate response of a 1D anisotropic model, code is based on Pek and Santos fortran code...
void WriteData(const std::string &filename)
The class MTStation is used to store the transfer functions and related information for a MT-site...
void ReadModel(std::string filename)
void WriteAsMtt(const std::string filename)
Write data in goettingen .mtt format.
int main(int argc, char *argv)
trealdata GetFrequencies() const
return the available frequencies in a single vector
void SetFrequencies(const trealdata &freqs)
Set the frequencies of the tensor elements, invalidates the previously stored impedance data...
The basic exception class for all errors that arise in gplib.