CMTDataComp.h

Go to the documentation of this file.
00001 #ifndef CMTDATACOMP_H
00002 #define CMTDATACOMP_H
00003 
00004 #include <string>
00005 #include "types.h"
00006 /*! The class CMTDataComp stores the values of the impedance tensor,
00007  * the error estimates along with the apparent resistivity and phase.
00008  * Units are \f$ km/s\f$ for Z, \f$ \Omega m \f$ for \f$ \rho_a \f$ and
00009  * degree for the phase. The corresponding frequencies are not stored
00010  * because normally it is used by CMTData or a derived class.
00011  */
00012  
00013 class CMTDataComp
00014 {
00015  private:
00016         //! Whenever an impedance value changes, Update() recalculates apparent resistvity and phase. 
00017     void Update(trealdata frequency); 
00018     void Assign(const int nfreq);
00019     //!  name can be either Zxx, Zxy, Zyx, Zyy, Tx or Ty
00020     std::string name;
00021     //! The vector containing apparent resistivities
00022     trealdata rhoa; 
00023     //! The vector containing the phase
00024     trealdata phi;
00025     //! The corresponding errors in apparent resistivities
00026     trealdata drhoa;
00027     //! The corresponding errors in phase
00028     trealdata dphi;
00029     //! A complex vector containing the impedance values
00030     tcompdata Z;
00031     //! A real vector containing the error estimates
00032     trealdata dZ;
00033  public:
00034     std::string GetName()const{return name;}
00035     trealdata GetRhoa()const{return rhoa;} 
00036     trealdata GetPhi()const{return phi;}
00037     trealdata GetdRhoa()const{return drhoa;}
00038     trealdata GetdPhi()const{return dphi;}
00039     tcompdata GetZ()const{return Z;}
00040     trealdata GetdZ()const{return dZ;}
00041     //! The constructor is empty
00042     CMTDataComp(const int nfreq = 0); 
00043     //! The destructor is empty,too
00044     virtual ~CMTDataComp();
00045     //! CMTStation needs to access the Update method, so we declare it a friend
00046     friend class CMTStation;
00047     friend class C1DMTSynthData;
00048     friend class JParser;
00049     friend class EDIParser;
00050     virtual CMTDataComp& operator= (const CMTDataComp& source);
00051     virtual void erase(const int index); 
00052 };
00053 
00054 #endif

Generated on Thu Nov 22 13:58:25 2007 for GPLIB++ by  doxygen 1.5.1