9 int main(
int argc,
char* argv[])
11 string version =
"$Id: goe2j.cpp 1842 2010-04-09 14:30:17Z mmoorkamp $";
13 cout <<
"Program " << version << endl;
14 cout <<
" Convert edi files to .mtt and .j format." << endl;
16 <<
" Input is a file that contains the names of the edi files to convert."
18 cout <<
" For each file two new files in .j and .mtt format are written."
29 infilename = AskFilename(
"Input Filename: ");
33 for (
unsigned int i = 0; i < MTSites.
GetList().size(); ++i)
35 cout <<
"Writing site " << MTSites.
GetList().at(i).GetName();
38 cout <<
" ... done" << endl;
42 cout <<
"Common frequencies: ";
53 cout <<
"Could not find any files !" << std::endl;
MTStation & at(int loc)
Get a reference to a site at a given index.
void WriteList(const std::string filename="station.list")
Write the names of the sites in the current list to a file.
void WriteAsJ(const std::string filename)
Write data to j-file.
const trealdata & GetCommonFrequencies()
Get a vector with frequencies that are common to all sites.
MTStationList holds a number of MTSites, usually associated with a single project, line, etc.
tStationList & GetList()
Access to the complete vector of Stations.
void WriteAsMtt(const std::string filename)
Write data in goettingen .mtt format.
void GetData(const std::string filename)
Read a list of filenames and the associated data in those files to fill the list. ...
int main(int argc, char *argv[])