ArrayCore/StationCouple.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of ArrayCore.
00004 **
00005 **  This file may be distributed and/or modified under the terms of the
00006 **  GNU General Public License version 2 or 3 as published by the Free
00007 **  Software Foundation and appearing in the file LICENSE.GPL included
00008 **  in the packaging of this file.
00009 **
00010 **  This file is distributed in the hope that it will be useful, but WITHOUT
00011 **  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 **  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00013 **  more details.
00014 **
00015 **  You should have received a copy of the GNU General Public License
00016 **  along with this program. If not, see <http://www.gnu.org/licenses/>.
00017 **
00018 **  See http://www.geopsy.org for more information.
00019 **
00020 **  Created : 2004-09-06
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (ULg, Liège, Belgium)
00024 **    Marc Wathelet (LGIT, Grenoble, France)
00025 **
00026 ***************************************************************************/
00027 
00028 #ifndef StationCouple_H
00029 #define StationCouple_H
00030 
00031 #include <GeopsyCore.h>
00032 #include <QGpCoreTools.h>
00033 #include "ArrayCoreDLLExport.h"
00034 
00035 namespace ArrayCore {
00036 
00037 class ARRAYCORE_EXPORT StationCouple
00038 {
00039 public:
00040   StationCouple();
00041 
00042   void operator=(const StationCouple& o);
00043 
00044   void setStations(StationSignals * s1, StationSignals * s2);
00045 
00046   double distance() const {return _distance;}
00047   const Angle& azimuth() const {return _azimuth;}
00048   QString name() const {return (_s1->name()+"-")+_s2->name();}
00049   const StationSignals * station1() const {return _s1;}
00050   const StationSignals * station2() const {return _s2;}
00051 private:
00052   StationSignals * _s1;
00053   StationSignals * _s2;
00054 
00055   // Distance and azimuth of station couple
00056   double _distance;
00057   Angle _azimuth;
00058 };
00059 
00060 #if 0
00061   void setStations(StationProcessSignals * s1, StationProcessSignals * s2);
00062   double r() const {return _r;}
00063   double phi() const {return _phi.radians();}
00064   QString name() const {return (_s1->originalSignals()->name()+"-")+_s2->originalSignals()->name();}
00065   const StationProcessSignals * station1() const {return _s1;}
00066   const StationProcessSignals * station2() const {return _s2;}
00067 
00068 
00069   double verticalAutocorr() const;
00070   void splitRadialTransverse();
00071   double radialAutocorr() const {return _radialAutocorr;}
00072   double transverseAutocorr() const {return _transverseAutocorr;}
00073   double radialPower() const {return _radialPower;}
00074   double transversePower() const {return _transversePower;}
00075   void crossCorr(Signal * resSig);
00076 protected:
00077   StationProcessSignals * _s1;
00078   StationProcessSignals * _s2;
00079   // Distance and azimuth of station couple
00080   double _r;
00081   Angle _phi;
00082   // For delayed ring normalization
00083   double _radialPower;
00084   double _transversePower;
00085   double _radialAutocorr;
00086   double _transverseAutocorr;
00087 };
00088 #endif
00089 
00090 } // namespace ArrayCore
00091 
00092 #endif // STATIONCOUPLE_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines