GPLIB++
|
MTStationList holds a number of MTSites, usually associated with a single project, line, etc. More...
#include <MTStationList.h>
Public Member Functions | |
tStationList & | GetList () |
Access to the complete vector of Stations. More... | |
void | GetData (const std::string filename) |
Read a list of filenames and the associated data in those files to fill the list. More... | |
void | WriteList (const std::string filename="station.list") |
Write the names of the sites in the current list to a file. More... | |
void | WriteAllData () |
Write the data of each station to an individual file. More... | |
const std::vector< tindexvector > & | GetComFreqIndices () |
Get a vector that for each site contains the indices to the common frequencies. More... | |
const trealdata & | GetCommonFrequencies () |
Get a vector with frequencies that are common to all sites. More... | |
MTStation & | at (int loc) |
Get a reference to a site at a given index. More... | |
MTStationList (double freqtol=0.05) | |
virtual | ~MTStationList () |
MTStationList holds a number of MTSites, usually associated with a single project, line, etc.
Definition at line 16 of file MTStationList.h.
gplib::MTStationList::MTStationList | ( | double | freqtol = 0.05 | ) |
Definition at line 16 of file MTStationList.cpp.
|
virtual |
Definition at line 21 of file MTStationList.cpp.
MTStation & gplib::MTStationList::at | ( | int | loc | ) |
Get a reference to a site at a given index.
Definition at line 67 of file MTStationList.cpp.
Referenced by main(), and PrintComponent().
|
inline |
Get a vector that for each site contains the indices to the common frequencies.
Definition at line 42 of file MTStationList.h.
Referenced by main(), and PrintComponent().
|
inline |
Get a vector with frequencies that are common to all sites.
Definition at line 47 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 25 of file MTStationList.cpp.
References gplib::MTStation::GetData(), gplib::MTStation::SetLatitude(), and gplib::MTStation::SetLongitude().
Referenced by main(), and PromptAndReadStationFile().
|
inline |
Access to the complete vector of Stations.
Definition at line 31 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 87 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 72 of file MTStationList.cpp.
Referenced by main().