| Mapping Toolbox | ![]() |
www.kxcad.net Home > CAE Software Index > MATLAB Index >
Read 15-minute gridded geoid heights from EGM96l
[Z,refvec] = egm96geoid(scalefactor)
[Z,refvec] = egm96geoid(scalefactor,latlim,lonlim)
[Z,refvec] = egm96geoid(scalefactor) reads the data for the entire world, downsampling the data by the scale factor. The result is returned as a regular data grid and associated three-element referencing vector that geolocates Z. Heights are given in meters in the tide-free system.
[Z,refvec] = egm96geoid(scalefactor,latlim,lonlim) reads the data for the part of the world within the latitude and longitude limits. The limits must be two-element vectors in units of degrees. Longitude limits can be defined in the range [-180 180] or [0 360]. For example, lonlim = [170 190] returns data centered on the date line, while lonlim = [-10 10] returns data centered on the prime meridian.
Although the Earth is round, it is not exactly a sphere. The shape of the Earth is usually defined by the geoid, which is defined as a gravitational equipotential surface, but can be conceptualized as the shape the ocean surface would take in the absence of waves, weather, and land. For cartographic purposes it is generally sufficient to treat the Earth as a sphere or ellipsoid of revolution. For other applications, a more detailed model of the geoid such as EGM 96 may be required. EGM 96 is a spherical harmonic model of the geoid complete to degree and order 360. This function reads from a file of gridded geoid heights derived from the EGM 96 harmonic coefficients.
Read the EGM 96 geoid grid for the world, taking every 10th point.
[Z,refvec] = egm96geoid(10);
Read a subset of the geoid grid at full resolution and interpolate to find the geoid height at a point between grid points.
[Z,refvec] = egm96geoid(1,[-10 -12],[129 132]); z = ltln2val(Z,refvec,-11.1,130.22,'bicubic') z = 53.4809
This function reads the 15-minute EGM96 grid file WW15MGH.GRD. The grid is available as either a DOS self-extracting compressed file or a UNIX compressed file. Do not modify the file once it has been extracted.
Note For details on locating map data for download over the Internet, see the following documentation at the MathWorks Web site: http://www.mathworks.com/support/tech-notes/2100/2101.html |
Maps will extend a half a cell outside the requested map limits.
There are 721 rows and 1441 columns of values in the grid at full resolution. The low resolution data in GEOID.MAT is derived from the EGM 96 grid.
| ecef2lv | elevation | ![]() |
© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments