phasetensormap.cpp File Reference

#include <fstream>
#include <iostream>
#include <vector>
#include <iomanip>
#include "MTStationList.h"
#include "CPTensorConf.h"
#include "CFatalException.h"
#include "Adaptors.h"
#include "Jacknife.h"
#include "MTSampleGenerator.h"
#include <sstream>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <iterator>
#include <gsl/gsl_ieee_utils.h>
#include <boost/progress.hpp>
#include "Util.h"

Go to the source code of this file.

Functions

template<typename T>
void PrintComponent (const std::string &filename, boost::function< const T(const MTTensor *)> f, MTStationList &StationList, const int freqindex, boost::function< double(T)> adaptor, int ntestcases=0, const bool CalcError=false)
 Print out one component of MT data from a list of Stations for plotting with GMT.
int main ()

Variables

string version


Function Documentation

int main ( void   ) 

template<typename T>
void PrintComponent ( const std::string &  filename,
boost::function< const T(const MTTensor *)>  f,
MTStationList StationList,
const int  freqindex,
boost::function< double(T)>  adaptor,
int  ntestcases = 0,
const bool  CalcError = false 
) [inline]

Print out one component of MT data from a list of Stations for plotting with GMT.

Print Component prints one component of MT Data e.g. phase, strike angle, for all sites into a file with name file name. Parameters are

Parameters:
filename name of the file to print to
f Pointer to member function of MTTensor that will print out the desired component
StationList Object holding all the station data
freqindex the index of the frequency to print, this will be synchronized through the ComFreqIndices array
adaptor pointer to a function that maps the result of f to a double value
ntestcases how many samples needed for bootstrap error calculation
CalcError is ErrorCalculation wanted

Definition at line 35 of file phasetensormap.cpp.

References MTStationList::at(), StatErrEst< SampleGenerator >::CalcErrors(), f(), MTStationList::GetComFreqIndices(), MTStation::GetLatitude(), MTStationList::GetList(), MTStation::GetLongitude(), and MTStation::GetMTData().


Variable Documentation

string version

Initial value:

    "$Id: phasetensormap.cpp 1644 2008-01-18 17:30:58Z mmoorkamp $"

Definition at line 20 of file phasetensormap.cpp.


Generated on Fri Jul 4 15:30:21 2008 for GPLIB++ by  doxygen 1.5.5