GeoTessJavaExamples
2.0
|
An example of how to generate a 3D GeoTessModel and populate it with data. More...
Static Public Member Functions | |
static void | main (String[] args) |
An example of how to generate a 3D GeoTessModel and populate it with data. More... | |
Static Protected Member Functions | |
static float[] | getRadii (double lat, double lon, int layer) |
Returns a 1D profile of monotonically increasing radius values that define the radial positions of nodes along a radial profile through a single layer in the model. More... | |
static float[][] | getRawData (double lat, double lon, int layer) |
Retrieve a 2D array of floats with nNodes x nAttributes elements. More... | |
An example of how to generate a 3D GeoTessModel and populate it with data.
The data are stored on a GeoTessGrid comprised of 3 multi-level tessellations, one for the core, one for the mantle and one for the crust. The GeoTessGrid is not generated by this example. It was previously computed using the GeoTessBuilder software and delivered as part of the GeoTess package in the GeoTessModels directory.
The data used to populate the model come from the ak135 model, which is hardcoded into the source code for the example.
Definition at line 60 of file PopulateModel3D.java.
|
staticprotected |
Returns a 1D profile of monotonically increasing radius values that define the radial positions of nodes along a radial profile through a single layer in the model.
For this example, we will return the radius positions of the nodes in the AK135 model, stretched a little bit so that the top of the model will coincide with the radius of the WGS84 ellipsoid instead of the ak135 value of 6371 km.
lat | the latitude of the profile |
lon | the longitude of the profile |
layer | the index of the layer. |
Definition at line 223 of file PopulateModel3D.java.
|
staticprotected |
Retrieve a 2D array of floats with nNodes x nAttributes elements.
The number of attributes is 3, for the vp, vs and rho. nDataArrays varies in the different layers. For core and mantle layers, nNodes will equal the number of radii in the corresponding layers of the AK135 model. For the crustal layers, nNodes will be one, reflecting the fact that the attribute values are constant in the crustal layers of the ak135 model.
In this example, the data returned are independent of latitude and longitude since ak135 is a '1D' model, but this will not generally be true for real 3D models.
lat | |
lon | |
layer |
Definition at line 261 of file PopulateModel3D.java.
|
static |
An example of how to generate a 3D GeoTessModel and populate it with data.
The data are stored on a GeoTessGrid comprised of 3 multi-level tessellations, one for the core, one for the mantle and one for the crust. The GeoTessGrid is not generated by this example. It was previously computed using the GeoTessBuilder software and delivered as part of the GeoTess package in the GeoTessModels directory.
The data used to populate the model come from the ak135 model, which is hardcoded into the source code for the example.
args | this example requires a single command line argument that specifies the full path of the grid file. The file is called small_model_grid.ascii and was delivered with the GeoTess package in the GeoTessModels directory. |
Definition at line 77 of file PopulateModel3D.java.