1 /*
2  *	Code donated by David Divens, NOAA/NGDC
3  *	Distributed under the GNU Public License (see LICENSE.TXT for details)
4  */
5 
6 /*!
7  * \file gmt_mgg_header2.h
8  * \brief
9  */
10 
11 #ifndef _H_MGG_HEADER_2
12 #define _H_MGG_HEADER_2
13 
14 enum GMT_enum_grd98 {GRD98_MAGIC_NUM = 1000000000,
15 	GRD98_VERSION		= 1,
16 	GRD98_NAN_VALUE		= 999999,
17 	GRD98_DEFAULT_PREC	= 10,
18 	GRD98_N_UNUSED		= 10};
19 
20 typedef struct {
21 	int	version;		/* 1,000,000,001 Magic_Num + Version */
22 	int	length;			/* 128 bytes */
23 	int	dataType;		/* 1=data, 2=density, 3=radius, -1=template */
24 	int	latDeg;
25 	int	latMin;
26 	int	latSec;
27 	int	latSpacing;
28 	int	latNumCells;
29 	int	lonDeg;
30 	int	lonMin;
31 	int	lonSec;
32 	int	lonSpacing;
33 	int	lonNumCells;
34 	int	minValue;		/* Whole meters */
35 	int	maxValue;		/* Whole meters */
36 	int	gridRadius;		/* -1 for grid radius not performed */
37 	int	precision;		/* 1 = whole meters, 10 = tenths of meters */
38 	int	nanValue;
39 	int	numType;		/* bytesize, pos=int, neg=float */
40 	int	waterDatum;		/* Vertical datum 0 = Mean Sea Level, 1 = local */
41 	int	dataLimit;		/* 2-byte, 4-byte -1 = float */
42 	int	cellRegistration;	/* 1 for pixel (cell centered), 0 for gridline */
43 	int unused[GRD98_N_UNUSED];	/* Unused 4byte ints */
44 } MGG_GRID_HEADER_2;
45 
46 #endif
47