Introduction

In the 1960s and 1970s, satellite geodesy provided geodesists with global geopotential models (GGMs), which are spherical harmonic representations of the long and medium wavelength (>100 km) components of the earth’s gravity field. The new satellite gravity missions CHAMP and GRACE lead to significant improvements of our knowledge about the long wavelength part of the Earth’s gravity field, and thereby of the long wavelengths of the geoid. They provide a homogeneous and near-complete global coverage of gravity field information. However, frequently the error estimates for GGMs are too optimistic and/or presented as global averages and thus not necessarily representative of the performance of the GGM in a particular region. Hence, the user of a GGM should perform his own accuracy and precision verifications, such as comparing the GGM-derived gravity field quantities with local data. So, users of any GGM should perform their own accuracy and precision verifications, such as comparing the GGM-derived gravity field quantities with local data (cf. Kirby et al. 1998).

We know that there are many un-surveyed areas of the Earth. On the oceans we have today gravity anomalies determined from satellite altimetry, but the effects of the ocean circulation and different biases deteriorate this data since today we only have estimates of the (quasi-stationary) sea-surface topography at very long wavelengths. In addition, where we have gravity data, we do not always know the reference system used and sometimes even Bouguer-anomalies and free-air anomalies are mixed up. On the contrary, satellite-only solutions are not polluted by surface data like the existing high resolution spherical harmonic models based on data combination.

A variety of global geopotential models, which express the Earth’s gravity field and thus geoid heights in terms of spherical harmonic basis functions have been computed by various groups for example GPM98A,B,C (Wenzel 1998), EGM96 (Lemoine et al. 1996) and recent GGMs of CHAMP and GRACE (Prange et al. 2007; Förste et al. 2007). Current models of the Earth’s gravitational field can be divided among three primary classes:

Satellite-only GGMs, derived from the tracking of artificial Earth satellites. The well-known models in this category are the GRACE satellite-only models GGM02S (Tapley et al. 2005) and EIGEN-GL04S1 (Förste et al. 2006).

Combined GGMs, derived from a combination of a satellite-only model, terrestrial gravimetry, satellite altimetry-derived gravity data in marine areas, and airborne gravimetry. Some well-known GGMs in this group are EGM96, GGM02C (Tapley et al. 2005), EIGEN-GL04C (Förste et al. 2006) and EGM2008 (Pavlis et al. 2008).

Tailored GGMs, derived from a refinement of existing (satellite or combined) GGMs using higher resolution gravity data that may have not necessarily been used previously. In this group, we can mention the GPM89C model of Wenzel (1998).

Having briefly reviewed the mathematical relations of the different gravity field and gravity gradients components, the article gives a general description of the MATLAB software and its applications in generating the parameters in territory of Sweden. Determination of the gravity gradient tensor components from GGMs is a new regional aspect is also considered in this article.

Applications of the GGMs in geodesy and geophysics

The GGM based geoidal heights are used for different purposes in geodetic communities. Precise regional geoid determinations are usually carried out using a global geopotential model, together with a set of point or mean terrestrial gravity anomalies and topographic information. In order to determine the most suitable geopotential model for this combination, it is necessary to check the statistical fit of several high degree models to the gravity field. This comprises the fit of the geopotential models to geometrically derived geoid heights at the study region. The best GGM can be used through combination of the gravity data with the Stokes’s formula (Kiamehr 2006; Kiamehr and Sjöberg 2005).

Further, nowadays for many applications, conventional levelling using spirit level is being replaced by height determination using the satellite Global Positioning System (GPS). The GPS technique has been used for levelling projects, e.g., to monitor dam subsidence due to water or natural gas removal, earth crustal movements and to control heights across water bodies in connection with bridge construction. The heights directly derived from GPS measurements are geodetic heights referring to the ellipsoid defined by WGS84. Figure 1 shows the basic relationship between geodetic height h, orthometric height H and geoidal height N. In the first approximation, the heights are related by:

$$h \cong H + N.$$
(1)
Fig. 1
figure 1

Principal of levelling with GPS

The primary problem of transforming GPS-derived geodetic heights into orthometric heights is to determine a reliable geoidal height. This geoidal height can be delivered using either a gravimetric method or a GGM model. In developing countries missing a precise gravimetric geoid model, the GGM derived geoidal height plays an important role to this transformation. Also, the geoidal heights and gravity anomalies have applications in geophysics for studying the interior properties of the earth.

