MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_geoid.h File Reference

MRTKLIB Geoid Module — Geoid height models. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GEOID_EMBEDDED   0
#define GEOID_EGM96_M150   1
#define GEOID_EGM2008_M25   2
#define GEOID_EGM2008_M10   3
#define GEOID_GSI2000_M15   4
#define GEOID_RAF09   5

Functions

int opengeoid (int model, const char *file)
 Open geoid model file.
void closegeoid (void)
 Close geoid model file.
double geoidh (const double *pos)
 Get geoid height from geoid model.

Detailed Description

MRTKLIB Geoid Module — Geoid height models.

This header declares the public geoid functions (opengeoid, closegeoid, geoidh) and geoid model constants extracted from geoid.c.

Note
All functions in this module are pure cut-and-paste extractions from geoid.c with zero algorithmic changes.

Definition in file mrtk_geoid.h.

Macro Definition Documentation

◆ GEOID_EGM2008_M10

#define GEOID_EGM2008_M10   3

geoid model: EGM2008 1.0x1.0"

Definition at line 40 of file mrtk_geoid.h.

Referenced by geoidh(), and opengeoid().

◆ GEOID_EGM2008_M25

#define GEOID_EGM2008_M25   2

geoid model: EGM2008 2.5x2.5"

Definition at line 39 of file mrtk_geoid.h.

Referenced by geoidh(), geoidh_egm08(), and opengeoid().

◆ GEOID_EGM96_M150

#define GEOID_EGM96_M150   1

geoid model: EGM96 15x15"

Definition at line 38 of file mrtk_geoid.h.

Referenced by geoidh(), and opengeoid().

◆ GEOID_EMBEDDED

#define GEOID_EMBEDDED   0

geoid model: embedded geoid (1x1 deg)

Definition at line 37 of file mrtk_geoid.h.

Referenced by closegeoid(), geoidh(), and opengeoid().

◆ GEOID_GSI2000_M15

#define GEOID_GSI2000_M15   4

geoid model: GSI geoid 2000 1.0x1.5"

Definition at line 41 of file mrtk_geoid.h.

Referenced by geoidh(), and opengeoid().

◆ GEOID_RAF09

#define GEOID_RAF09   5

geoid model: IGN RAF09 for France 1.5"x2"

Definition at line 42 of file mrtk_geoid.h.

Function Documentation

◆ closegeoid()

void closegeoid ( void )

Close geoid model file.

Definition at line 251 of file mrtk_geoid.c.

References fp_geoid, GEOID_EMBEDDED, model_geoid, and trace().

Referenced by closeses(), and opengeoid().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ geoidh()

double geoidh ( const double * pos)

Get geoid height from geoid model.

Parameters
[in]posGeodetic position {lat, lon} (rad)
Returns
Geoid height (m) (0.0: error)
Note
To use external geoid model, call opengeoid() before this function. If no external model is open, the embedded geoid model is used.

Definition at line 268 of file mrtk_geoid.c.

References GEOID_EGM2008_M10, GEOID_EGM2008_M25, GEOID_EGM96_M150, GEOID_EMBEDDED, GEOID_GSI2000_M15, geoidh_egm08(), geoidh_egm96(), geoidh_emb(), geoidh_gsi(), model_geoid, R2D, and trace().

Referenced by clas_osr_prectrop(), trop_data(), and tropmapf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ opengeoid()

int opengeoid ( int model,
const char * file )

Open geoid model file.

Parameters
[in]modelGeoid model type (GEOID_EMBEDDED, GEOID_EGM96_M150, etc.)
[in]fileGeoid model file path
Returns
Status (1:ok, 0:error)
Note
The following geoid models can be used:
  • WW15MGH.DAC: EGM96 15x15" binary grid height - Und_min2.5x2.5_egm2008_isw=82_WGS84_TideFree_SE: EGM2008 2.5x2.5"
  • Und_min1x1_egm2008_isw=82_WGS84_TideFree_SE: EGM2008 1.0x1.0" - gsigeome_ver4: GSI geoid 2000 1.0x1.5" (Japanese area) (byte-order of binary files must be compatible to CPU)

Definition at line 227 of file mrtk_geoid.c.

References closegeoid(), fp_geoid, GEOID_EGM2008_M10, GEOID_EGM2008_M25, GEOID_EGM96_M150, GEOID_EMBEDDED, GEOID_GSI2000_M15, model_geoid, and trace().

Referenced by openses().

Here is the call graph for this function:
Here is the caller graph for this function: