Вы находитесь на странице: 1из 4

XYZGMS

Builds GM-SYS Starting Models


Version 1.07

June 25, 2001

XYZGMS is a command-line driven GM-SYS utility program that will read GEOSOFT
format 'XYZ' files with several fields of data, and create a GM-SYS model. Input data
fields may include topography, additional global horizons, gravity data, magnetic data
and station elevations.
XYZGMS incorporates the following features:
q

q
q
q
q

XYZGMS reads free format ASCII files, (i.e. fields of data separated by spaces).
Data fields can be in any order you chose. Geosoft line headers need to be present.
You select which 'Line' will be used for building the model
XYZGMS can window and decimate your data to a subset of your data file.
XYZGMS allows you to select default values for missing data types (e.g. magnetic
station elevations).
XYZGMS creates all necessary files for a GM-SYS model including conveniently
recalled views.
XYZGMS allows you to specify a starting X-coordinate offset.

Note that XYZGMS converts a multi-segment line into a single-segment profile as


shown below. The black line represents the original profile as digitized by the user. The
red line is the location of the model profile in real-world X,Y space with values projected
perpendicularly onto the model profile. The model-profile azimuth is based on the first
and last points in the original profile. The profile location is then shifted to minimize the
average mis-fit.

GM-SYS Projected
Profile location

Original Profile

RUNNING XYZGMS:
XYZGMS is a command line driven program. Typing XYZGMS followed by a number
of parameters and options runs it.
Usage:
XYZGMS in out -l= or -f -zg= or -zm= [ optional parameters ]
Where:
in base name of the XYZ file (.XYZ extension assumed)
out base name for the output files
-l= line type [B, T, or L] and line number
-f input is a flat file ( one line, no line headers )
-zg= column for gravity values
-zm= column for magnetics values
In, out, -l= or f, and at least one of -zg= or -zm= are required.
Optional parameter may specify data column numbers, constant
values, data windowing, multiple layer horizons, etc.
column numbers
-gzx,gzy,gzz,gxx,gyy,gxy= gravity gradient values
-mz= magnetic vertical gradient values
-zeg= gravity elevation values (+ is up)
-zem= magnetics elevation values (+ is up)
-zt= topography elevation values (+ is up)
-h= h1,h2,h3...columns for up to 15 layer horizons. ( + is down )
constant values
-eg= gravity observation elevation (+ is up)
-em= magnetics (+ is up)
-t= topography (+ is up)
limits ( default is to pass entire range )
-x= min,max X
-y= min,max Y
-s= min,max Station No.
miscellaneous
-u= unit conversion (default meters) (input in feet, use -u=3.28)
-d= decimation factor. Take only every d th point (Default -d=1)
-x0= x-coordinate of first point in profile. The default is 0.
-q supress version message
-f input is a flat file, containing a single line. No geosoft
line headers are expected.

The first point in the model will be placed at X=0 (GM-SYS model coordinates) and
GM-SYS model coordinates will be calculated as the distance from that point. The -x0
parameter may be used to shift the starting X-coordinate to any value. Those coordinates
may also be shifted using the GM-SYS utility program CVTGMS.
XYZGMS calculates the profile azimuth and generates a transformation between the
profile (XZ) coordinates and the original input (XYZ) coordinates. The coordinate
transformation is saved in <out>.ECS and is used by GM-SYS to recover the original
XYZ coordinates for surface export, grid output, and interaction with third-party
software, such as Geosofts Oasis montaj. XYZGMS assigns relative strike angle=90,
magnetic inclination=60, declination=20 and field intensity=56,000 as default values.
You may change these for each model in GM-SYS (Profile menu, set field and set
azimuth) to the proper values for your profile.
Example:

XYZGMS test test -l=L19 -d=5 -t=400 -eg=400 -zg=5

This example will read data from file test.xyz and create a GM-SYS model named test.
Only every 5th point will be read, topography elevation is constant at 400 meters, gravity
data is in the 5th field of the input data file, and the elevation of the gravity stations is
constant at 400 meters.
Two sample files are included with the distribution:
1.
2.

gms.xyz is a sample input data file


sample.bat is a sample batch file using gms.xyz

SPECIFICATIONS:
Maximum number of columns (characters) in input record
Maximum number of data fields in input file:
Maximum number of data points in output model:

256
50
16,000

NGA'S LICENSE STATEMENT


Both United States Copyright Law and International Treaty provisions protect this
software. Therefore, you must treat this software just like a book. This means that this
software may be used by any number of people and may be freely moved from one
computer location to another so long as there is No Possibility of it being used at one
location while it's being used at another. Northwest Geophysical Associates authorizes
you to make archive copies of the software for the sole purpose of backing up your
software and protecting your investment from loss.

Warranty
With respect to the physical diskette and physical documentation enclosed herein,
NORTHWEST GEOPHYSICAL ASSOCIATES, INC. ("NGA") warrants the same to be
free of defects in materials and workmanship for a period of 60 days from the date of
purchase. In the event of notification within the warranty period of defects in material or
workmanship, NGA will replace the defective diskette or documentation. The remedy
for breach of this warranty shall be limited to replacement and shall not encompass any
other damages, including but not limited to loss of profit, special, incidental,
consequential, or other similar claims.
NORTHWEST GEOPHYSICAL ASSOCIATES, INC., SPECIFICALLY DISCLAIMS
ALL OTHER WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING BUT NOT
LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE WITH RESPECT TO DEFECTS IN THE
DISKETTE AND DOCUMENTATION, AND THE PROGRAM LICENSE GRANTED
HEREIN. IN PARTICULAR, AND WITHOUT LIMITING OPERATION OF THE
PROGRAM LICENSE WITH RESPECT TO ANY PARTICULAR APPLICATION,
USE, OR PURPOSE. IN NO EVENT SHALL NGA BE LIABLE FOR ANY LOSS OF
PROFIT OR ANY OTHER COMMERCIAL DAMAGE, INCLUDING BUT NOT
LIMITED TO SPECIAL, INCIDENTAL, CONSEQUENTIAL OR OTHER
DAMAGES.

XYZGMS is copyrighted 2001 by


and GM-SYS is a trademark of:
Northwest Geophysical Associates, Inc.
P.O. Box 1063
Corvallis, OR 97339
Phone (541) 757-7231
FAX (541) 757-7331
email: info@nga.com
anonymous ftp: nga.com
Web page: www.nga.com