The deflection of vertical components is an angle between normal to the reference ellipsoid and plumb line. This deflection usually is used for reduction of geodetic observations, transformation of coordinates between the astronomical (Featherstone 1999) and geodetic coordinates and geophysical interpretations (Kiamehr 2006) and navigation. Since the deflection of vertical can present the interior density variation it can be used in geophysical exploration. The studies on vertical–horizontal components of the gravity gradient and components of the deflection of vertical by Kiamehr et al. (2008) show very high correlation between these quantities. Also Kiamehr (2006) found a good agreement between tectonic structure and deflection of vertical. Consequently the general pattern of the deflection of vertical computed by a GGM, helps the geoscientists to get some information about lateral density variation.

Gravity field parameters from GGMs

In the following section we review the basic theories to determine of the gravity and gradient components.

Geoidal height, gravity anomaly and deflection of vertical components

The gravity field has two main structures, long (∼400 km) and short (25–100 km) wavelengths. The long-wavelengths information can be computed using the satellite orbit perturbation analysis and also terrestrial gravimetric or even satellite altimetry data (Eshagh et al. 2006). The results of such computation are summarized as a Global Geopotential Model (GGM). In geodesy, gravity data are used to define the figure of the Earth. In geophysics, the data are used to constrain subsurface density variations to help to understand problems related to tectonics or commodity exploration. To this end, the geodesist seeks to exploit the differences between the difficult-to-measure real gravity field and a mathematically based model gravity field. Therefore, a mean gravity field should be defined for comparing with the real one. Such gravity field is the normal gravity field, and the residual gravity field is called potential anomaly. The potential anomaly can be used to compute very important quantities relating the physical figure of the Earth to the Mathematical one (ellipsoid) or normal gravity field. Quantities like geoidal height, gravity anomaly and deflection of vertical components are the main quantities. Each one of these quantities expressing the deviation of quantities in normal and real fields can geophysically be interpreted.

The other useful quantity is the gravity gradient of the field which is again referred to the residual fields. Usually the gravity gradients components are coordinated in a North-oriented reference frame. The origin of this frame can be considered on the earth surface or even on the satellite. The z-axis is pointing towards the radial direction and upward, x-axis points towards the north and the y-axis is defined such that the system become right handed in other word, westward.

For global gravity field analysis, the potential anomaly (T) for any interesting point can be represented by a spherical harmonic series, cf. (Heiskanen and Moritz 1967):

$$T\left( {r,\varphi ,\lambda } \right) = \frac{{{\text{GM}}}}{a}\sum\limits_{n = 2}^{N_{\max } } {\sum\limits_{m = 0}^n {\left( {\frac{a}{r}} \right)^{n + 1} \left( {\bar C_{nm} \cos m\lambda + \bar S_{nm} \sin m\lambda } \right)\bar P_{nm} \left( {\cos \varphi } \right),} } $$
(2)

where r, φ, λ, are the geocentric distance, latitude and longitude respectively, GM product of the gravitational constant and Earth’s mass, a is the semi major axis of reference ellipsoid, N max is the maximum degree, n, m stand for degree and order, \(\bar C_{nm} ,\bar S_{nm} \) are the normalized geopotential coefficients, and \(\bar P_{nm} \left( {\cos \theta } \right)\) is the normalized associated Legendre function. According to the Bruns formula (Heiskanen and Moritz 1967, p. 107) we have:

$$N\left( {r,\varphi ,\lambda } \right) = \frac{{{\text{GM}}}}{{a\gamma }}\sum\limits_{n = 2}^{N_{\max } } {\sum\limits_{m = 0}^n {\left( {\frac{a}{r}} \right)^{n + 1} \left( {\bar C_{nm} \cos m\lambda + \bar S_{nm} \sin m\lambda } \right)\bar P_{nm} \left( {\sin \varphi } \right),} } $$
(3)

where, γ stands for the normal gravity at a certain latitude obtained by Somigliana formula. Also, according to the (Heiskanen and Moritz 1967), one can write the gravity anomaly as a function of geopotential coefficients:

