#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 |
| int main | ( | void | ) |
Definition at line 69 of file phasetensormap.cpp.
References CPTensorConf::calcerr, Configuration, MTTensor::GetAlpha(), MTTensor::GetBeta_phi(), MTStationList::GetComFreqIndices(), MTStationList::GetCommonFrequencies(), CPTensorConf::GetData(), MTStationList::GetData(), MTStationList::GetList(), MTTensor::GetPhi1(), MTTensor::GetPhi11(), MTTensor::GetPhi12(), MTTensor::GetPhi2(), MTTensor::GetPhi21(), MTTensor::GetPhi22(), MTTensor::GetPhi3(), MTTensor::GetPhiEllip(), MTTensor::GetPhiMax(), MTTensor::GetPhiMin(), MTTensor::GetPhiStrike(), infilename, CPTensorConf::scalefactor, 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, |
|||
| 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
| 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().
| string version |
Initial value:
"$Id: phasetensormap.cpp 1644 2008-01-18 17:30:58Z mmoorkamp $"
Definition at line 20 of file phasetensormap.cpp.
1.5.5