Professional Documents
Culture Documents
Version All
References: www.datamine.co.uk
INTRODUCTION
Datamine files are composed of one or more 2048 bytes binary records. Each record is
usually referred to as a "page". This document describes the structure of each page, to
assist developers in writing applications to read Datamine files.
There are two forms of file in use by Datamine, which contain either single or double
precision data. Both forms follow the same overall storage scheme, but store data in
either single or double precision. Files contain either single or double precision data:
data types are not mixed within a single file.
Mineral Industries Computing Limited (which owns the copyright to the Datamine
product) makes no guarantee that the file structure described here will be retained in
future.
For any third party wishing to interface to Datamine files Datamine Corporate strongly
recommends using the Datamine File Software Development Toolkit (SDK). This has been
designed to be used from a variety of different programming languages.
GENERAL COMMENTS
All files used by Datamine have the same logical structure. Whether the file stores point
data, drill hole data, deposit models or anything else, the same structure is used. The
first file page contains the Data Definition, which details the number of records stored,
and the fields and field types used. Subsequent pages contain the actual data.
The file does not contain any specific description of the purpose for which it was created.
In other words, there is no "file type" parameter that says that "this is a drill hole file" or
"this is a model file", etc. The programs that use the file examine the list of fields (as
described by the data definition) to decide on whether the file is appropriate for a
particular use. The fields contained in the common file types are described starting on
page 4.
Each page in a file is 2048 bytes, or 512 32-bit words, long. All numeric values are
stored as 32-bit ("single precision") floating-point values, even if the value stored is
always an integer. Alphanumeric values are stored 4 bytes to each 32 bit word. No
other data types are used.
Each page in a file is 4096 bytes, or 512 64-bit words, long. All numeric values are
stored as 64-bit (“double precision”) floating-point values, even if the value stored is
always an integer. Alphanumeric values are stored in the first 4 bytes of a 64-bit word,
with 4 bytes in each word “reserved”. No other data types are used.
The first pages in any file contain a description of the structure of the file, and the names
and types of the logical fields stored. The Data Definition is described in the following
table:
Following the first 28 words in the Data Definition, 7 words of information are stored for
each numeric field or each 4 bytes of each alphanumeric field. Words 29 to 35 contain
details of the first field in the file (or the first 4 bytes of the field if it is alphanumeric).
The same information about the second field is then stored in words 36 to 42, and so on.
A maximum of 64 fields of data (i.e. 64 numeric fields or 64x4 bytes of alphanumeric
data, or any combination of numeric and alphanumeric) may be stored in any single
precision file. Therefore, field specifications in the DD may continue up to words 470 to
476 (being specifications for the 64th field).
1 1 29 -- 35
68 1 498 -– 504
69 2 1 –- 7
142 3 1 –- 7
213 4 1 -- 7
Datamine also supports the notion of "implicit fields". An implicit field has an entry in
the Data Definition only, i.e. it is a constant value that is associated with the file.
Datamine applications allow the implicit field to be treated just as any other field.
"DATA" PAGES
Each page following the Data Definition will contain the data values. Each page will
contain as many logical records as will fit in the 508 words available. The number of
words in each logical data record is given in word 26 of the Data definition. The order of
values in each logical record is the same as defined by the field entries in the Data
Definition.
It is legal for a file to have zero records; in this case it will contain a data definition only.
It is not legal for a file to have zero fields.
The following tables detail the types of files recognized by Datamine. Note that in
addition to the fields listed, most of these file types will contain additional "attribute"
fields. For example, a file is recognized as a coordinate string or perimeter file if it
contains the five numeric, explicit fields "XP", "YP", "ZP", "PTN", and "PVALUE".
However, nearly all string files will contain additional fields called "COLOUR",
"LINESTYLE", etc.
String, perimeter
XP Numeric Explicit
YP Numeric Explicit
ZP Numeric Explicit
Plot file
Plot
X Numeric Explicit
Y Numeric Explicit
S1 Numeric Explicit
S2 Numeric Explicit
Drill hole
X Numeric Explicit
Y Numeric Explicit
Z Numeric Explicit
Block model
NX Numeric Implicit
NY Numeric Implicit
NZ Numeric Implicit
Wireframe triangle
Wireframe points
XP Numeric Explicit
YP Numeric Explicit
ZP Numeric Explicit
Section definition
Catalogue file
Catalogue
Schedule
Results file
Results
Rosette
Drive statistics
Point data
Dependency file
Dependency
IN Numeric Explicit
Validation file
#########
2006 Datamine Corporate Limited. All rights reserved.
The information contained in this document represents the current view of Datamine Corporate Limited on the issues discussed as of the date of
publication. Because DCL must respond to changing market conditions, it should not be interpreted to be a commitment on the part of DCL, and
DCL cannot guarantee the accuracy of any information presented after the date of publication.
This document is for informational purposes only. DCL MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT.
Datamine is a registered trademark of Datamine Corporate Limited. Microsoft, Windows and Windows NT are registered trademarks and ActiveX
is a trademark of Microsoft Corporation.