main content

implement spherical harmonic representation of planetary gravity -凯发k8网页登录

implement spherical harmonic representation of planetary gravity

description

default planetary model

example

[gx gy gz] = gravitysphericalharmonic(planet_coordinates) implements the mathematical representation of spherical harmonic planetary gravity based on planetary gravitational potential. this function calculates arrays of n gravity values in the x-axis, y-axis, and z-axis of the planet-centered planet-fixed coordinates for the planet. the function performs these calculations using planet_coordinates, an m-by-3 array of planet-centered planet-fixed coordinates.

[gx gy gz] = gravitysphericalharmonic(planet_coordinates,degree) uses the degree and order that degree specifies.

specified planetary model

example

[gx gy gz] = gravitysphericalharmonic(planet_coordinates,model) implements the mathematical representation for the planetary model, model.

[gx gy gz] = gravitysphericalharmonic(planet_coordinates,model,degree) uses the degree and order that degree specifies. model specifies the planetary model.

[gx gy gz] = gravitysphericalharmonic(planet_coordinates,model,degree,action) uses the specified action when input is out of range.

custom planetary model

example

[gx gy gz] = gravitysphericalharmonic(planet_coordinates,'custom',degree,{datafile dfreader},action) implements the mathematical representation for a custom model planet. datafile defines the planetary model. dfreader specifies the reader for datafile.

examples

calculate the gravity in the x-axis at the equator on the surface of earth. this example uses the default 120 degree model of egm2008 with default warning actions.

gx = gravitysphericalharmonic([-6378.137e3 0 0])
gx =
    9.8143

calculate the gravity at 25,000 m over the south pole of earth. this example uses the 70 degree model of egm96 with error actions.

[gx, gy, gz] = gravitysphericalharmonic([0 0 -6381.751e3],'egm96','error')
gx =
     0
gy =
     0
gz =
    9.7552

calculate the gravity at 15,000 m over the equator and 11,000 m over the north pole. this example uses a 30th order gmm2b mars model with warning actions.

p  = [2412.648e3 -2412.648e3 0; 0 0 3397.2e3];
[gx, gy, gz] = gravitysphericalharmonic(p,'gmm2b',30,'warning')
gx =
   -2.6085
         0
gy =
    2.6073
         0
gz =
    0.0000
   -3.6895

calculate the gravity at 25,000 meters over the south pole of earth using a 120th order eigen-gl04c earth model with warning actions.

p = [0 0 -6381.751e3];
[gx, gy, gz] = gravitysphericalharmonic( p,'eigengl04c', ...
120,'warning')
gx =
     0
gy =
     0
gz =
    9.7552

calculate the gravity at 15,000 m over the equator and 11,000 m over the north pole. this example uses a 60th degree custom planetary model with no actions.

p = [2412.648e3 -2412.648e3 0; 0 0 3397e3];
[gx, gy, gz] = gravitysphericalharmonic(p,'custom',60, ...
{'gmm2bc80_sha.txt' @astreadshafile},'none')
gx =
   -2.6079
         0
gy =
    2.6067
         0
gz =
    0.0002
   -3.6902

input arguments

planet coordinates, specified as an m-by-3 array of planet-centered planet-fixed coordinates in meters. the z-axis is positive toward the north pole. if model is 'egm2008' or 'egm96' (earth), the planet coordinates are ecef coordinates.

data types: double

planetary model, specified as one of these values.

planetary modelplanet
'egm2008'

earth gravitational model 2008. planet coordinates are ecef (wgs84).

'egm96'

earth gravitational model 1996. planet coordinates are ecef (wgs84).

'lp100k'

100th degree moon model.

'lp165p'

165th degree moon model.

'gmm2b'

goddard mars model 2b.

'custom'

custom planetary model that you define in datafile.

note

to deploy a custom planetary model, explicitly include the custom data and reader files to the matlab® compiler™ (mcc) command at compilation. for example:

mcc -m mycustomsphericalgravityfunction...
-a customdatafile -a customreaderfile

for other planetary models, use the matlab compiler as usual.

for more information, see 'custom'.

'eigengl04c'

combined earth gravity field model eigen-gl04c.

when inputting a large pcpf array and a high-degree value, you might receive an out-of-memory error. for more information about avoiding out-of-memory errors in the matlab environment, see .

when inputting a large pcpf array, you might receive a maximum matrix size limitation. to determine the largest matrix or array that you can create in the matlab environment for your platform, see .

data types: char | string

degree and order of harmonic gravity, specified as a scalar.

planetary modeldegree and order

'egm2008'

maximum degree and order are 2159.

default degree and order are 120.

'egm96'

maximum degree and order are 360.

default degree and order are 70.

'lp100k'

maximum degree and order are 100.

default degree and order are 60.

'lp165p'

maximum degree and order are 165.

default degree and order are 60.

'gmm2b'

maximum degree and order are 80.

default degree and order are 60.

'custom'

maximum degree is default degree and order. for more information, see 'custom'.

'eigengl04c'

maximum degree and order are 360.

default degree and order are 70.

when inputting a large pcpf array and a high-degree value, you might receive an out-of-memory error. for more information about avoiding out-of-memory errors in the matlab environment, see .

