|
static void | getBorehole (GeoTessPosition &pos, double maxSpacing, int firstLayer, int lastLayer, bool convertToDepth, bool reciprocal, vector< int > &attributes, vector< vector< double > > &borehole) |
| Retrieve interpolated attribute values along a radial 'borehole' at the specified position. More...
|
|
static void | getBorehole (GeoTessPosition &pos, vector< int > &pointsPerLayer, bool convertToDepth, bool reciprocal, const vector< int > &attributes, vector< vector< double > > &borehole) |
| Retrieve interpolated attribute values along a radial 'borehole' at the specified position. More...
|
|
static string | getBoreholeString (GeoTessModel &pos, double lat, double lon) |
| Retrieve interpolated attribute values along a radial 'borehole' at the specified latitude and longitude, in degrees. More...
|
|
static string | getBoreholeString (GeoTessPosition &pos, double maxSpacing, int firstLayer, int lastLayer, bool convertToDepth, bool reciprocal, vector< int > &attributes) |
| Retrieve interpolated attribute values along a radial 'borehole' at the specified position. More...
|
|
static void | getMapLayerBoundary (GeoTessModel &model, vector< double > &latitudes, vector< double > &longitudes, int layerId, bool top, bool convertToDepth, const GeoTessInterpolatorType &horizontalType, const GeoTessInterpolatorType &radialType, vector< vector< double > > &values) |
| Retrieve a map of the depth or radius of the top or bottom of a specified layer. More...
|
|
static void | getMapValuesDepth (GeoTessModel &model, vector< double > &latitudes, vector< double > &longitudes, int layerId, double depth, const GeoTessInterpolatorType &horizontalType, const GeoTessInterpolatorType &radialType, bool reciprocal, vector< int > &attributes, vector< vector< vector< double > > > &values) |
| Retrieve a map of attribute values at a constant specified depth on a regular latitude-longitude grid. More...
|
|
static void | getMapValuesLayer (GeoTessModel &model, vector< double > &latitudes, vector< double > &longitudes, int layerId, double fractionalRadius, const GeoTessInterpolatorType &horizontalType, const GeoTessInterpolatorType &radialType, bool reciprocal, vector< int > &attributes, vector< vector< vector< double > > > &values) |
| Retrieve a map of attribute values at some fractional thickness with a layer. More...
|
|
static void | getSlice (GeoTessModel &model, const double *const x0, const double *const x1, int nx, double maxRadialSpacing, int firstLayer, int lastLayer, const GeoTessInterpolatorType &horizontalType, const GeoTessInterpolatorType &radialType, const string &spatialCoordinates, bool reciprocal, const vector< int > &attributes, vector< vector< vector< double > > > &transect) |
|
static int | updatePointsPerLayer (GeoTessPosition &pos, int firstLayer, int lastLayer, double maxSpacing, vector< int > &pointsPerLayer) |
| Evaluates maximum number of nodes per layer. More...
|
|
A collection of static utilities that extract organized information from a GeoTessModel.
A collection of static utilities that extract organized information from a GeoTessModel. There are utilities to retrieve:
-
a map of attribute values at a constant specified depth on a regular latitude-longitude grid.
-
a map of attribute values at top or bottom of a layer on a regular latitude-longitude grid.
-
a map of the depth of the top or bottom of a specified layer on a regular latitude-longitude grid.
-
attribute values interpolated on a vertical slice through a model.
-
attribute values along a radial 'borehole' at a specified position.
- Author
- sballar
static void geotess::GeoTessModelUtils::getMapValuesDepth |
( |
GeoTessModel & |
model, |
|
|
vector< double > & |
latitudes, |
|
|
vector< double > & |
longitudes, |
|
|
int |
layerId, |
|
|
double |
depth, |
|
|
const GeoTessInterpolatorType & |
horizontalType, |
|
|
const GeoTessInterpolatorType & |
radialType, |
|
|
bool |
reciprocal, |
|
|
vector< int > & |
attributes, |
|
|
vector< vector< vector< double > > > & |
values |
|
) |
| |
|
static |
Retrieve a map of attribute values at a constant specified depth on a regular latitude-longitude grid.
For every point on the map, if the specified depth is greater than the depth of the bottom of the specified layer, then attribute values are interpolated at the bottom of the specified layer. Similarly, if the specified depth is less than the depth of the top of the specified layer, then attribute values at the top of the specified layer are interpolated.
- Parameters
-
model | the GeoTessModel to be interrogated. |
latitudes | array of latitude values in degrees. |
longitudes | array of longitude values in degrees. |
layerId | layer index |
depth | the depth at which samples should be interpolated, in km. |
horizontalType | either InterpolatorType.LINEAR or InterpolatorType.NATURAL_NEIGHBOR |
radialType | either InterpolatorType.LINEAR or InterpolatorType.CUBIC_SPLINE |
reciprocal | if false, return value; if true, return 1./value. |
attributes | index(es) of the attributes to interpolate. If omitted, all attributes are reported. |
values | 3D vector of doubles: [nlat][nlon][nAttributes] |
- Exceptions
-