|
| SlbmInterfaceToJNI () |
| Default constructor. More...
|
|
| SlbmInterfaceToJNI (const double &earthRadius) |
|
| ~SlbmInterfaceToJNI () |
| Destructor. More...
|
|
string | getPhase () |
|
void | accessGridProfile (const int &nodeId) |
|
void | deleteGridProfile () |
|
double | getGridLat () |
|
double | getGridLon () |
|
void | getGridDepth (vector< double > &depths) |
|
void | getGridVelocity (const int &waveType, double *velocity) |
|
void | getGridGradient (double *gradient) |
|
void | createQueryProfile (const double &lat, const double &lon) |
|
void | deleteQueryProfile () |
|
int | getQueryNCoefficients () |
|
vector< int > & | getQueryNodeId () |
|
vector< double > & | getQueryCoefficient () |
|
double * | getQueryDepth () |
|
double * | getQueryVelocity (const int &waveType) |
|
double * | getQueryGradient () |
|
void | computeWeights () |
|
void | computeWeightsSource () |
|
void | computeWeightsReceiver () |
|
void | deleteWeights () |
|
const vector< int > & | getWeightNodes () |
|
const vector< double > & | getWeights () |
|
string | getGreatCirclePhase () |
|
double | getActualPathIncrement () |
|
void | getGreatCircleNeighbors (const int &i, int *nodeIds, int &size) |
|
void | getGreatCircleCoefficients (const int &i, double *coeff, int &size) |
|
void | getGreatCircleSourceDepth (double *depths, int &n) |
|
void | getGreatCircleReceiverDepth (double *depths, int &n) |
|
double * | getGreatCircleSourceVelocity (int &n) |
|
double * | getGreatCircleReceiverVelocity (int &n) |
|
void | getGreatCircleHeadwaveVelocity (vector< double > &velocities) |
|
void | getGreatCircleHeadwaveGradient (vector< double > &gradients) |
|
void | computeGreatCirclePoints (const double &aLat, const double &aLon, const double &bLat, const double &bLon, const int &npoints, const bool &onCenters) |
|
void | computeGreatCircleLocations () |
|
void | deleteGreatCirclePoints () |
|
const vector< double > & | getGreatCirclePointsLat () |
|
const vector< double > & | getGreatCirclePointsLon () |
|
const vector< double > & | getGreatCirclePointsDepth () |
|
int | getNGridNodes () |
|
int | getNHeadWavePoints () |
|
void | accessGridNodeNeighbors (int nid) |
|
| SlbmInterface () |
| Default constructor. Instantiates an SlbmInterface object based on an ellipsoidal earth. More...
|
|
| SlbmInterface (const double &earthRadius) |
| Parameterized constructor. Instantiates an SlbmInterface object that is only partly based on an ellipsoidal earth. More...
|
|
virtual | ~SlbmInterface () |
| Destructor. More...
|
|
bool | isEqual (SlbmInterface *other) |
| Check if the model and/or greatCircle attached to the current SlbmInterface is equal that in another SlbmInterface. More...
|
|
bool | operator== (SlbmInterface &other) |
|
bool | operator!= (SlbmInterface &other) |
|
string | getVersion () |
| Retrieve the SLBM Version number. More...
|
|
void | loadVelocityModel (const string &modelPath) |
| Load the velocity model into memory from the specified file or directory. This method automatically determines the format of the model. More...
|
|
void | saveVelocityModel (const string &modelFileName, const int &format=4) |
| Save the velocity model currently in memory to the specified file. More...
|
|
int | getBufferSize () const |
| Returns the size of a DataBuffer object required to store this SLBMInterface objects model data. More...
|
|
void | setInterpolatorType (const string &interpolatorType) |
| Specify the interpolation type to use, either 'linear' or 'natural_neighbor'. More...
|
|
string | getInterpolatorType () |
| Retrieve the type of interpolator currently in use; either "LINEAR" or "NATUTAL_NEIGHBOR". More...
|
|
void | createGreatCircle (const string &phase, const double &sourceLat, const double &sourceLon, const double &sourceDepth, const double &receiverLat, const double &receiverLon, const double &receiverDepth) |
| Instantiate a new GreatCircle object between two locations. More...
|
|
void | createGreatCircle (const int &phase, const double &sourceLat, const double &sourceLon, const double &sourceDepth, const double &receiverLat, const double &receiverLon, const double &receiverDepth) |
| Instantiate a new GreatCircle object between two locations. More...
|
|
void | clear () |
| Delete the current GreatCircle object from memory and clear the pool of stored CrustalProfile objects. The model Grid is not deleted and remains accessible. More...
|
|
bool | isValid () |
| Returns true if the current GreatCirlce object has been instantiated and is ready to be interrogated. More...
|
|
string | getPhase () |
| Retrieve the phase specified in last call to createGreatCircle(). More...
|
|
void | getDistance (double &distance) |
| Retrieve the source-receiver separation, in radians. More...
|
|
double | getDistance () |
| Retrieve the source-receiver separation, in radians. More...
|
|
void | getSourceDistance (double &dist) |
| Retrieve horizontal offset below the source, in radians. More...
|
|
double | getSourceDistance () |
|
void | getReceiverDistance (double &dist) |
| Retrieve horizontal offset below the receiver, in radians. More...
|
|
double | getReceiverDistance () |
|
void | getHeadwaveDistance (double &dist) |
| Retrieve angular distance traveled by the ray below the headwave interface, in radians. More...
|
|
double | getHeadwaveDistance () |
|
void | getHeadwaveDistanceKm (double &dist) |
| Retrieve horizontal distance traveled by the ray below the headwave interface, in radians. More...
|
|
double | getHeadwaveDistanceKm () |
|
void | getTravelTime (double &travelTime) |
| Retrieve the total travel time for the GreatCircle, in seconds. More...
|
|
double | getTravelTime () |
|
void | getTravelTimeComponents (double &tTotal, double &tSource, double &tReceiver, double &tHeadwave, double &tGradient) |
| Retrieve the total travel time and the 4 components that contribute to it for the current GreatCircle. More...
|
|
void | getSlowness (double &slowness) |
| Retrieve the horizontal slowness, i.e., the derivative of travel time wrt to receiver-source distance, in seconds/radian. More...
|
|
double | getSlowness () |
|
void | get_dtt_ddist (double &slowness) |
| Retrieve the horizontal slowness, i.e., the derivative of travel time wrt to receiver-source distance, in seconds/radian. More...
|
|
double | get_dtt_ddist () |
|
void | get_dtt_dlat (double &dtt_dlat) |
| Retrieve the derivative of travel time wrt to source latitude, in seconds/radian. More...
|
|
double | get_dtt_dlat () |
|
void | get_dtt_dlon (double &dtt_dlon) |
| Retrieve the derivative of travel time wrt to source longitude, in seconds/radian. More...
|
|
double | get_dtt_dlon () |
|
void | get_dtt_ddepth (double &dtt_ddepth) |
| Retrieve the derivative of travel time wrt to source depth, in seconds/km. More...
|
|
double | get_dtt_ddepth () |
|
void | getWeights (int nodeId[], double weight[], int &nWeights) |
| Retrieve the weight assigned to each grid node that was touched by the GreatCircle. More...
|
|
void | getActiveNodeWeights (int nodeId[], double weight[], int &nWeights) |
| Retrieve the weight assigned to each active node that was touched by the GreatCircle. More...
|
|
void | getWeights (vector< int > &nodeId, vector< double > &weight) |
| Retrieve the weight assigned to each grid node that was touched by the GreatCircle. More...
|
|
void | getActiveNodeWeights (vector< int > &nodeId, vector< double > &weight) |
| Retrieve the weight assigned to each active node that was touched by the GreatCircle. More...
|
|
void | getWeightsSource (int nodeids[], double weights[], int &nWeights) |
| Retrieve the node IDs and the interpolation coefficients for the source CrustalProfile. More...
|
|
void | getWeightsSource (vector< int > &nodeids, vector< double > &weights) |
|
void | getActiveNodeWeightsSource (int nodeids[], double weights[], int &nWeights) |
| Retrieve the active node IDs and the interpolation coefficients for the source CrustalProfile. More...
|
|
void | getActiveNodeWeightsSource (vector< int > &nodeids, vector< double > &weights) |
|
void | getWeightsReceiver (int nodeids[], double weights[], int &nWeights) |
| Retrieve the node IDs and the interpolation coefficients for the receiver CrustalProfile. For linear interpolation, nWeights will equal 3 but for natural neighbor interpolation nWeights will be variable but less than 10. The sum of the weights will equal 1. More...
|
|
void | getWeightsReceiver (vector< int > &nodeids, vector< double > &weights) |
|
void | getActiveNodeWeightsReceiver (int nodeids[], double weights[], int &nWeights) |
| Retrieve the active node IDs and the interpolation coefficients for the receiver CrustalProfile. For linear interpolation, nWeights will equal 3 but for natural neighbor interpolation nWeights will be variable but less than 10. The sum of the weights will equal 1. More...
|
|
void | getActiveNodeWeightsReceiver (vector< int > &nodeids, vector< double > &weights) |
|
string | toString (const int &verbosity) |
| Returns a human-readable string representation of the GreatCircle object. More...
|
|
void | getNGridNodes (int &n) |
| Retrieve the number of Grid nodes in the Earth model. More...
|
|
int | getNGridNodes () |
| Retrieve the number of Grid nodes in the Earth model. More...
|
|
void | getNHeadWavePoints (int &nHeadWavePoints) |
| Retrieve the number of LayerProfile objects positioned along the head wave interface. More...
|
|
int | getNHeadWavePoints () |
|
void | getGridData (const int &nodeId, double &latitude, double &longitude, double depth[NLAYERS], double pvelocity[NLAYERS], double svelocity[NLAYERS], double gradient[2]) |
| Retrieve the lat (radians), lon (radians), interface depths (km), P and S wave interval velocities (km/sec) and P and S mantle gradient (1/sec) information associated with a specified node in the velocity grid. More...
|
|
void | getActiveNodeData (const int &nodeId, double &latitude, double &longitude, double depth[NLAYERS], double pvelocity[NLAYERS], double svelocity[NLAYERS], double gradient[2]) |
| Retrieve the lat (radians), lon (radians), interface depths (km), P and S wave interval velocities (km/sec) and P and S mantle gradient (1/sec) information associated with a specified active node in the velocity grid. More...
|
|
void | setGridData (const int &nodeId, double depths[NLAYERS], double pvelocity[NLAYERS], double svelocity[NLAYERS], double gradient[2]) |
| Modify the velocity and gradient information associated with a specified node in the Grid. More...
|
|
void | setActiveNodeData (const int &nodeId, double depths[NLAYERS], double pvelocity[NLAYERS], double svelocity[NLAYERS], double gradient[2]) |
| Modify the depth, velocity and gradient information associated with a specified active node in the Grid. More...
|
|
void | getGreatCircleData (string &phase, double &actual_path_increment, double sourceDepth[NLAYERS], double sourceVelocity[NLAYERS], double receiverDepth[NLAYERS], double receiverVelocity[NLAYERS], int &npoints, double headWaveVelocity[], double gradient[]) |
| Retrieve information about the great circle path including the interface depths at source and receiver, the velocity profiles at the source and receiver, and mantle velocity and velocity gradient at points along the great circle path from source pierce point to receiver pierce point. More...
|
|
void | getGreatCircleData (string &phase, double &actual_path_increment, vector< double > &sourceDepth, vector< double > &sourceVelocity, vector< double > &receiverDepth, vector< double > &receiverVelocity, int &npoints, vector< double > &headWaveVelocity, vector< double > &gradient) |
|
void | getGreatCircleLocations (double lat[], double lon[], double depth[], int &npoints) |
| Retrieve the latitudes, longitudes and depths of all the profile positions along the headwave interface. More...
|
|
void | getGreatCircleLocations (vector< double > &lat, vector< double > &lon, vector< double > &depth) |
|
void | getGreatCircleNodeInfo (int **neighbors, double **coefficients, const int &maxpoints, const int &maxnodes, int &npoints, int *nnodes) |
| Retrieve information about the interpolated points along the headwave path, including the number of points, the indexes of the grid nodes that contributed to interpolation of values at the points, and the interpolation coefficients used to calculate values at the points. More...
|
|
void | getGreatCircleNodeInfo (vector< vector< int > > &neighbors, vector< vector< double > > &coefficients) |
|
void | getInterpolatedPoint (const double &lat, const double &lon, int *nodeIds, double *coefficients, int &nWeights, double depth[NLAYERS], double pvelocity[NLAYERS], double svelocity[NLAYERS], double &pgradient, double &sgradient) |
| Retrieve interpolated data from the earth model at a single specified latitude, longitude. More...
|
|
void | getInterpolatedPoint (const double &lat, const double &lon, vector< int > &nodeId, vector< double > &coefficients, vector< double > &depth, vector< double > &pvelocity, vector< double > &svelocity, double &pgradient, double &sgradient) |
| Retrieve interpolated data from the earth model at a single specified latitude, longitude. More...
|
|
void | getInterpolatedTransect (double lat[], double lon[], const int &nLatLon, int **neighbors, double **coefficients, int *nNeighbors, double depth[][NLAYERS], double pvelocity[][NLAYERS], double svelocity[][NLAYERS], double pgradient[NLAYERS], double sgradient[NLAYERS], int &nInvalid) |
| Retrieve interpolated data from the earth model along a transect defined by equal sized, 1 dimensional arrays of latitude and longitude. More...
|
|
void | getInterpolatedTransect (vector< double > lat, vector< double > lon, vector< vector< int > > &nodeId, vector< vector< double > > &coefficients, vector< vector< double > > &depth, vector< vector< double > > &pvelocity, vector< vector< double > > &svelocity, vector< double > &pgradient, vector< double > &sgradient, int &nInvalid) |
| Retrieve interpolated data from the earth model along a transect defined by equal sized, 1 dimensional arrays of latitude and longitude. More...
|
|
void | initializeActiveNodes (const double &latmin, const double &lonmin, const double &latmax, const double &lonmax) |
| Specify the latitude and longitude range in radians for active nodes. More...
|
|
void | initializeActiveNodes (const string &polygonFileName) |
| Specify the name of a file that contains a list of points that define a polygon that enclose the set of grid nodes that are to be considered active nodes. More...
|
|
void | initializeActiveNodes (GeoTessPolygon *polygon) |
| Specify a polygon that enclose the set of grid nodes that are to be considered active nodes. More...
|
|
void | initializeActiveNodes (double *lat, double *lon, const int &npoints, const bool &inDegrees=true) |
| Specify a list of points that define a polygon that encloses the set of grid nodes that are to be considered active nodes. More...
|
|
void | initializeActiveNodes (const vector< double > lat, const vector< double > lon, const bool &inDegrees=true) |
| Specify a list of points that define a polygon that encloses the set of grid nodes that are to be considered active nodes. More...
|
|
void | initializeActiveNodes (vector< double * > &unitVectors) |
| Specify a list of points that define a polygon that encloses the set of grid nodes that are to be considered active nodes. More...
|
|
int | getNActiveNodes () |
| Retrieve the number of active nodes in the Grid. More...
|
|
void | clearActiveNodes () |
| Clear all active nodes. Clear all active nodes. More...
|
|
int | getGridNodeId (int activeNodeId) |
| Retrieve the grid node ID that corresponds to a specified active node ID. More...
|
|
int | getActiveNodeId (int gridNodeId) |
| Retrieve the active node ID that corresponds to a specified grid node ID. More...
|
|
void | getNodeHitCount (const int &nodeId, int &hitCount) |
| Retrieve the number of times that the specified node has been 'touched' by a GreatCircle object. More...
|
|
int | getNodeHitCount (const int &nodeId) |
|
void | clearNodeHitCount () |
| Clear the node hit count by setting the hit count of every node to zero. More...
|
|
void | getNodeNeighbors (const int &nid, int neighbors[], int &nNeighbors) |
| Retrieve the node IDs of the nodes that surround the specified node. More...
|
|
void | getActiveNodeNeighbors (const int &nid, int neighbors[], int &nNeighbors) |
| Retrieve the active node IDs of the nodes that surround the specified active node. More...
|
|
void | getNodeNeighbors (const int &nid, vector< int > &neighbors) |
| Retrieve the node IDs of the nodes that surround the specified node. More...
|
|
void | getActiveNodeNeighbors (const int &nid, vector< int > &neighbors) |
| Retrieve active the node IDs of the active nodes that surround the specified active node. More...
|
|
void | getNodeNeighborInfo (const int &nid, int neighbors[], double distance[], double azimuth[], int &nNeighbors) |
| Retrieve the node IDs of the nodes that surround the specified node. More...
|
|
void | getNodeNeighborInfo (const int nid, vector< int > &neighbors, vector< double > &distance, vector< double > &azimuth) |
|
void | getActiveNodeNeighborInfo (const int &nid, int neighbors[], double distance[], double azimuth[], int &nNeighbors) |
| Retrieve the active node IDs of the nodes that surround the specified node. More...
|
|
void | getActiveNodeNeighborInfo (const int &nid, vector< int > &neighbors, vector< double > &distance, vector< double > &azimuth) |
| Retrieve the active node IDs of the nodes that surround the specified node. More...
|
|
void | getNodeSeparation (const int &node1, const int &node2, double &distance) |
| Retrieve the angular separation of two grid nodes, in radians. More...
|
|
void | getNodeAzimuth (const int &node1, const int &node2, double &azimuth) |
| Retrieve the azimuth from grid node1 to grid node2, radians. More...
|
|
GreatCircle * | getGreatCircleObject () |
| Retrieve a pointer to the GreatCircle object. More...
|
|
Grid * | getGridObject () |
| Retrieve a pointer to the Grid object. More...
|
|
GeoTessModelSLBM * | getModelObject () |
| Retrieve a pointer to the GeoTessModelSLBM object. More...
|
|
void | getTravelTimeUncertainty (const int &phase, const double &distance, double &uncert) |
| Retrieve the travel time uncertainty in sec for specified phase, distance (in radians). More...
|
|
void | getTravelTimeUncertainty (double &travelTimeUncertainty, bool calcRandomError=false) |
| Retrieve travel time uncertainty in sec using the phase and distance specified in last call to getGreatCircle(). More...
|
|
void | getTravelTimeUncertainty1D (double &travelTimeUncertainty) |
| Retrieve travel time uncertainty in sec using the phase and distance specified in last call to getGreatCircle(). More...
|
|
void | getSlownessUncertainty (const int &phase, const double &distance, double &uncert) |
| Retrieve the slowness uncertainty in sec/radian for specified phase, distance (in radians). More...
|
|
void | getSlownessUncertainty (double &slownessUncertainty) |
| Retrieve uncertainty of the horizontal slowness, in seconds/radian using the phase and distance specified in last call to getGreatCircle(). More...
|
|
string | getUncertaintyTable (const int &phase, const int &attribute) |
|
string | getUncertaintyFileFormat (const int &phase, const int &attribute) |
|
void | getZhaoParameters (double &Vm, double &Gm, double &H, double &C, double &Cm, int &udSign) |
| Retrieve some of the parameters that contribute to the calculation of of total travel time using the Zhao algorithm. More...
|
|
void | getPgLgComponents (double &tTotal, double &tTaup, double &tHeadwave, double &pTaup, double &pHeadwave, double &trTaup, double &trHeadwave) |
| Retrieve information about Pg/Lg travel time calculations. More...
|
|
void | getAverageMantleVelocity (const int &type, double &velocity) |
| Retrieve the average P or S wave mantle velocity that is specified in the model input file, in km/sec. More...
|
|
double | getAverageMantleVelocity (const int &type) |
|
void | setAverageMantleVelocity (const int &type, const double &velocity) |
| Set the average P or S wave mantle velocity that is recorded in the model input file, in km/sec. More...
|
|
void | getTessId (string &tessId) |
| Retrieve the tessellation ID of the model currently in memory. More...
|
|
string | getTessId () |
|
void | getFractionActive (double &fractionActive) |
| Retrieve the fraction of the path length of the current GreatCircle object that is within the currently defined active region. More...
|
|
double | getFractionActive () |
|
string | getClassCount () |
| Retrieve a table that lists the number of instances of various SLBM classes that are currently instantiated. More...
|
|
const string & | getModelPath () const |
| A string containing the path to the SLBM model. More...
|
|
void | getDistAz (const double &aLat, const double &aLon, const double &bLat, const double &bLon, double &distance, double &azimuth, const double &naValue) |
| compute distance and azimuth between two points, A and B (all quantities are in radians). More...
|
|
void | movePoint (const double &aLat, const double &aLon, const double &distance, const double &azimuth, double &bLat, double &bLon) |
| Find point B that is the specified distance and azimuth from point A, in radians. More...
|
|
void | getPiercePointSource (double &lat, double &lon, double &depth) |
| Retrieve the latitude and longitude of the moho pierce point below the source, in radians. More...
|
|
void | getPiercePointReceiver (double &lat, double &lon, double &depth) |
| Retrieve the latitude and longitude of the moho pierce point below the receiver, in radians. More...
|
|
void | getGreatCirclePoints (const double &aLat, const double &aLon, const double &bLat, const double &bLon, const int &npoints, double latitude[], double longitude[]) |
| Retrieve an array of lat, lon points along a great circle path between two specified points, a and b. More...
|
|
void | getGreatCirclePoints (const double &aLat, const double &aLon, const double &bLat, const double &bLon, const int &npoints, vector< double > &latitude, vector< double > &longitude) |
|
void | getGreatCirclePointsOnCenters (const double &aLat, const double &aLon, const double &bLat, const double &bLon, const int &npoints, double latitude[], double longitude[]) |
| Retrieve an array of lat, lon points along a great circle path between two specified points, a and b. More...
|
|
void | getGreatCirclePointsOnCenters (const double &aLat, const double &aLon, const double &bLat, const double &bLon, const int &npoints, vector< double > &latitude, vector< double > &longitude) |
|
void | setDelDistance (const double &del_distance) |
| Change the value of step change in distance used to compute horizontal derivatives(in radians). More...
|
|
void | getDelDistance (double &del_distance) |
| Retrieve the value of step change in distance used to compute horizontal derivatives (radians) More...
|
|
double | getDelDistance () |
|
void | setDelDepth (const double &del_depth) |
| Change the value of step change in depth used to compute depth derivatives (km) More...
|
|
void | getDelDepth (double &del_depth) |
| Retrieve the value of step change in depth used to compute depth derivatives (km) More...
|
|
double | getDelDepth () |
|
void | getRayParameter (double &ray_parameter) |
| Retrieve the ray parameter. More...
|
|
double | getRayParameter () |
|
void | getTurningRadius (double &turning_radius) |
| Retrieve the turning radius of the ray. More...
|
|
double | getTurningRadius () |
|
void | setPathIncrement (const double &pathIncrement) |
| Set the desired spacing of great circle nodes along the head wave interface, in radians. More...
|
|
void | getPathIncrement (double &pathIncrement) |
| Retrieve the current value of the spacing of great circle nodes along the head wave interface, in radians. More...
|
|
double | getPathIncrement () |
| Retrieve the current value of the spacing of great circle nodes along the head wave interface, in radians. More...
|
|
string | getModelString () |
|
double | getSrcLat () |
| getter for read-only attributes property getter for read-only attributes property More...
|
|
double | getSrcLon () |
| getter for read-only attributes property getter for read-only attributes property More...
|
|
double | getSrcDep () |
| getter for read-only attributes property getter for read-only attributes property More...
|
|
double | getRcvLat () |
| getter for read-only attributes property getter for read-only attributes property More...
|
|
double | getRcvLon () |
| getter for read-only attributes property getter for read-only attributes property More...
|
|
double | getRcvDep () |
| getter for read-only attributes property getter for read-only attributes property More...
|
|