RSTT
3.2.0
Regional Seismic Travel Time
|
A UncertaintyPDU object contains the raw data to calculate a path dependent modeling error in seconds as a function of distance in radians along a specific source-receiver path traced through the model. More...
#include <UncertaintyPDU.h>
Public Member Functions | |
UncertaintyPDU () | |
Default constructor. More... | |
UncertaintyPDU (int phase) | |
Parameterized constructor that defines an empty path path specific model error for the input phase. More... | |
UncertaintyPDU (const string &phase) | |
Parameterized constructor that that defines an empty path path specific model error for the input phase. More... | |
UncertaintyPDU (string modelPath, int phase) | |
Parameterized constructor that loads path dependent model error definition from a specified file. More... | |
UncertaintyPDU (string modelPath, const string &phase) | |
UncertaintyPDU (const UncertaintyPDU &u) | |
Copy constructor. More... | |
virtual | ~UncertaintyPDU () |
Destructor. More... | |
UncertaintyPDU & | operator= (const UncertaintyPDU &u) |
Assignment operator. More... | |
virtual bool | operator== (const UncertaintyPDU &other) const |
virtual bool | operator!= (const UncertaintyPDU &other) const |
bool | operator!= (const UncertaintyPDU &other) |
void | readFile (ifstream &fin) |
void | readFile (geotess::IFStreamAscii &fin) |
void | readFile (geotess::IFStreamBinary &fin) |
void | writeFile (geotess::IFStreamAscii &output) |
void | writeFile (geotess::IFStreamBinary &fout) |
void | writeFile (const string &directoryName) |
int | getPhase () const |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory. More... | |
const string | getPhaseStr () const |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory. More... | |
const string & | getLoadedFileName () const |
Returns loaded file name or "not specified". More... | |
const string & | getGridId () const |
Returns the grid id for which this path dependent uncertainty objects data are defined. More... | |
double | getUncertainty (double distance, const vector< int > &crustNodeIds, const vector< double > &crustWeights, const vector< int > &headWaveNodeIds, const vector< double > &headWaveWeights, const vector< vector< int > > &headWaveNodeNeighbors, const bool &calcRandomError=false, bool printDebugInfo=false) |
Returns the model uncertainty as a function of angular distance (degrees), crustal grid vertex indices, crustal grid weights (sec), head wave grid vertex indices, head wave grid weights (km), and head wave node neighbors. An optional argument, calcRandomError, can be provided to enable/disable using the random error component in the uncertainty computation. More... | |
bool | isRandomErrorDefined () const |
Returns true if random error is defined. More... | |
string | toStringTable () |
string | toStringFile () |
vector< double > & | getPathUncCrustError () |
const vector< double > & | getPathUncCrustError () const |
vector< vector< double > > & | getPathUncRandomError () |
const vector< vector< double > > & | getPathUncRandomError () const |
vector< double > & | getPathUncDistanceBins () |
const vector< double > & | getPathUncDistanceBins () const |
vector< vector< double > > & | getPathUncModelError () |
const vector< vector< double > > & | getPathUncModelError () const |
vector< vector< double > > & | getPathUncBias () |
const vector< vector< double > > & | getPathUncBias () const |
string | toString () |
Static Public Member Functions | |
static UncertaintyPDU * | getUncertainty (ifstream &input, int phase) |
static UncertaintyPDU * | getUncertainty (ifstream &input, const string &phase) |
static UncertaintyPDU * | getUncertainty (geotess::IFStreamAscii &input) |
static UncertaintyPDU * | getUncertainty (geotess::IFStreamBinary &input) |
static UncertaintyPDU * | getUncertainty (const string &modelPath, int phase) |
static string | getPhase (const int &phaseIndex) |
static int | getPhase (const string &phase) |
Public Attributes | |
map< string, string > | properties |
A map to store metadata like phase, gridId, nBins, nVertices, etc.. More... | |
vector< string > | keys |
A UncertaintyPDU object contains the raw data to calculate a path dependent modeling error in seconds as a function of distance in radians along a specific source-receiver path traced through the model.
A UncertaintyPDU object contains the raw data to calculate a path dependent modeling error in seconds as a function of distance in radians along a specific source-receiver path traced through the model.
Code includes functionality to store and compute path dependent uncertainty for 3D grid vertex uncertainty tables (grid point and distance specific crustal error, random error, model error, and bias). This object is used by GeoTessModelPathUnc to override the 2D distance/ depth dependent uncertainty (Uncertainty) used by GeotessModelSLBM. The path dependent uncertainty is only defined for the Travel Time attribute and not for azimuth and slowness. The latter two attributes still use the 2D uncertainty definitions.
Definition at line 80 of file UncertaintyPDU.h.
slbm::UncertaintyPDU::UncertaintyPDU | ( | ) |
Default constructor.
Default constructor.
slbm::UncertaintyPDU::UncertaintyPDU | ( | int | phase | ) |
Parameterized constructor that defines an empty path path specific model error for the input phase.
Parameterized constructor that defines an empty path path specific model error for the input phase.
slbm::UncertaintyPDU::UncertaintyPDU | ( | const string & | phase | ) |
Parameterized constructor that that defines an empty path path specific model error for the input phase.
Parameterized constructor that that defines an empty path path specific model error for the input phase.
slbm::UncertaintyPDU::UncertaintyPDU | ( | string | modelPath, |
int | phase | ||
) |
Parameterized constructor that loads path dependent model error definition from a specified file.
Parameterized constructor that loads path dependent model error definition from a specified file. Uses the input phase ordering index to define the file name.
slbm::UncertaintyPDU::UncertaintyPDU | ( | string | modelPath, |
const string & | phase | ||
) |
definition from a specified file.
Parameterized constructor that loads path dependent model error definition from a specified file. Uses the input phase string to find the uncertainty data file and assigns a phase ordering index.
slbm::UncertaintyPDU::UncertaintyPDU | ( | const UncertaintyPDU & | u | ) |
Copy constructor.
Copy constructor.
|
virtual |
Destructor.
Destructor.
|
inline |
Returns the grid id for which this path dependent uncertainty objects data are defined.
Returns the grid id for which this path dependent uncertainty objects data are defined.
Definition at line 239 of file UncertaintyPDU.h.
|
inline |
Returns loaded file name or "not specified".
Returns loaded file name or "not specified".
Definition at line 230 of file UncertaintyPDU.h.
|
inline |
Definition at line 315 of file UncertaintyPDU.h.
|
inline |
Definition at line 319 of file UncertaintyPDU.h.
|
inline |
Definition at line 283 of file UncertaintyPDU.h.
|
inline |
Definition at line 287 of file UncertaintyPDU.h.
|
inline |
Definition at line 299 of file UncertaintyPDU.h.
|
inline |
Definition at line 303 of file UncertaintyPDU.h.
|
inline |
Definition at line 307 of file UncertaintyPDU.h.
|
inline |
Definition at line 311 of file UncertaintyPDU.h.
|
inline |
Definition at line 291 of file UncertaintyPDU.h.
|
inline |
Definition at line 295 of file UncertaintyPDU.h.
|
inline |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
Definition at line 214 of file UncertaintyPDU.h.
|
inlinestatic |
Definition at line 273 of file UncertaintyPDU.h.
|
inlinestatic |
Definition at line 278 of file UncertaintyPDU.h.
|
inline |
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
A public convenience accessor used to verify the error data for the correct model phase is loaded in memory.
Definition at line 223 of file UncertaintyPDU.h.
|
static |
Retrieve a new UncertaintyPDU object for the specified phase loaded from specified input source.
modelPath | data source path |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
double slbm::UncertaintyPDU::getUncertainty | ( | double | distance, |
const vector< int > & | crustNodeIds, | ||
const vector< double > & | crustWeights, | ||
const vector< int > & | headWaveNodeIds, | ||
const vector< double > & | headWaveWeights, | ||
const vector< vector< int > > & | headWaveNodeNeighbors, | ||
const bool & | calcRandomError = false , |
||
bool | printDebugInfo = false |
||
) |
Returns the model uncertainty as a function of angular distance (degrees), crustal grid vertex indices, crustal grid weights (sec), head wave grid vertex indices, head wave grid weights (km), and head wave node neighbors. An optional argument, calcRandomError, can be provided to enable/disable using the random error component in the uncertainty computation.
Returns the model uncertainty as a function of angular distance (degrees), crustal grid vertex indices, crustal grid weights (sec), head wave grid vertex indices, head wave grid weights (km), and head wave node neighbors. An optional argument, calcRandomError, can be provided to enable/disable using the random error component in the uncertainty computation.
|
static |
Retrieve a new UncertaintyPDU object for the specified phase loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
|
static |
Retrieve a new UncertaintyPDU object for the specified phase loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
|
static |
Retrieve a new UncertaintyPDU object for the specified phase
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
|
static |
Retrieve a new UncertaintyPDU object for the specified phase loaded from specified input source.
input | data source |
phase | 0:Pn, 1:Sn, 2:Pg, 3:Lg |
|
inline |
Returns true if random error is defined.
Returns true if random error is defined.
Definition at line 265 of file UncertaintyPDU.h.
|
inline |
Overloaded inequality operator
other | reference to the other UncertaintyPDU object to which this UncertaintyPDU object is to be compared |
Definition at line 151 of file UncertaintyPDU.h.
|
inlinevirtual |
Definition at line 143 of file UncertaintyPDU.h.
UncertaintyPDU& slbm::UncertaintyPDU::operator= | ( | const UncertaintyPDU & | u | ) |
Assignment operator.
Assignment operator.
|
virtual |
Overloaded equality operator
other | reference to the other UncertaintyPDU object to which this UncertaintyPDU object is to be compared |
void slbm::UncertaintyPDU::readFile | ( | geotess::IFStreamAscii & | fin | ) |
void slbm::UncertaintyPDU::readFile | ( | geotess::IFStreamBinary & | fin | ) |
void slbm::UncertaintyPDU::readFile | ( | ifstream & | fin | ) |
string slbm::UncertaintyPDU::toString | ( | ) |
string slbm::UncertaintyPDU::toStringFile | ( | ) |
string slbm::UncertaintyPDU::toStringTable | ( | ) |
void slbm::UncertaintyPDU::writeFile | ( | const string & | directoryName | ) |
void slbm::UncertaintyPDU::writeFile | ( | geotess::IFStreamAscii & | output | ) |
void slbm::UncertaintyPDU::writeFile | ( | geotess::IFStreamBinary & | fout | ) |
vector<string> slbm::UncertaintyPDU::keys |
Definition at line 329 of file UncertaintyPDU.h.
map<string, string> slbm::UncertaintyPDU::properties |
A map to store metadata like phase, gridId, nBins, nVertices, etc..
Definition at line 327 of file UncertaintyPDU.h.