DOPN (Open an XYZ file)

The DOPN command opens an XYZ file and selects a Z column and range of lines to be read into the XYZ buffers using the DXYZ command.

Command Syntax

DOPN file,iz,strlen,range,projection

Command Parameters: 

file

The name of an XYZ file to open. If a file already open, it will be closed before opening the new file.

iz

The Z column number to read when using the DXYZ command.

strlen

If the Z data is to be read as text strings, define the maximum text string length in characters. If strlen is not specified, the Z column is read as a number. Note that some buffer operations will not work on text strings.

range

The line types and range of lines to be read by secondary command (eg. DXYZ). These are defined using the syntax:

TypesLine:Line

Where:

types

is one or more letters ‘L’, ‘B’, ‘T’, ‘S’, and ‘R’, which indicate Line, Base, Tie, teSt and tRend respectively.

line:Line

range of lines to include.

Examples:

L100

select only line 100. This is the same as selecting a single line in the DXYZ command.

LBT

select all lines, base lines and tie lines.

LB100:5000

select lines and base lines between 100 and 5000

L:5000

select all lines less than or equal to 5000

L5000:

select all lines greater than or equal to 5000

projection

The name of a Geosoft Projection (.PRJ) file that describes the projection of the XYZ data file. This is only necessary if the data projection is different from the map projection. The map projection can be defined by the MDF file or by the PROJ command. If a projection is specified, the data will be re-projected to the map projection as it is read by the DXYZ command.

Example
MDFF m1

DOPN mag,2,8,LT:1000

DXYZ

SYMB 0,,,2,0.2

DPST 0,.15,-.1,-1

This opens file MAG.XYZ and selects the second Z column to be read into the Z buffer. The Z data will be read as a maximum 8-character text string. Only lines and tie lines less than or equal to 1000 will be read. The DXYZ command reads the first line of data, the SYMB command plots a '+' symbol at each data location, and the DPST command posts the Z values.

  • This command is part of the MAPPLOT GX.