00001 #ifndef PTENSORMTSTATION_H_ 00002 #define PTENSORMTSTATION_H_ 00003 #include "PTensorMTData.h" 00004 #include <vector> 00005 #include <string> 00006 #include "types.h" 00007 #include "MTStation.h" 00008 00009 namespace gplib 00010 { 00011 /** \addtogroup mttools MT data analysis, processing and inversion */ 00012 /* @{ */ 00013 00014 class PTensorMTStation 00015 { 00016 private: 00017 std::vector<PTensorMTData> Tensor; 00018 public: 00019 const PTensorMTData &at(const unsigned int i) const 00020 { 00021 return Tensor.at(i); 00022 } 00023 PTensorMTData &at(const unsigned int i) 00024 { 00025 return Tensor.at(i); 00026 } 00027 std::vector<PTensorMTData> &GetTensor() 00028 { 00029 return Tensor; 00030 } 00031 const std::vector<PTensorMTData> &GetTensor() const 00032 { 00033 return Tensor; 00034 } 00035 const trealdata GetFrequencies() const; 00036 void GetData(const std::string &filename); 00037 void WriteData(const std::string &filename); 00038 //! copies the phase tensor elements calculated from the impedance in MTData, but without errors 00039 PTensorMTStation &operator=(const MTStation &MTData); 00040 PTensorMTStation(); 00041 virtual ~PTensorMTStation(); 00042 }; 00043 /* @} */ 00044 } 00045 #endif /*PTENSORMTSTATION_H_*/
1.5.8