/usr/include/gmt/gmt_mgg_header2.h is in libgmt-dev 4.5.12-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | /* $Id: gmt_mgg_header2.h 9545 2011-07-27 19:31:54Z pwessel $
*
* Code donated by David Divens, NOAA/NGDC
* Distributed under the GNU Public License (see LICENSE.TXT for details)
*/
#ifndef _H_MGG_HEADER_2
#define _H_MGG_HEADER_2
#define MGG_MAGIC_NUM 1000000000
#define MGG_VERSION 1
#define MGG_NAN_VALUE 999999
#define DEFAULT_PREC 10
#define GRD98_N_UNUSED 10
typedef struct {
int version; /* 1,000,000,001 Magic_Num + Version */
int length; /* 128 bytes */
int dataType; /* 1=data, 2=density, 3=radius, -1=template */
int latDeg;
int latMin;
int latSec;
int latSpacing;
int latNumCells;
int lonDeg;
int lonMin;
int lonSec;
int lonSpacing;
int lonNumCells;
int minValue; /* Whole meters */
int maxValue; /* Whole meters */
int gridRadius; /* -1 for grid radius not performed */
int precision; /* 1 = whole meters, 10 = tenths of meters */
int nanValue;
int numType; /* bytesize, pos=int, neg=float */
int waterDatum; /* Vertical datum 0 = Mean Sea Level, 1 = local */
int dataLimit; /* 2-byte, 4-byte -1 = float */
int cellRegistration; /* 1 for pixel (cell centered), 0 for gridline */
int unused[GRD98_N_UNUSED]; /* Unused 4byte ints */
} MGG_GRID_HEADER_2;
GMT_LONG mgg2_read_grd_info (struct GRD_HEADER *header);
GMT_LONG mgg2_write_grd_info (struct GRD_HEADER *header);
GMT_LONG mgg2_read_grd (struct GRD_HEADER *header, float *grid, double w, double e, double s, double n, GMT_LONG *pad, GMT_LONG complex);
GMT_LONG mgg2_write_grd (struct GRD_HEADER *header, float *grid, double w, double e, double s, double n, GMT_LONG *pad, GMT_LONG complex);
#endif
|