10 using namespace gplib;
 
   12 int main(
int argc, 
char *argv[])
 
   20                 "$Id: anisomt.cpp 1816 2009-09-07 11:28:35Z mmoorkamp $";
 
   22             cout << 
"Program " << version << endl;
 
   24                 << 
"Calculates 1D MT Responses with Anisotropy from input models " 
   26             cout << 
"Based on Pek and Santos code. " << endl;
 
   27             cout << 
"You can give up to 3 command line parameters: " << endl;
 
   28             cout << 
"  anisomt modelfilename outfilebase masterfile " << endl
 
   31                 << 
"  Modelfilename: The name of the file containing the model" 
   34                 << 
"  Outfilebase: The name of the outputfiles without ending," 
   37                 << 
"  the code will produce 2 files with additional endings .mtt and .ptensor" 
   40                 << 
"  Masterfile: A regular MT data file, the frequencies in this files " 
   43                 << 
"  will be used as the frequencies for the forward calculation " 
   46                 << 
"If not command line parameters are given the program will ask for the first two parameters" 
   48             cout << 
"and use a standard set of frequencies. " << endl << endl;
 
   53         string modelfilename, mttfilename;
 
   58             modelfilename = argv[1]; 
 
   63             modelfilename = AskFilename(
"Model filename: ");
 
   70             mttfilename = argv[2]; 
 
   74             cout << 
"Output Format is .mtt ! Do not append ending. " << endl;
 
   75             mttfilename = AskFilename(
"Output Filename: ");
 
   90         cerr << e.what() << endl;
 
   94         cerr << 
"Fatal Error, aborting !" << endl;
 
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.