$$\Delta _g \left( {r,\varphi ,\lambda } \right) = \frac{{{\text{GM}}}}{a}\sum\limits_{n = 2}^{N_{\max } } {\sum\limits_{m = 0}^n {\left( {\frac{a}{r}} \right)^{n + 1} \left( {\frac{{n - 1}}{r}} \right)\left( {\bar C_{nm} \cos m\lambda + \bar S_{nm} \sin m\lambda } \right)\bar P_{nm} \left( {\sin \varphi } \right).} } $$
(4)

The deflection of the vertical is the angular difference between the direction of the gravity vector (g), or plumb line at a point, and the corresponding ellipsoidal normal through the same point for a particular ellipsoid. The deflection of the vertical has two components (north–south ξ and east–west η). Further, according to Heiskanen and Moritz (1967) the components of deflection of the verticals can be presented as:

$$\eta \left( {r,\varphi ,\lambda } \right) = \frac{{{\text{GM}}}}{{a\gamma r\sin \varphi }}\sum\limits_{n = 2}^{N_{\max } } {\sum\limits_{m = 0}^n {\left( {\frac{a}{r}} \right)^{n + 1} m\left( {\bar C_{nm} \sin m\lambda - \bar S_{nm} \cos m\lambda } \right)} } \bar P_{nm} \left( {\sin \varphi } \right),$$
(5)
$$\begin{aligned} & \xi {\left( {r,\varphi ,\lambda } \right)} = \frac{{{\text{GM}}}}{{ar\gamma ^{2} }}{\sum\limits_{n = 2}^{N_{{\max }} } {{\sum\limits_{m = 0}^n {{\left( {\frac{a}{r}} \right)}^{{n + 1}} {\left( {\ifmmode\expandafter\bar\else\expandafter\=\fi{C}_{{nm}} \cos m\lambda + \ifmmode\expandafter\bar\else\expandafter\=\fi{S}_{{nm}} \sin m\lambda } \right)}} }} } \times \\ & {\left[ {\gamma {\sqrt {{\left( {n - m} \right)}{\left( {n + m - 1} \right)}{\left( {1 + \delta _{m} } \right)}} }\ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{n,m + 1}} {\left( {\sin \varphi } \right)} - {\left( {\gamma m\tan \varphi - \frac{{d\gamma }}{{d\varphi }}} \right)}\ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{nm}} {\left( {\sin \varphi } \right)}} \right]}, \\ \end{aligned} $$
(6)

where

$$\frac{{{\text{d}}\gamma }}{{{\text{d}}\varphi }} = \frac{{\gamma _0 \cos \varphi \sin \varphi }}{{\left( {1 - e^2 \sin ^2 \varphi } \right)^{\frac{3}{2}} }}\left( {2k + e^2 \left( {1 - k\sin ^2 \varphi } \right)} \right),$$
(7)

and γ 0 is the normal gravity at equator, e 2 is the first eccentricity of the references ellipsoid and k is the constant of formula and k = 0.001931851353 based on Somigliana’s formulas. δ stands for Kronecker’s delta.

Gravity gradients components

The conventional expansion of the gravity gradients in the local North-oriented reference frame have a complicated form, depending on the first and second order derivatives of the associated Legendre functions of the latitude and containing factors which tend to infinity when approaching the poles. In this article, we will use the non-singular expressions for gravity gradients in local north oriented reference frame presented by Petrovskaya and Vershkov (2006). The first and second order derivatives of the disturbing potential T in the north oriented reference frame {x,y,z} are considered. We proceed from the known relation (Reed 1973) but we present it in terms of latitude instead of co-latitude:

$$\begin{aligned} & T_{zz} = T_{rr} ,T_{xx} = \frac{1}{r}T_r + \frac{1}{{r^2 }}T_{\varphi \varphi } ,T_{yy} = \frac{1}{r}T_r + \frac{1}{{r^2 \cot \varphi }}T_\varphi + \frac{1}{{r^2 \cos ^2 \varphi }}T_{\lambda \lambda } \\ & T_{xy} = \frac{1}{{r^2 \cos \varphi }}T_{\varphi \lambda } - \frac{{\sin \varphi }}{{r^2 \cos ^2 \varphi }}T_\lambda ,T_{xz} = \frac{1}{{r^2 }}T_\varphi - \frac{1}{r}T_{r\varphi } ,T_{yz} = \frac{1}{{r^2 \cos \varphi }}T_\lambda - \frac{1}{{r\cos \varphi }}T_{r\lambda } . \\ \end{aligned} $$
(8)

