	@(#)README.mex	1.4  11/12/98

Date:	1-JAN-95

grdinfo.c
grdread.c
grdwrite.c

These routines can be used from within Matlab 4.2 to read and
write GMT's grdfile format.  To install, you must first
edit the makefile and set the directories, then make all
or make install.  The latter probably requires you to be root.
The routines were originally written by David Sandwell and
later rewritten by Paul Wessel.  They are distributed freely
with the GMT supplemental package.

The *.c file provides the computational routines; the *.m files
are only used when you say, e.g., help grdwrite.

The read/write functions also does an implicit flipud on the
resulting matrix so that the matrix is in the right orientation
for plotting (i.e., y-axis increases upwards).

Modified:	P Wessel 4-JUN-96

grdread can now as an option return [x,y,z]
grewrite may now be given [x,y,z,file,title,[pix]].
Old style calling is kept for backwards compatibility.

Date:	P. Sharfstein 15-SEP-97

modified original source to Matlab 5 API. Also,  created
grdinput.c to create X and Y matricies. The Makefile is currently
set up to run from the gmt/src/mex directory.

Modified:	P Wessel 6-OCT-98

Upgraded all to use GMT 3.1 internal functions.
New option in grdread to return x,y,z, and d.

Modified:	P Wessel 12-NOV-98

grd*.c needed to call GMT_begin to initialize needed parameters,
otherwise a nasty SEGV occurs...
