GPLIB++
PTensorMTStation.h
Go to the documentation of this file.
1 #ifndef PTENSORMTSTATION_H_
2 #define PTENSORMTSTATION_H_
3 #include "PTensorMTData.h"
4 #include <vector>
5 #include <string>
6 #include "types.h"
7 #include "MTStation.h"
8 
9 namespace gplib
10  {
11  /** \addtogroup mttools MT data analysis, processing and inversion */
12  /* @{ */
13 
15  {
16  private:
17  std::vector<PTensorMTData> Tensor;
18  public:
19  const PTensorMTData &at(const unsigned int i) const
20  {
21  return Tensor.at(i);
22  }
23  PTensorMTData &at(const unsigned int i)
24  {
25  return Tensor.at(i);
26  }
27  std::vector<PTensorMTData> &GetTensor()
28  {
29  return Tensor;
30  }
31  const std::vector<PTensorMTData> &GetTensor() const
32  {
33  return Tensor;
34  }
35  const trealdata GetFrequencies() const;
36  void GetData(const std::string &filename);
37  void WriteData(const std::string &filename);
38  //! copies the phase tensor elements calculated from the impedance in MTData, but without errors
41  virtual ~PTensorMTStation();
42  };
43  /* @} */
44  }
45 #endif /*PTENSORMTSTATION_H_*/
This class is for the special case where we only have phase tensor data and errors, but not the full impedance.
Definition: PTensorMTData.h:12
std::vector< PTensorMTData > & GetTensor()
const PTensorMTData & at(const unsigned int i) const
const trealdata GetFrequencies() const
void WriteData(const std::string &filename)
The class MTStation is used to store the transfer functions and related information for a MT-site...
Definition: MTStation.h:17
CMTStation MTData
Definition: cadijoint.cpp:15
void GetData(const std::string &filename)
const std::vector< PTensorMTData > & GetTensor() const
PTensorMTStation & operator=(const MTStation &MTData)
copies the phase tensor elements calculated from the impedance in MTData, but without errors ...
PTensorMTData & at(const unsigned int i)