gplib::MTStationList Class Reference
[MT data analysis, processing and inversion]

MTStationList holds a number of MTSites, usually associated with a single project, line, etc. More...

#include <MTStationList.h>

List of all members.

Public Member Functions

tStationListGetList ()
 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.
void WriteList (const std::string filename="station.list")
 Write the names of the sites in the current list to a file.
void WriteAllData ()
 Write the data of each station to an individual file.
const std::vector< tindexvector > & GetComFreqIndices ()
 Get a vector that for each site contains the indices to the common frequencies.
const trealdata & GetCommonFrequencies ()
 Get a vector with frequencies that are common to all sites.
MTStationat (int loc)
 Get a reference to a site at a given index.
 MTStationList ()
virtual ~MTStationList ()


Detailed Description

MTStationList holds a number of MTSites, usually associated with a single project, line, etc.

Definition at line 16 of file MTStationList.h.


Constructor & Destructor Documentation

gplib::MTStationList::MTStationList (  ) 

Definition at line 17 of file MTStationList.cpp.

gplib::MTStationList::~MTStationList (  )  [virtual]

Definition at line 20 of file MTStationList.cpp.


Member Function Documentation

MTStation & gplib::MTStationList::at ( int  loc  ) 

Get a reference to a site at a given index.

Definition at line 60 of file MTStationList.cpp.

Referenced by main(), and PrintComponent().

const std::vector<tindexvector>& gplib::MTStationList::GetComFreqIndices (  )  [inline]

Get a vector that for each site contains the indices to the common frequencies.

Definition at line 40 of file MTStationList.h.

Referenced by main(), and PrintComponent().

const trealdata& gplib::MTStationList::GetCommonFrequencies (  )  [inline]

Get a vector with frequencies that are common to all sites.

Definition at line 45 of file MTStationList.h.

Referenced by main(), and PromptAndReadFreqIndex().

void gplib::MTStationList::GetData ( const std::string  filename  ) 

Read a list of filenames and the associated data in those files to fill the list.

Definition at line 24 of file MTStationList.cpp.

References gplib::MTStation::GetData(), gplib::MTStation::SetLatitude(), and gplib::MTStation::SetLongitude().

Referenced by main(), and PromptAndReadStationFile().

tStationList& gplib::MTStationList::GetList (  )  [inline]

Access to the complete vector of Stations.

Definition at line 29 of file MTStationList.h.

Referenced by main(), and PrintComponent().

void gplib::MTStationList::WriteAllData (  ) 

Write the data of each station to an individual file.

Definition at line 80 of file MTStationList.cpp.

void gplib::MTStationList::WriteList ( const std::string  filename = "station.list"  ) 

Write the names of the sites in the current list to a file.

Definition at line 65 of file MTStationList.cpp.

Referenced by main().


The documentation for this class was generated from the following files:

Generated on Tue Nov 3 13:24:21 2009 for GPLIB++ by  doxygen 1.5.8