Import ASEG-GDF2
Use the Database > Import > ASEG-GDF > Import GDF menu option (IMPASEG GX) to import ASEG-GDF2 data.
Import GDF dialog options
Application Notes
Data can now be imported directly into a database using the IMPASEG GX, without needing a pre-existing template. However, you must specify at least one of the data or DEFN file names. If either the data or DEFN file is specified, the other is assumed to have the same name with the appropriate extension (i.e., either .dat or .dfn) and be located in the same directory.
The ASEG-GDF2 specification states that "An ASAEG-GDF2 data exchange has a minimum of four files." In practice, as few as two files may be used:
-
The data definition file (.dfn)
-
The data file (.dat)
The text description of the data and survey (.des) is often omitted.
Capturing the coordinate system information on import:
Import Templates
The import of ASEG-GDF2 data can be customized by creating an import template file (with the default extension .I4). This is an ASCII file that specifies the data channels you want to import and the database channels where you want to place the data. The SCANASEG GX can be used to scan a specified ASEG-GDF2 DEFN file and create a default import template that will import all data contained in the data file. Alternatively, if no template is specified when using the IMPASEG GX, a template is automatically created during the import, with the same name as the data file and the .i4 extension. This template can be edited to import a subset of channels or rename channels during import.
Example of an ASEG-GDF2 import template:
[IMPORT ASEG-GDF2]DEFN BOOTHILL.dfn
DATA BOOTHILL.dat
FLC FLTLINE
IMPORT FLIGHT,FLIGHT,SHORT
IMPORT DATE,DATE,LONG
IMPORT TIME,TIME,FLOAT
IMPORT FIDUCIAL,FIDUCIAL,FLOAT
IMPORT ALTITUDE,ALTITUDE,FLOAT
IMPORT TMAGRAW,TMAGRAW,FLOAT
ALIAS L20440,L20440
ALIAS L20450,L20450
The template file is searched for the line [IMPORT ASEG-GDF2], and the IMPORT and ALIAS lines that follow are scanned to determine the data to be imported and the channels in which to place the data. You may add any comment lines before the [IMPORT ASEG-GDF2] line.
DEFN syntax:
DEFN file_name
Where file_name is the name of the ASEG-GDF2 DEFN file to import.
DATA syntax:
DATA file_name
Where file_name is the name of the ASEG-GDF2 data file to import.
FLC syntax:
FLC flight_line_channel
Where flight_line_channel is the name of the ASEG-GDF2 channel containing the flight line information.
IMPORT syntax:
IMPORT name, channel, type
Where:
-
name is the name used in the ASEG-GDF2 DEFN file to indicate the data name.
-
channel is a mapping to the channel that will be created in the database.
-
type (one of BYTE, UBYTE, SHORT, LONG, FLOAT or DOUBLE) should correspond to the type in the DEFN file.
ALIAS syntax:
ALIAS aseg_line_name, new_line_name
As the ASEG-GDF2 lines are imported, if a line-channel already exists in the database, it will be replaced. The ALIAS statement in the import template can be used to rename ASEG-GDF2 data file lines during import. If the new_line_name is blank, the line will not be imported.
If ALIAS is used, ALL lines contained in the ASEG-GDF2 file must be defined by an ALIAS line in the same order that the lines appear in the file. The SCANASEG GX can be used to construct a default template that includes ALIAS lines for all lines of a file. This file can be edited as required by the system.
For example, if a file contains line L90, two sections of line L100, and a tie line L30, the following ALIAS lines can be used to import the data into properly named lines:
ALIAS L90,L90
ALIAS L100,L100.0
ALIAS L100,L100.1
ALIAS L30,T30
Setting Coordinate Systems
If the Specify coordinate system on import setting is set to "Yes" in the General Settings, and no coordinate system is defined for the current X and Y channels, Set Coordinate System will be called to set the projection on the X and Y.
See Also:
Got a question? Visit the Seequent forums or Seequent support
© 2024 Seequent, The Bentley Subsurface Company
Privacy | Terms of Use