The parameters of gravity gradients have been presented by Petrovskaya and Vershkov (2006) and we present another form of their relations as follow:

$$\begin{array}{*{20}c} {T_{{zz}} = \frac{{{\text{GM}}}}{{a^{3} }}{\sum\limits_{n = 2}^{N_{{\max }} } {{\sum\limits_{m = 0}^n {{\left( {n + 1} \right)}} }} }{\left( {n + 2} \right)}{\left( {\frac{a}{r}} \right)}^{{n + 3}} {\left( {\ifmmode\expandafter\bar\else\expandafter\=\fi{C}_{{nm}} \cos m\lambda + \ifmmode\expandafter\bar\else\expandafter\=\fi{S}_{{nm}} \sin m\lambda } \right)}\ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{nm}} {\left( {\sin \varphi } \right)}} \\ \begin{aligned} & T_{{xx}} = \frac{{{\text{GM}}}}{{a^{3} }}{\sum\limits_{n = 2}^{N_{{\max }} } {{\sum\limits_{m = 0}^n {{\left( {\frac{a}{r}} \right)}^{{n + 3}} {\left( {\ifmmode\expandafter\bar\else\expandafter\=\fi{C}_{{nm}} \cos m\lambda + \ifmmode\expandafter\bar\else\expandafter\=\fi{S}_{{nm}} \sin m\lambda } \right)} \times } }} } \\ & {\left\{ {a_{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{nm - 2}} {\left( {\sin \varphi } \right)} + {\left[ {b_{{nm}} - {\left( {n + 1} \right)}{\left( {n + 2} \right)}} \right]}\ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{nm}} {\left( {\sin \varphi } \right)} + c_{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{nm + 2}} {\left( {\sin \varphi } \right)}} \right\}}, \\ \end{aligned} \\ \begin{aligned} & T_{{yy}} = - \frac{{{\text{GM}}}}{{a^{3} }}{\sum\limits_{n = 2}^{N_{{\max }} } {{\sum\limits_{m = 0}^n {{\left( {\frac{a}{r}} \right)}^{{n + 3}} {\left( {\ifmmode\expandafter\bar\else\expandafter\=\fi{C}_{{nm}} \cos m\lambda + \ifmmode\expandafter\bar\else\expandafter\=\fi{S}_{{nm}} \sin m\lambda } \right)} \times } }} } \\ & {\left\{ {a_{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{nm - 2}} {\left( {\sin \varphi } \right)} + b_{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{nm}} {\left( {\sin \varphi } \right)} + c_{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{nm + 2}} {\left( {\sin \varphi } \right)}} \right\}}, \\ \end{aligned} \\ \end{array} $$
(9)

and

$$\begin{array}{*{20}c} \begin{aligned} & T_{{xy}} = \frac{{{\text{GM}}}}{{a^{3} }}{\sum\limits_{n = 2}^{N_{{\max }} } {{\sum\limits_{m = 1}^n {{\left( {\frac{a}{r}} \right)}^{{n + 3}} {\left( {\ifmmode\expandafter\bar\else\expandafter\=\fi{C}_{{nm}} \sin m\lambda - \ifmmode\expandafter\bar\else\expandafter\=\fi{S}_{{nm}} \cos m\lambda } \right)} \times } }} } \\ & {\left\{ {d_{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{n - 1,m - 2}} {\left( {\sin \varphi } \right)} + g_{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{n - 1,m}} {\left( {\sin \varphi } \right)} + h_{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{n - 1,m + 2}} {\left( {\sin \varphi } \right)}} \right\}}, \\ \end{aligned} \\ \begin{aligned} & T_{{xy}} = \frac{{{\text{GM}}}}{{a^{3} }}{\sum\limits_{n = 2}^{N_{{\max }} } {{\sum\limits_{m = 0}^n {{\left( {\frac{a}{r}} \right)}^{{n + 3}} {\left( {\ifmmode\expandafter\bar\else\expandafter\=\fi{C}_{{nm}} \cos m\lambda + \ifmmode\expandafter\bar\else\expandafter\=\fi{S}_{{nm}} \sin m\lambda } \right)} \times } }} } \\ & {\left\{ {\beta _{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{n,m - 1}} {\left( {\sin \varphi } \right)} + \gamma _{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{n,m + 1}} {\left( {\sin \varphi } \right)}} \right\}}, \\ \end{aligned} \\ \begin{aligned} & T_{{yz}} = \frac{{{\text{GM}}}}{{a^{3} }}{\sum\limits_{n = 2}^{N_{{\max }} } {{\sum\limits_{m = 1}^n {{\left( {\frac{a}{r}} \right)}^{{n + 3}} {\left( {\ifmmode\expandafter\bar\else\expandafter\=\fi{C}_{{nm}} \sin m\lambda - \ifmmode\expandafter\bar\else\expandafter\=\fi{S}_{{nm}} \cos m\lambda } \right)} \times } }} } \\ & {\left\{ {\mu _{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{n - 1,m - 1}} {\left( {\sin \varphi } \right)} + v_{{nm}} \ifmmode\expandafter\bar\else\expandafter\=\fi{P}_{{n - 1,m + 1}} {\left( {\sin \varphi } \right)}} \right\}}. \\ \end{aligned} \\ \end{array} $$
(10)

