/usr/include/gmt/gmt_mgg.h is in libgmt-dev 4.5.11-1build1.
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 | /*--------------------------------------------------------------------
* $Id: gmt_mgg.h 9989 2013-03-04 19:14:06Z pwessel $
*
* Copyright (c) 1991-2013 by P. Wessel and W. H. F. Smith
* See README file for copying and redistribution conditions.
*--------------------------------------------------------------------*/
/* Requires gmt.h to already have been included */
#define GMTMGG_NODATA (-32000) /* .gmt file NaN proxy */
#define MDEG2DEG 0.000001 /* Convert millidegrees to degrees */
#define NGDC_OLDEST_YY 39 /* Oldest NGDC cruise is from 1939 */
#define GMTMGG_TIME_MAXMONTH 61 /* 5 years is a long time for one cruise */
struct GMTMGG_TIME {
int daymon[GMTMGG_TIME_MAXMONTH]; /* Cumulative number of days up to last month */
int first_year; /* The year the cruise started */
};
struct GMTMGG_REC { /* Format of *.gmt file records */
int time;
int lat;
int lon;
short int gmt[3];
};
EXTERN_MSC int gmtmgg_date (int time, int *year, int *month, int *day, int *hour, int *minute, int *second, struct GMTMGG_TIME *gmt_struct);
EXTERN_MSC struct GMTMGG_TIME *gmtmgg_init (int year1);
EXTERN_MSC int gmtmgg_time (int *time, int year, int month, int day, int hour, int minute, int second, struct GMTMGG_TIME *gmt_struct);
EXTERN_MSC void gmtmggpath_init (void);
EXTERN_MSC int gmtmggpath_func (char *leg_path, char *leg);
EXTERN_MSC int gmtmgg_decode_MGD77 (char *string, int tflag, struct GMTMGG_REC *record, struct GMTMGG_TIME **gmt_struct, int anom_offset);
EXTERN_MSC void gmtmgg_end (void);
|