GPLIB++
|
Calculate synthetic MT data for a 1D model using Cagniard's algorithm. More...
#include <C1DMTSynthData.h>
Public Member Functions | |
const trealdata & | GetResistivities () |
Read only access to the vector of resistivities for the 1D model from top to bottom in Ohmm. More... | |
const trealdata & | GetThicknesses () |
Read only access to the vector of layer thicknesses for the 1D model from top to bottom in km. More... | |
void | SetResistivities (const trealdata &res) |
Read-write access to the vector of resistivities for the 1D model from top to bottom in Ohmm. More... | |
void | SetThicknesses (const trealdata &thick) |
Read only access to the vector of layer thicknesses for the 1D model from top to bottom in km. More... | |
void | SetResistivityErrors (const trealdata &re) |
Set the error on the resistivities this is purely for plotting of inversion results. More... | |
void | SetThicknessErrors (const trealdata &te) |
Set the error on the thicknesses this is purely for plotting of inversion results. More... | |
gplib::rvec | GetModelVector () |
Return the model as a single vector first log10 of all resistivities, then all thicknesses in km. More... | |
void | WriteModel (std::string filename) |
Write model into file for cagniard algorithm. More... | |
void | ReadModel (std::string filename) |
Read the model from a file. More... | |
void | WritePlot (std::string filename) |
Write out a file that can be used for plotting with xmgrace first column depth, second column resistivity. More... | |
virtual void | CalcSynthetic () |
Calculate the synthetic data given the previously set parameters. More... | |
virtual C1DMTSynthData * | clone () const |
Provide a "virtual copy constructor". More... | |
C1DMTSynthData (const C1DMTSynthData &old) | |
C1DMTSynthData () | |
virtual | ~C1DMTSynthData () |
Public Member Functions inherited from gplib::MTStation | |
void | AssignAll (const int nfreq) |
void | Rotate (const double rotangle) |
void | Rotate (void) |
Rotate to zero rotation angle. More... | |
trealdata | GetFrequencies () const |
return the available frequencies in a single vector More... | |
void | SetFrequencies (const trealdata &freqs) |
Set the frequencies of the tensor elements, invalidates the previously stored impedance data, mainly for creating synthetic data. More... | |
double | GetLatitude () const |
access funtion for Latitude More... | |
void | SetLatitude (double lat) |
double | GetLongitude () const |
void | SetLongitude (double lon) |
double | GetElevation () const |
std::string | GetName () |
double | GetAzimuth () const |
const MTTensor & | at (const unsigned int i) const |
direct acces to a tensor at a given index More... | |
const std::vector< MTTensor > & | GetMTData () const |
Get the full vector of Tensor elements read only. More... | |
std::vector< MTTensor > & | SetMTData () |
Get the full vector of Tensor elements for reading and writing. More... | |
MTStation & | operator= (const MTStation &source) |
MTStation () | |
MTStation (const MTStation &old) | |
MTStation (const int size) | |
MTStation (const std::string filename) | |
virtual | ~MTStation () |
virtual void | GetData (const std::string filename) |
read in data from file, determines format by ending More... | |
virtual void | GetData () |
virtual void | WriteData (const std::string filename) |
void | WriteAsMtt (const std::string filename) |
Write data in goettingen .mtt format. More... | |
void | WriteAsEdi (const std::string filename) |
Write data as edi (no functionality yet) More... | |
void | WriteAsJ (const std::string filename) |
Write data to j-file. More... | |
void | WriteBack () |
Write data back in original format, with filename given by station name. More... | |
Additional Inherited Members | |
Public Types inherited from gplib::MTStation | |
enum | tmtdataformat { unknown, mtt, j, edi, pek, nc, zmm, mtf } |
Protected Member Functions inherited from gplib::MTStation | |
void | Update () |
Update all derived quantities. More... | |
void | Assign (const int nfreq) |
Assign() assigns zero to all derived quantities, this makes the calculation. More... | |
Calculate synthetic MT data for a 1D model using Cagniard's algorithm.
Definition at line 15 of file C1DMTSynthData.h.
gplib::C1DMTSynthData::C1DMTSynthData | ( | const C1DMTSynthData & | old | ) |
Definition at line 30 of file C1DMTSynthData.cpp.
gplib::C1DMTSynthData::C1DMTSynthData | ( | ) |
Definition at line 22 of file C1DMTSynthData.cpp.
Referenced by clone().
|
virtual |
Definition at line 26 of file C1DMTSynthData.cpp.
|
virtual |
Calculate the synthetic data given the previously set parameters.
Definition at line 108 of file C1DMTSynthData.cpp.
References gplib::MTStation::Assign(), gplib::frequenzen, gplib::MTStation::GetFrequencies(), MTData, gplib::T, and gplib::MTStation::Update().
Referenced by main().
|
inlinevirtual |
Provide a "virtual copy constructor".
Reimplemented from gplib::MTStation.
Definition at line 67 of file C1DMTSynthData.h.
References C1DMTSynthData().
gplib::rvec gplib::C1DMTSynthData::GetModelVector | ( | ) |
Return the model as a single vector first log10 of all resistivities, then all thicknesses in km.
Definition at line 69 of file C1DMTSynthData.cpp.
|
inline |
Read only access to the vector of resistivities for the 1D model from top to bottom in Ohmm.
Definition at line 27 of file C1DMTSynthData.h.
Referenced by main().
|
inline |
Read only access to the vector of layer thicknesses for the 1D model from top to bottom in km.
Definition at line 32 of file C1DMTSynthData.h.
Referenced by main().
void gplib::C1DMTSynthData::ReadModel | ( | std::string | filename | ) |
|
inline |
Read-write access to the vector of resistivities for the 1D model from top to bottom in Ohmm.
Definition at line 37 of file C1DMTSynthData.h.
Referenced by main().
|
inline |
Set the error on the resistivities this is purely for plotting of inversion results.
Definition at line 47 of file C1DMTSynthData.h.
|
inline |
Set the error on the thicknesses this is purely for plotting of inversion results.
Definition at line 52 of file C1DMTSynthData.h.
|
inline |
Read only access to the vector of layer thicknesses for the 1D model from top to bottom in km.
Definition at line 42 of file C1DMTSynthData.h.
Referenced by main().
void gplib::C1DMTSynthData::WriteModel | ( | std::string | filename | ) |
Write model into file for cagniard algorithm.
Definition at line 57 of file C1DMTSynthData.cpp.
Referenced by gplib::Iso1DMTObjective::WriteModel().
void gplib::C1DMTSynthData::WritePlot | ( | std::string | filename | ) |
Write out a file that can be used for plotting with xmgrace first column depth, second column resistivity.
Definition at line 37 of file C1DMTSynthData.cpp.
Referenced by gplib::Iso1DMTObjective::WritePlot().