Downhole Coordinates Interpolation: Configuration
Use the Downhole Coordinates Interpolation Property Editor to configure a query that can be used to interpolate coordinates using a set of downhole coordinates previously recorded, or calculated, from downhole deviation survey data.
Data
On the Configuration | Data page of the Downhole Coordinates Interpolation Property Editor, click the Build button to use the SQL Editor to write or load the query for the interpolation process.
The sample query shown below retrieves floor depths of economic zones from the named zones table.
The result set should be sorted by PROJECT, SITE_ID and DEPTH (assuming that only one instance and one coordinate system are returned per drillhole).
The DEPTH column returns the depth values for which coordinates must be interpolated.
The INSTANCE and COORDSYS columns are used to retrieve the appropriate downhole survey coordinates from the database, using the following query:
SELECT DEPTH, NORTHING, EASTING, HEIGHT
FROM GB_DOWNHOLE_SURVEY_COORDS
WHERE
PROJECT = 'TheProject'
AND SITE_ID = 'TheSiteID'
AND COORDSYS = 'TheCoordSys'
AND INSTANCE = TheInstance
ORDER BY DEPTH
Output
On the Configuration | Output tab of the Downhole Coordinates Interpolation Property Editor, specify how the results of the interpolation will be written
Output File - Write results to a file
Select this option to write the output to:
- A Comma Separated Values (CSV) text file
- A Micromine Origin & Beyond Data file.
If you select Comma Separated Values (CSV) as the output file type, click the Options... button to set the options to Include header row with column names, or Enclose text field values in quotes.
Prompt for file name at run-time
If you prefer to give the user the option of changing the file specification as the process is run, then make sure the Prompt for file name at execution time option is selected.
Substitutions
Click the Substitutions button alongside the file Browse button to select and insert a substitution parameter when specifying the output file name.
Database Update - Write results to the Micromine Geobank Database
Select this option to write the results of the process back to the database. Click the Build button to use the SQL Editor to write or load the query that will populate the database table.
This script writes the results for a given survey point.