when inputting a large pcpf array, you might receive a maximum matrix size limitation. to determine the largest matrix or array that you can create in the matlab environment for your platform, see .

data types: char | string

custom planetary model definitions, specified as 'custom'. specify the planetary model definitions with a definitions data file and accompanying reader. for more information, see datafile dfreader.

data types: char | string

custom planetary model definitions file and reader, specified as a vector. datafile must contain these variables.

variabledescription
re

scalar of planet equatorial radius in meters (m)

gm

scalar of planetary gravitational parameter in meters cubed per second squared (m3/s2)

degree

scalar of maximum degree

c

(degree 1)-by-(degree 1) matrix containing normalized spherical harmonic coefficients matrix, c

s

(degree 1)-by-(degree 1) matrix containing normalized spherical harmonic coefficients matrix, s

to read datafile, specify a matlab function in the dfreader parameter. the reader file that you specify depends on the file type of datafile.

data file typedescription

matlab file

specify the matlab function, for example, @load.

other file type

specify a custom matlab reader function. for examples of custom reader functions, see astreadshafile.m and astreadegmfile.m. note the output variable order in these files.

example: {'gmm2bc80_sha.txt' @astreadshafile}

data types: double

action for out-of-range input, specified as:

  • 'error' — displays warning and indicates that the input is out of range.

  • 'warning' — displays error and indicates that the input is out of range.

  • 'none' — does not display warning or error.

data types: char | string

output arguments

gravity values in x-axis of planet-centered planet-fixed coordinates, returned as an array of m gravity values in meters per second squared (m/s2).

gravity values in y-axis of planet-centered planet-fixed coordinates, returned as an array of m gravity values in meters per second squared (m/s2).

gravity values in z-axis of planet-centered planet-fixed coordinates, returned as an array of m gravity values in meters per second squared (m/s2).

limitations

  • the function excludes the centrifugal effects of planetary rotation, and the effects of a precessing reference frame.

  • the spherical harmonic gravity model is valid for radial positions greater than the planet equatorial radius. minor errors might occur for radial positions near or at the planetary surface. the spherical harmonic gravity model is not valid for radial positions less than planetary surface.

tips

  • when inputting a large pcpf array and a high-degree value, you might receive an out-of-memory error. for more information about avoiding out-of-memory errors in the matlab environment, see .

  • when inputting a large pcpf array, you might receive a maximum matrix size limitation. to determine the largest matrix or array that you can create in the matlab environment for your platform, see .

references

[1] ] gottlieb, r. g. "fast gravity, gravity partials, normalized gravity, gravity gradient torque and magnetic field: derivation, code and data." technical report nasa contractor report 188243. houston: nasa lyndon b. johnson space center, february 1993.

[2] vallado, david a. fundamentals of astrodynamics and applications. new york: mcgraw-hill, 1997.

[3] defense mapping agency. department of defense world geodetic system 1984, its definition and relationship with local geodetic systems. tr 8350.2, 2nd ed. fairfax, va: dma, september 1, 1991.

[4] konopliv, a. s., s. w. asmar, e. carranza, w. l. sjogen, and d. n. yuan. "recent gravity models as a result of the lunar prospector mission, icarus" 150, no. 1 (2001): 1–18.

[5] lemoine, f. g., d. e. smith, d. d. rowlands, m. t. zuber, g. a. neumann, and d. s. chinn. "an improved solution of the gravity field of mars (gmm-2b) from mars global surveyor." journal of geophysical research 106, no. e10 (october 25, 2001): 23359–23376.

[6] kenyon s., j. factor, n. pavlis, and s. holmes. "towards the next earth gravitational model." paper presented at the society of exploration geophysicists 77th annual meeting, san antonio, texas, september 23–28, 2007.

[7] pavlis, n.k., s. a. holmes, s. c. kenyon, and j. k. factor. "an earth gravitational model to degree 2160: egm2008." paper presented at the general assembly of the european geosciences union, vienna, austria, april 13–18, 2008.

[8] grueber, t., and a. köhl. "validation of the egm2008 gravity field with gps-leveling and oceanographic analyses." paper presented at the iag international symposium on gravity, geoid & earth observation, chania, greece, june 23–27, 2008.

[9] förste, c., flechtner et al, "a mean global gravity field model from the combination of satellite mission and altimetry/gravmetry surface data - eigen-gl04c." geophysical research abstracts 8, 03462, 2006.

[10] hill, k. a. "autonomous navigation in libration point orbits." phd diss. university of colorado, boulder, 2007.

[11] colombo, oscar l. numerical methods for harmonic analysis on the sphere. report no. 310. columbus: department of geodetic science at ohio state university, 1981.

[12] colombo, oscar l. "the global mapping of gravity with two satellites." netherlands geodetic commission 7, no 3, delft, the netherlands, 1984., reports of the department of geodetic science. report no. 310. columbus: ohio state university, march 1981.

[13] jones, brandon a. "efficient models for the evaluation and estimation of the gravity field." phd diss. university of colorado, boulder, 2010.

[14] report of the iau/iag working group on cartographic coordinates and rotational elements: 1991.

version history

introduced in r2010a

see also

| |

网站地图