The coefficients of the Legendre functions are numerical constant given in Petrovskaya and Vershkov (2006) p. 126. The gradient components can be used for constructing a geopotential model from the GOCE mission data by the time-wise and space-wise approaches (Petrovskaya and Vershkov 2006). Also, some components (e.g. T zz ) may have a geophysical meaning.

EGMLAB: a MATLAB software for determining the gravity and gradient components from GGMs

Two MATLAB software programs were developed based on the mentioned formulas in the “Gravity field parameters from GGMs” section. The first program can be used for the computing the anomaly quantities according to Eqs. 3, 4, 5, 6, and 7 and the second for computation the gravity gradients based on Eqs. 8, 9, and 10. Both of the programs can be used in three different modes, i.e. Point-wise (single point), Block-wise (grid) and Data file. Using the point-wise mode one can compute the anomaly quantities or gravity gradients for one single point; in block-wise mode the user is able to compute the quantities in any region in the world by introducing the coordinates of region borders. The user suffices just to introduce the borders of the block to the program; and in the data file mode the program is performed for some special point which user desires, but the user has to introduce the name of the file containing the latitude and longitude of the expected points. In both programs, the user is asked to choose which mode he/she likes. Depending on the user’s choice the program asks the user to introduce the latitude and longitude of the points, in point-wise, block wise and data file containing them.

