#include <MTStation.h>

Public Types | |
| enum | tmtdataformat { unknown, mtt, j, edi, pek } |
Public Member Functions | |
| void | AssignAll (const int nfreq) |
| void | Rotate (const double rotangle) |
| void | Rotate (void) |
| Rotate to zero rotation angle. | |
| 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, mainly for creating synthetic data. | |
| double | GetLatitude () const |
| access funtion for Latitude | |
| void | SetLatitude (double lat) |
| double | GetLongitude () const |
| void | SetLongitude (double lon) |
| double | GetElevation () const |
| std::string | GetName () |
| double | GetAzimuth () const |
| const MTTensor & | at (const unsigned int i) const |
| direct acces to a tensor at a given index | |
| const std::vector< MTTensor > & | GetMTData () const |
| Get the full vector of Tensor elements read only. | |
| std::vector< MTTensor > & | SetMTData () |
| Get the full vector of Tensor elements for reading and writing. | |
| virtual MTStation * | clone () const |
| for parallel runs we need to make a copy of the object and its derived classes | |
| MTStation & | operator= (const MTStation &source) |
| MTStation () | |
| MTStation (const MTStation &old) | |
| MTStation (const int size) | |
| MTStation (const std::string filename) | |
| virtual | ~MTStation () |
| virtual void | GetData (const std::string filename) |
| read in data from file, determines format by ending | |
| virtual void | GetData () |
| virtual void | WriteData (const std::string filename) |
| void | WriteAsMtt (const std::string filename) |
| Write data in goettingen .mtt format. | |
| void | WriteAsEdi (const std::string filename) |
| Write data as edi (no functionality yet). | |
| void | WriteAsJ (const std::string filename) |
| Write data to j-file. | |
| void | WriteBack () |
| Write data back in original format, with filename given by station name. | |
Protected Member Functions | |
| void | Update () |
| Update all derived quantities. | |
| void | Assign (const int nfreq) |
| Assign() assigns zero to all derived quantities, this makes the calculation. | |
Friends | |
| class | C1DMTSynthData |
Definition at line 14 of file MTStation.h.
| MTStation::MTStation | ( | ) |
| MTStation::MTStation | ( | const MTStation & | old | ) |
| MTStation::MTStation | ( | const int | size | ) |
| MTStation::MTStation | ( | const std::string | filename | ) |
| MTStation::~MTStation | ( | ) | [virtual] |
Definition at line 43 of file MTStation.cpp.
| void MTStation::Assign | ( | const int | nfreq | ) | [protected] |
Assign() assigns zero to all derived quantities, this makes the calculation.
Definition at line 63 of file MTStation.cpp.
Referenced by AssignAll(), C1DMTSynthData::GetData(), C1DAnisoMTSynthData::GetData(), and MTStation().
| void MTStation::AssignAll | ( | const int | nfreq | ) |
direct acces to a tensor at a given index
Definition at line 100 of file MTStation.h.
Referenced by main(), PTensorMTStation::operator=(), PrintComponent(), PTensor1DMTObjective::SafeParallel(), and WriteToFile().
| virtual MTStation* MTStation::clone | ( | ) | const [inline, virtual] |
for parallel runs we need to make a copy of the object and its derived classes
Reimplemented in C1DAnisoMTSynthData, and C1DMTSynthData.
Definition at line 115 of file MTStation.h.
References MTStation().
| double MTStation::GetAzimuth | ( | ) | const [inline] |
Definition at line 94 of file MTStation.h.
| virtual void MTStation::GetData | ( | ) | [inline, virtual] |
Reimplemented in C1DAnisoMTSynthData, and C1DMTSynthData.
Definition at line 127 of file MTStation.h.
Referenced by MTStation().
| void MTStation::GetData | ( | const std::string | filename | ) | [virtual] |
| double MTStation::GetElevation | ( | ) | const [inline] |
Definition at line 86 of file MTStation.h.
| trealdata MTStation::GetFrequencies | ( | ) | const |
return the available frequencies in a single vector
Return a vector containing the available frequencies; This should be rewritten to be more efficient
Definition at line 125 of file MTStation.cpp.
References MTTensor::GetFrequency().
Referenced by C1DMTSynthData::GetData(), C1DAnisoMTSynthData::GetData(), main(), and PTensor1DMTObjective::SafeParallel().
| double MTStation::GetLatitude | ( | ) | const [inline] |
access funtion for Latitude
Definition at line 70 of file MTStation.h.
Referenced by PrintComponent().
| double MTStation::GetLongitude | ( | ) | const [inline] |
| const std::vector<MTTensor>& MTStation::GetMTData | ( | ) | const [inline] |
Get the full vector of Tensor elements read only.
Definition at line 105 of file MTStation.h.
Referenced by main(), PTensorMTStation::operator=(), PrintComponent(), C1DMTObjective::SafeParallel(), WriteParameterToFile(), and WriteToFile().
| std::string MTStation::GetName | ( | ) | [inline] |
Definition at line 90 of file MTStation.h.
Referenced by main(), HasSameName::operator()(), and PrintComponent().
| void MTStation::Rotate | ( | void | ) |
Rotate to zero rotation angle.
Rotate(void) rotates the impedance tensor by the negative of the angle given in the rotangles field
Definition at line 115 of file MTStation.cpp.
References Update().
Referenced by GetData().
| void MTStation::Rotate | ( | const double | rotangle | ) |
Given a rotation angle in radian this method rotates the impedance tensor and updates all derived quantities
Rotate(const double rotangle) rotates the impedance tensor by the angle rotangle in radian and updates all derived quantities
Definition at line 104 of file MTStation.cpp.
References Update().
| void MTStation::SetFrequencies | ( | const trealdata & | freqs | ) |
Set the frequencies of the tensor elements, invalidates the previously stored impedance data, mainly for creating synthetic data.
Definition at line 133 of file MTStation.cpp.
Referenced by main(), PTensor1DMTObjective::SafeParallel(), and C1DMTObjective::SafeParallel().
| void MTStation::SetLatitude | ( | double | lat | ) | [inline] |
| void MTStation::SetLongitude | ( | double | lon | ) | [inline] |
| std::vector<MTTensor>& MTStation::SetMTData | ( | ) | [inline] |
Get the full vector of Tensor elements for reading and writing.
Definition at line 110 of file MTStation.h.
Referenced by main(), and PrintComponent().
| void MTStation::Update | ( | ) | [protected] |
Update all derived quantities.
The Update() method first updates all components individually and then recalculates all derived quantities that depend on more than one component
Definition at line 73 of file MTStation.cpp.
Referenced by C1DMTSynthData::GetData(), C1DAnisoMTSynthData::GetData(), MTStation(), operator=(), Rotate(), and WriteAsMtt().
| void MTStation::WriteAsEdi | ( | const std::string | filename | ) |
Write data as edi (no functionality yet).
Definition at line 484 of file MTStation.cpp.
Referenced by WriteBack().
| void MTStation::WriteAsJ | ( | const std::string | filename | ) |
Write data to j-file.
Definition at line 509 of file MTStation.cpp.
References MTTensor::GetdZxx(), MTTensor::GetdZxy(), MTTensor::GetdZyx(), MTTensor::GetdZyy(), MTTensor::GetZxx(), MTTensor::GetZxy(), MTTensor::GetZyx(), and MTTensor::GetZyy().
Referenced by main(), and WriteBack().
| void MTStation::WriteAsMtt | ( | const std::string | filename | ) |
Write data in goettingen .mtt format.
Definition at line 478 of file MTStation.cpp.
References Update().
Referenced by main(), WriteBack(), PTensor1DMTObjective::WriteData(), Iso1DMTObjective::WriteData(), and Aniso1DMTObjective::WriteData().
| void MTStation::WriteBack | ( | ) |
Write data back in original format, with filename given by station name.
Definition at line 458 of file MTStation.cpp.
References edi, j, mtt, WriteAsEdi(), WriteAsJ(), and WriteAsMtt().
Referenced by WriteData().
| void MTStation::WriteData | ( | const std::string | filename | ) | [virtual] |
friend class C1DMTSynthData [friend] |
Definition at line 132 of file MTStation.h.
1.5.8