GPLIB++
|
#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 |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 74 of file phasetensormap.cpp.
References gplib::MTStationList::GetComFreqIndices(), gplib::MTStationList::GetCommonFrequencies(), gplib::MTStationList::GetData(), gplib::MTStationList::GetList(), gplib::GetPhi3(), gplib::GetPhiEllip(), and version.
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
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 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().
string version |
Definition at line 21 of file phasetensormap.cpp.
Referenced by main().