/usr/include/gmt/cm4_functions.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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | /*---------------------------------------------------------------------------
* $Id: cm4_functions.h 9545 2011-07-27 19:31:54Z pwessel $
*
*
* File: cm4_functions.h
*
* Functions required to compute CM4 magnetic components
*
* Authors: J. Luis translated from original Fortran code
* P. Wessel further massaged it into this form
*
* Version: 1.0
* Revised: 1-MAY-2009
*
*-------------------------------------------------------------------------*/
struct MGD77_CM4 {
struct L { /* */
int curr;
int curr_components[4];
int n_curr_components;
int curr_sources[4];
int n_curr_sources;
} L;
struct D { /* */
int active;
int index;
int load;
double *dst;
char *path;
} D;
struct I { /* */
int active;
int index;
int load;
double F107;
char *path;
} I;
struct F { /* -F<xymrw> */
int active;
int field_components[7];
int n_field_components;
int field_sources[7];
int n_field_sources;
} F;
struct G { /* */
int geodetic;
} G;
struct M { /* */
char *path;
} M;
struct DATA { /* */
int pred[6];
int n_pts;
int n_times;
int n_altitudes;
int coef;
double gmdl[1];
double *out_field;
} DATA;
struct S { /* */
int nlmf[2];
int nhmf[2];
} S;
};
int MGD77_cm4field (struct MGD77_CM4 *Ctrl, double *p_lon, double *p_lat, double *p_alt, double *p_date);
void MGD77_CM4_init (struct MGD77_CONTROL *F, struct MGD77_CM4 *CM4);
|