GPLIB++
Functions | Variables
phasetensormap.cpp File Reference
#include <fstream>
#include <iostream>
#include <vector>
#include <iomanip>
#include "MTStationList.h"
#include "FatalException.h"
#include "Adaptors.h"
#include "Jacknife.h"
#include "MTSampleGenerator.h"
#include "Util.h"
#include <sstream>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <iterator>
#include <boost/progress.hpp>
#include <boost/program_options.hpp>

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)
 Print out one component of MT data from a list of Stations for plotting with GMT. More...
 
int main (int argc, char *argv[])
 

Variables

string version
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)
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 
)

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
filenamename of the file to print to
fPointer to member function of MTTensor that will print out the desired component
StationListObject holding all the station data
freqindexthe index of the frequency to print, this will be synchronized through the ComFreqIndices array
adaptorpointer to a function that maps the result of f to a double value
ntestcaseshow many samples needed for bootstrap error calculation
CalcErroris ErrorCalculation wanted

Definition at line 36 of file phasetensormap.cpp.

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

Variable Documentation

string version
Initial value:
=
"$Id: phasetensormap.cpp 1838 2010-03-04 16:19:34Z mmoorkamp $"

Definition at line 21 of file phasetensormap.cpp.

Referenced by main().