|
virtual bool | isPathDepUncModel () |
|
| GeoTessModelSLBM (vector< vector< Uncertainty * > > &uncert, const GeoTessOptimizationType *optimization=&GeoTessOptimizationType::SPEED) |
|
| GeoTessModelSLBM (const string &modelInputFile, const string &relativeGridPath, vector< vector< Uncertainty * > > &uncertainties, const GeoTessOptimizationType *optimization=&GeoTessOptimizationType::SPEED) |
|
| GeoTessModelSLBM (const string &modelInputFile, vector< vector< Uncertainty * > > &uncertainties, const GeoTessOptimizationType *optimization=&GeoTessOptimizationType::SPEED) |
|
| GeoTessModelSLBM (const string &gridFileName, GeoTessMetaData *metaData, vector< vector< Uncertainty * > > &uncertainties, double *avgMantleVel) |
|
| GeoTessModelSLBM (GeoTessGrid *grid, GeoTessMetaData *metaData, vector< vector< Uncertainty * > > &uncertainties, double *avgMantleVel) |
|
virtual | ~GeoTessModelSLBM () |
|
void | writeModelDataBuffer (util::DataBuffer &buffer) |
|
double | getAverageMantleVelocity (const int &index) const |
|
void | setAverageMantleVelocity (const int &index, const double &velocity) |
|
void | setIOUncertainty (bool io) |
|
bool | isIOUncertainty () const |
|
int | getBufferSize () |
|
This is an SLBM extension of GeoTessModel for use by SLBM. Specific capabilities, beyond those of the base class, are management of the average mantle P and S velocity values required by SLBM and management of Uncertainty information for phases Pn, Sn, Pg and Lg for attributes TT, SH and AZ.
Definition at line 82 of file GeoTessModelSLBM.h.
slbm::GeoTessModelSLBM::GeoTessModelSLBM |
( |
const string & |
gridFileName, |
|
|
GeoTessMetaData * |
metaData, |
|
|
vector< vector< Uncertainty * > > & |
uncertainties, |
|
|
double * |
avgMantleVel |
|
) |
| |
Parameterized constructor, specifying the grid and metadata for the model. The grid is constructed and the data structures are initialized based on information supplied in metadata. The data structures are not populated with any information however (all Profiles are null). The application should populate the new model's Profiles after this constructor completes.
Before calling this constructor, the supplied MetaData object must be populated with required information by calling the following MetaData methods:
-
setDescription()
-
setLayerNames()
-
setAttributes()
-
setDataType()
-
setLayerTessIds() (only required if grid has more than one multi-level tessellation)
-
setOptimization() (optional: defaults to SPEED)
- Parameters
-
gridFileName | name of file from which to load the grid. |
metaData | MetaData the new GeoTessModel instantiates a reference to the supplied metaData. No copy is made. |
uncertainties | the Uncertainty obects to set. |
avgMantleVel | a 2-element array containing the average P and S velocity of the upper mantle. |
- Exceptions
-
GeoTessException | if metadata is incomplete. |
slbm::GeoTessModelSLBM::GeoTessModelSLBM |
( |
GeoTessGrid * |
grid, |
|
|
GeoTessMetaData * |
metaData, |
|
|
vector< vector< Uncertainty * > > & |
uncertainties, |
|
|
double * |
avgMantleVel |
|
) |
| |
Parameterized constructor, specifying the grid and metadata for the model. The grid is constructed and the data structures are initialized based on information supplied in metadata. The data structures are not populated with any information however (all Profiles are null). The application should populate the new model's Profiles after this constructor completes.
Before calling this constructor, the supplied MetaData object must be populated with required information by calling the following MetaData methods:
-
setDescription()
-
setLayerNames()
-
setAttributes()
-
setDataType()
-
setLayerTessIds() (only required if grid has more than one multi-level tessellation)
-
setOptimization() (optional: defaults to SPEED)
-
setSoftwareVersion()
-
setGenerationDate()
- Parameters
-
grid | a pointer to the GeoTessGrid that will support this GeoTessModel. GeoTessModel assumes ownership of the supplied grid object and will delete it when it is done with it. |
metaData | MetaData the new GeoTessModel instantiates a reference to the supplied metaData. No copy is made. |
uncertainties | the Uncertainties to set. |
avgMantleVel | a 2-element array containing the average P and S velocity of the top of the mantle, in km/sec |
- Exceptions
-
GeoTessException | if metadata is incomplete. |
virtual void slbm::GeoTessModelSLBM::loadModelAscii |
( |
IFStreamAscii & |
input, |
|
|
const string & |
inputDirectory, |
|
|
const string & |
relGridFilePath |
|
) |
| |
|
protectedvirtual |
Load a model (3D grid and data) from an ascii File.
The format of the file is:
int fileFormatVersion (currently only recognizes 1).
String gridFile: either *, or relative path to gridFile.
int nVertices, nLayers, nAttributes, dataType(DOUBLE or FLOAT).
int[] tessellations = new int[nLayers];
Profile[nVertices][nLayers]: data
- Parameters
-
input | ascii stream that provides input |
inputDirectory | the directory where the model file resides |
relGridFilePath | the relative path from the directory where the model file resides to the directory where the grid file resides. |
- Exceptions
-
Reimplemented in slbm::GeoTessModelPathUnc.
virtual void slbm::GeoTessModelSLBM::loadModelBinary |
( |
IFStreamBinary & |
input, |
|
|
const string & |
inputDirectory, |
|
|
const string & |
relGridFilePath |
|
) |
| |
|
protectedvirtual |
Load a model (3D grid and data) from a binary File.
The format of the file is:
int fileFormatVersion (currently only recognizes 1).
String gridFile: either *, or relative path to gridFile.
int nVertices, nLayers, nAttributes, dataType(DOUBLE or FLOAT).
int[] tessellations = new int[nLayers];
Profile[nVertices][nLayers]: data
- Parameters
-
input | binary stream that provides input |
inputDirectory | the directory where the model file resides |
relGridFilePath | the relative path from the directory where the model file resides to the directory where the grid file resides. |
- Exceptions
-
Reimplemented in slbm::GeoTessModelPathUnc.