22 cout <<
" Swap all phases by 180 degrees." << endl;
23 string infilename = AskFilename(
"Input Filename: ");
25 for (
unsigned int i = 0; i < MTSites.
GetList().size(); ++i)
27 cout <<
"Working on site " << MTSites.
GetList().at(i).GetName();
28 for (
unsigned int j = 0; j < MTSites.
GetList().at(i).GetMTData().size(); ++j)
30 MTSites.
GetList().at(i).SetMTData().at(j).SetZxx() *= -1.0;
31 MTSites.
GetList().at(i).SetMTData().at(j).SetZxy() *= -1.0;
32 MTSites.
GetList().at(i).SetMTData().at(j).SetZyx() *= -1.0;
33 MTSites.
GetList().at(i).SetMTData().at(j).SetZyy() *= -1.0;
36 cout <<
" ... done" << endl;
MTStation & at(int loc)
Get a reference to a site at a given index.
void WriteAsJ(const std::string filename)
Write data to j-file.
MTStationList holds a number of MTSites, usually associated with a single project, line, etc.
tStationList & GetList()
Access to the complete vector of Stations.
void GetData(const std::string filename)
Read a list of filenames and the associated data in those files to fill the list. ...