The user is requested to enter the name of the GGM (e.g. egm96.txt or gl04c.txt) in both programs and the output file name for results. The user is able to utilise other GGMs in the software. The spherical harmonics coefficient files for different GGMs can be downloaded from the International Centre for Global Earth Models (ICGEM) website (http://icgem.gfz-potsdam.de/ICGEM/).

In the case where the block-wise mode is selected, the Isarithmic map of the region will be showed too. The format of the output file comprising the results of computations depends on the program to be used. The programs are started with a help text which clearly explains the necessary input and output parameters and formats.

If the EGMlab1 is used the anomaly quantities like geoid height, gravity anomaly and deflection of vertical components (Eqs. 2, 3, 4, 5, and 6) are computed in a file containing six columns, the first two columns stand for latitude and longitude of the points, and the other columns are the geoid height, gravity anomaly, east–west component and north–south components of the vertical deflection in order. The EGMlab3 program is used for computing the gravity gradients components (Eqs. 8, 9, and 10). The output file contains eight columns, the first two columns are the latitude and longitude of the points and the other columns are Txx, Tyy, Tzz, Txy, Txz and Tyz, respectively. The EGMlab1 and EGMlab3 are the main program codes, and there are some functions that are used for running such program codes.

  • Pnm function

The Pnm function computed the normalized associated Legendre functions and its first order derivatives using recursion formulae. The input of this function is the latitude and maximum degree and order of polynomials.

  • Model read function

Another function for reading the earth gravity model is also used. This function gets the name of Earth Gravity Model and converts the column wise geopotential coefficients to matrix wise whose rows and columns are related to the degree and order of coefficients. The output of this function is the GM or product of gravitational constant and Earth’s mass, Ae is the semi major axis of reference ellipsoid used for the earth gravity model, N max is the maximum degree of the geopotential model (checked up to degree and order 360) and the matrix-wise geopotential coefficients and their errors.

  • Normal function

Normal function generates the normal gravity field using recursion formulae presented in Heiskanen and Moritz (1967). The normal geopotential coefficients are computed based on GRS80 reference field. However, any geopotential model with different GM can be used in the software as it rescale the geopotential coefficients. It is also important to consider the difference between the GM constant and semi major axis of GRS80 and Earth gravity model. This function includes this consideration. It gets the GM and semi-major axis of the earth gravity model as well as the maximum degree for generation of normal gravity field. The output of this function is the normal geopotential harmonic coefficients.

  • Coefficients function

This function generates the coefficients of the Legendre functions being used for computation of the gravity gradients in Eqs. 8, 9, and 10. This function needs the maximum degree plus two. The out put of this function is all needed coefficients for computing the gravity gradient coefficients.

  • Ngrav function

This function computes the normal gravity and its derivative with respect to latitude on the reference ellipsoid. This function is applied for generating geoid and deflection of verticals as it is seen in Eqs. 3, 4, and 5. The input of this function is latitude. The computation depends on the Somigliana’s formula (Moritz 2000), which is the most accurate one among the others (e.g., first and second Chebyshev approximations), and depends on the GRS80 ellipsoid, which is the more up-to-date and internationally adopted reference ellipsoid (Featherstone and Dentith 1997; Vanicek and Krakiwsky 1986).

  • Delta function

This function is to compute the Kronecker’s delta.

When spherical harmonic expansions are used for gravity field modelling, the numerical efficiency of the algorithm, the stability of the recurrence relations that are used to compute the associated Legendre functions and the under-flow of early values in the recurrence relations must be taken into account (Wittwer et al. 2008). The numerical performance of EGMLab program is tested and verified with the performance of publicly independent solutions of ICGEM and American National Geospatial-Intelligence Agency (NGA) EGM96 software (http://earth-info.nga.mil/GandG/wgs84/gravitymod/egm96/egm96.html). The results of investigation show that the performance of the EGMLab up to maximum degree and order 360 is better than EGM96 official software. Then we want to investigate the numerical stability of EGMLab program. The correctness of geoidal height parameter was checked by synthesizing gravity potential values up to degree 360 on a global grid, using EGM96 potential model. These gravity potential values were then used to estimate the original potential coefficients using spherical harmonic analysis with the program. The resulting error degree variances were in the range of eight to 12, the magnitude of numerical accuracy. Furthermore, the computation of the geoidal height parameter was compared for various degrees and latitudes with the EGM96 values. As expected, the geoidal height errors are very small, with amplitudes <1 mm. Therefore, we safely assume both programs to work correctly up to degree 360 or even 720. All tests were performed on an Intel Pentium4 clocked at 3 GHz, using MATLAB 7.2 under Windows VISTA. All programs were run single-threaded in 32 bit-modes.

It is important to mention here that the NGA and ICGEM software/website are provided just for the special GGMs (e.g. EGM96) or have limitations in determination of the point-wise data and specially gradient components parameters. Comparing the mentioned publicly web-based/commercial software, the EGMlab is a more user friendly software which can be used for determination of the most of gravity or gradient components parameters from any GGM models. The EGMLab is freeware/non-commercial “As-is” software and can be downloaded from the Department of Geodesy and Gematics of Zanjan University website from the following Internet link: http://www.znu.ac.ir/members/kiamehr_ramin/kiamehr/egmlab.zip). Although EGMlab and EGM96 software are free, they run under commercial software (e.g. FORTRAN and MATLAB) which are usually available in most academic and research institutes.

Our investigations on the pre-release version of the EGM2008 show that EGMlab can be used successfully up to degrees and orders 720 for estimation of any gravity components. However, the associated Legendre functions are generated recursively and the corresponding recursive relation are unstable at very high degrees. In such cases, Horner and Clenshaw algorithms are preferable, although we have not used such algorithms in our software. This kind of computation still is under testing and development, and from the computational efficiency point of view it is too slow and time consuming. However, our investigation on the JAVA based version of the EGM2008 software on ICGEM website clearly indicates that estimation of any gravity components parameter (up to 2,160), requires the user to wait at least an hour in order to get any results.

A sample numerical results over Sweden

In order to show the potential of the EGMlab software, we present the gravity and gradient components of the gravity field based on the EIGEN-GL04C GRACE model (up to degrees and orders 360) in Sweden. Figure 2 and Table 1 present results of basic gravity components parameters which are estimated using the EGMlab1. Also, in Fig. 3 and Table 2 we present the results of estimation for the gradient components parameters using the EGMlab3. Based on the purpose of user, it is possible to use the output text file for different purposes e.g., geoid modelling, comparisons between GGMs to finding the model in the study area, evaluation of the gravity anomalies and filling the possible gaps. Also, the deflection of vertical deflections and gradient components can be used in geophysical interpretations.

Fig. 2
figure 2

a Geoidal height, b gravity anomaly and the vertical components c east–west, d north–south based on the EIGEN-GL04C model

Fig. 3
figure 3figure 3

a Principal gradient components values in Sweden based on the EIGEN-GL04C model. A T xx , B T yy , C T zz . Unit: Eotvos. b Cross gradient components values in Sweden based on the EIGEN-GL04C model. D T xy , E T xz , C T yz . Unit: Eotvos

Table 1 Statistical analysis of gravity components values in Sweden based on the EIGEN-GL04C model
Table 2 Statistical analysis of gradient components values in Sweden based on the EIGEN-GL04C model (unit: Eotvos)

Figure 2a shows the long wavelength structure of the geoid in Sweden generated by the software. Figure 2b is very similar to Fig. 3C as they illustrate the maps of gravity anomaly and vertical–vertical components of the gravity gradients tensor. As we know, these two quantities are utilized for exploration geophysics to determine depth of the anomalous features. Figure 3A and B show the maximum curvature of the equipotential surface along north and west, respectively. They can detect the slide of the anomalous features in these two directions. Figure 3E and F can be interpreted as Fig. 2c and d and they present the boundaries of the features too. Figure 3D has more complicated interpretation than the other quantities showing the corners of the features. Comparing the gravity gradients maps and statistics, one can conclude that T xy has the smallest magnitude among others as it does not include zero- and first-degree harmonic coefficients in its expression; after that T xz and T yz are smallest because of excluding the zero-degree harmonic. The results are promising as the gravity gradients are very sensitive to the local interior features. It is obvious that the sensitivity will be reduced by elevation, e.g. at airborne or even satellite level, and the long wavelength structure of the regional features can be investigated more.

Evaluation using GPS/levelling data

In this section the model is evaluated using GPS/levelling observations, and a comparison is made with the GL04C GGM. To evaluate the result of EGMlab, 195 high-quality GPS/ levelling height anomalies in the reference systems SWEREF 99 and RH 2000 are available; the locations are illustrated on the maps of Fig. 4. The orthometric heights in RH 2000 have been determined by utilising high quality levelling connections. The coordinates of the SWEPOS stations are very well determined. GPS heights have been derived using at least 48 h of observations. The GPS/levelling residuals after a one-parameter transformation (fit) of the GL04C model is plotted in Fig. 4. The statistics after both a one- and a four-parameter transformation are given in Table 3. As can be seen in Fig. 4, the agreement is good and homogeneous for the whole of Sweden. The results clearly show that the differences from not using exactly the same data are very small based on the GL04C GGM.

Fig. 4
figure 4

GPS/levelling residuals for the GL04C model

Table 3 Comparison of the EGMlab results with GNSS/levelling

Conclusions

In this article, determining the gravity and gradient components of the gravity field using the GGMs is reviewed. Then article is followed by a numerical case study based on the EIGEN-GL04C GRACE GGM. We presented a software program for spherical harmonic analysis, which can essentially be used for degrees and order up to 720 and all latitudes in the interval (0°, ±90°). The provided software and methods can be used for evaluation of the recent GRACE based GGMs for the gravimetric geoid modelling, evaluation of the gravity anomaly data and for a scientific analysis of the gradient for possible simulation for GOCE satellite data. The EGMLab can be easily used with any new GGMs just by changing the spherical harmonics coefficients files.