Beruflich Dokumente
Kultur Dokumente
Chapter 5
Introduction
Converting PC-XPLOR Databases
Import and Merging Data from ASCII Files
Importing Data from Other Systems
Introduction
The Workspace menu has two submenus which allow you to convert
PC-XPLOR version 2.50 database files into the Gemcom for Windows
format, and to import and merge data directly from ASCII text files,
or from other commonly used geological software packages. These
two submenus are the Import/Merge Data submenu, which has
six commands, and the Advanced Import Data submenu, which
has fourteen commands.
Exploration
Page 2084
Page 2085
Exploration
Page 2086
The prompt also asks if you would like to view the CONVERT.LOG
file. Click Yes to view the log conversion file (recommended if the
prompt reported errors or failed conversion) or No to continue
working in Gemcom for Windows.
Page 2087
Exploration
Page 2088
FROM
0.00
3.00
63.00
95.00
100.00
Column 1
TO
3.00
63.00
95.00
100.00
135.00
Column 11
RTYPE
SF
LZ
KZ
PZ
PZ
RCODE
11
222
333
4444
4444
Column 39
Free Column Format. In this format, the length of each field can
change from record to record, and fields are separated by a specific
character, often a comma or a tab character, called a delimiter.
Each record must have the same number of fields, and the fields
must be in the same order in each record.
Page 2089
HOLE-ID,FROM,TO,RTYPE,RCODE
B305,0.00,3.00,SF,11
B305,3.00,63.00,LZ,222
B305,63.00,95.00,KZ,333
B305,95.00,100.00,PZ,4444
B305
100.00
135.00
Figure 5-2: Sample free format ASCII text file
with comma delimiter
Exploration
Page 2090
error will occur if you want to import a field which you define as
occupying columns 35 to 45 in the ASCII file, but the line in
question only has 40 columns.
If you are importing a free-format ASCII file, this error means
that the number of fields you wish to import is greater than the
number of fields delimited in a given line.
Page 2091
Defining Profiles
Before you can import or merge any text file data, you will have to
define either an import or merge profile.
Once you have defined at least one merge or import profile, you can
automatically import or merge data from a number of files into a
number of tables by using a batch import or merge profile.
Importing is intended to add new records to a table, merging to fill
in missing fields in existing records.
In some cases where you have more than one workspace in your
project, profiles may not function properly outside of the workspace
in which they were defined. If you have previously defined import
profiles from another project or workspace, the following warning
may appear prior to the appearance of the profile editor. Click OK to
proceed.
Import Profiles
You can create or modify import profiles for importing data from an
ASCII text file. Select Workspace } Import or Merge Data } Define Import
Profiles to bring up the ASCII Import Profile Editor dialog box.
Follow these steps to add an import profile:
1. Click Add. Enter a name for your profile and click OK.
Exploration
Page 2092
Page 2093
Exploration
Page 2094
3. Click Save.
4. Click Yes in response to the prompt asking you to confirm that
you wish to overwrite the file (this prompt comes up even when
you are adding a new profile).
5. Click Exit to close the profile definition dialog box.
Merge Profiles
You can create or modify merge profiles for merging data from an
ASCII text file. Select Workspace } Import or Merge Data } Define Merge
Profiles to bring up the ASCII Merge Profile dialog box.
1. Click Add. Enter a name for your profile and click OK.
2. Enter the following parameters:
Page 2095
Exploration
Page 2096
Page 2097
3. Click Save. Click Exit to close the profile definition dialog box.
Exploration
Page 2098
Page 2099
Importing Data
You have two commands available for importing data from ASCII
text files into tables in your current workspace:
Exploration
Page 2100
Page 2101
Exploration
Page 2102
Merging Data
You can use one of the following three commands to merge ASCII
text data into your current workspace.
Page 2103
Exploration
Page 2104
Merge Table. Select the name of the table which contains the
memo field into which you wish to merge text data.
Memo Field. Select the name of the memo field into which
you wish to merge bulk text data.
Page 2105
Page 2106
Page 2107
LOG II
MICROMINE
GEOLOG
GEOSTAT
Systems International
MEDSYSTEM
Before you can import data from any of these systems, you will have to
define an import profile specific to that system. Import profiles are a
means of reading the data in the specific format of the outside system,
and writing it to the proper fields in Gemcom for Windows tables. You
will need to be familiar with the file format of the particular system
from which you wish to import data. You may wish to look at the data
files in a text editor using the Tools } Other Utilities } Edit Any
ASCII File Using Text Editor command.
This will also allow you to determine whether you will need to
create additional fields in your Gemcom for Windows workspace in
order to accommodate all data you wish to import. Although the
importing process can create new records, it cannot create new
fields: it can only import data into existing fields. You must ensure
that the receiving Gemcom for Windows workspace has fields
already in place for each type of data you will be importing by
creating additional fields of the appropriate data type in the
Workspace Structure Editor (see Chapter 4: Creating and
Modifying Workspaces).
Exploration
Page 2108
LOG II
Page 2109
Field. Pick the name of the field in the table that will
receive information from the text file.
Exploration
Page 2110
Header
section
Records
(Data)
Type
Column width
Hole-ID
Depth
Dip
Number of decimals
0.00
0.00
180.00
180.00
180.00
180.00
0.00
180.00
180.00
Azimuth
89
89
89
89
89
89
89
89
89
DD
DD
DD
DD
DD
DD
DD
DD
DD
Code
Type
which describes the column names and layout. When you pick a
MICROMINE file within the profile editor, a list will be populated with
the field names contained in that file. You then simply map these fields
to the fields in your Gemcom for Windows workspace table.
Page 2111
Exploration
Page 2112
MICROMINE
Key?. If you wish to use this field as the primary key for
importing into a secondary table, select Yes from the list.
Otherwise, select No.
6. Repeat Step 6 for each new field in the active table into which
you wish to import MICROMINE data.
7. Repeat Steps 3 through 6 for each table in your Gemcom for
Windows workspace into which you wish to import MICROMINE
data. Note that for each secondary table included in the profile,
you must list the primary key for the workspace as well as the
secondary key for the specific secondary table.
8. When you have entered parameters for all desired fields and
tables, click Save.
9. Click Exit to close the profile definition dialog box.
Page 2113
Exploration
Page 2114
You can define field maps for up to sixteen tables in the current
Gemcom for Windows workspace in each GEOLOG import profile.
IDEN6B0201
IPRJ GEMCOM
S000
000
S001 2219
/NAM
LNAM
/SCL
LSCL
A001
AUMM
A002
AUMM
X
RHED
RHED
RHED
X
V214DH07
NQ86OCT30MBG
SOFTWARE INTERNATIONAL INC.
2219MT
45.72290.00-50.00
4572
284.00-53.0
CARNOCT86S38
GRD200.00
0105
EXAMPLE PROJECT
-750.00 -1465.00
120.0
CLCBSD XX
PY
SETAMU CYFK
MT.2PC.0
MT.1
LMPR
LBHU
SAMP
ASY1 ASY2
SAMP
ASY3 ASY4
Page 2115
Field. Pick the name of the Gemcom for Windows field into
which you wish to import GEOLOG data.
Exploration
Page 2116
6. Repeat Step 5 for each new field in the active table into which
you wish to import GEOLOG data.
7. Repeat Steps 3 through 6 for each table into which you wish to
import GEOLOG data.
8. When you have entered parameters for all desired fields and
tables, click Save.
9. Click Exit to close the profile definition dialog box.
Page 2117
5. Highlight the desired GEOLOG import profile in the list and click
OK.
6. A status window will appear, displaying the progress of the data
importing process. Click OK to clear the window from the screen
when the import is complete.
7. You can view the newly imported data using the Workspace
Editor (see Chapter 6: Editing Data). Additionally, Gemcom for
Windows will have created an error log file with the same name
as the imported GEOLOG file and an extension of .ERR. You can
view this log file by selecting Edit Last Generated Report
File (or Tools } Other Utilities } Edit Any ASCII file using
Text Editor).
-244.00
MP-1
-244.00
90.00
MP-1
MP-2
MP-3
MP-4
MP-5
MP-6
MP-389
MP-390
MP-391
MP-392
MP-7
-518.00
304.80
5.00
5.65
0.65
-518.00
304.80
180.00
-43.00
5.00
5.65
0.65
5.65
6.65
1.00
8.45
8.95
0.50
11.90
12.90
1.00
12.90
13.30
0.40
13.30
14.30
1.00
14.30
15.50
1.20
15.50
17.00
1.50
17.00
18.50
1.50
18.50
19.58
1.08
19.58
20.58
1.00
180.00
0.001
180.00
0.001
0.001
0.001
0.001
0.001
0.001
0.001
0.001
0.001
0.001
0.001
-45.00
0.01
-45.00
90.00
90.00
0.01
0.01
0.01
0.01
0.01
0.01
0.01
0.01
0.01
0.01
0.01
Exploration
Page 2118
Page 2119
Field. Pick the name of the Gemcom for Windows field into
which you wish to import GEOSTAT data.
6. Repeat Step 5 for each new field in the active table into which
you wish to import GEOSTAT data.
Exploration
Page 2120
7. Repeat Steps 3 through 6 for each table into which you wish to
import GEOSTAT data.
8. When you have entered parameters for all desired fields and
tables, click Save.
9. Click Exit to close the profile definition dialog box.
Page 2121
File (or Tools } Other Utilities } Edit Any ASCII file using
Text Editor).
597.400
600.400
603.500
606.500
D6928
D6928
D6928
D6928
D6928
D6928
D6928
D6928
D6928
D6928
D6928
D6928
D6928
29962.3
.0
137.2
411.5
.000
.000
12.800
15.200
18.200
21.300
24.300
27.400
600.400
603.500
606.500
611.100
29252.3
137.2
411.5
550.5
.000
12.800
15.200
18.200
21.300
24.300
27.400
30.400
3.000
3.100
3.000
4.600
1283.1
137.2
274.3
139.0
.000
12.800
2.400
3.000
3.100
3.000
3.100
3.000
.660
.790
.550
.360
45.000
45.000
45.000
45.000
-1.000
-1.000
.260
.290
.360
.440
.750
.640
.003
.001
.003
.001
-45.000
-45.000
-49.000
-50.000
550.47
-1.000
-1.000
.001
0.000
.002
0.000
0.000
.001
Exploration
Page 2122
Page 2123
3. You must now define formats for each table into which you wish
to import MEDSYSTEM data. The order in which these formats
are defined is very important: the format for the header table
must be defined first, followed by the format for the surveys
table. Formats for any remaining tables can be defined once the
first two formats have been created.
In the parameter cell labelled Now defining format for
table, select the table into which you wish to import
MEDSYSTEM data. Once you have selected a table, four column
headings will appear in the editing window at the bottom of the
dialog box.
4. Enter the following parameters for the table:
Field. Pick the name of the Gemcom for Windows field into
which you wish to import MEDSYSTEM data.
Exploration
Page 2124
6. Repeat Step 5 for each new field in the active table into which
you wish to import MEDSYSTEM data.
7. Repeat Steps 3 through 6 for each table into which you wish to
import MEDSYSTEM data.
8. When you have entered parameters for all desired fields and
tables, click Save.
9. Click Exit to close the profile definition dialog box.
Page 2125
Exploration