Returns the parameters of an ellipsoid.
Name can be the name (e.g., "wgs84") or (integer) EPSG code of a reference ellipoid. Case is not important. If the number or code 0 (zero) is specified, referenceEllipsoid echoes a list of implemented ellipsoids to the screen.
unit can be the name of any unit accepted by function validateLengthUnit.m. Also here case is not important.
The output consists of a scalar struct with fields "Code" (EPSG code of the ellipsoid), "Name" (name of the ellipsoid), "LengthUnit", "SemimajorAxis", "SemiminorAxis", "InverseFlattening", "Eccentricity", "Flattening", "ThirdFlattening", "MeanRadius", "SurfaceArea", and "Volume".
If an output argument is supplied for input "0", that output is a struct array of all parameters of all implemented reference ellipsoids.
Examples:
>> E = referenceEllipsoid ("wgs84") E = scalar structure containing the fields: Code = 7030 Name = World Geodetic System 1984 LengthUnit = meter SemimajorAxis = 6378137 SemiminorAxis = 6.3568e+06 InverseFlattening = 298.26 Eccentricity = 0.081819 Flattening = 0.0033528 ThirdFlattening = 0.0016792 MeanRadius = 6.3710e+06 SurfaceArea = 5.1007e+14 Volume = 1.0832e+21
The code number can be used:
>> E = referenceEllipsoid (7019) E = scalar structure containing the fields: Code = 7019 Name = Geodetic Reference System 1980 LengthUnit = meter SemimajorAxis = 6.3781e+06 SemiminorAxis = 6.3568e+06 InverseFlattening = 298.26 Eccentricity = 0.081819 Flattening = 0.0033528 ThirdFlattening = 0.0016792 MeanRadius = 6.371e+06 SurfaceArea = 5.1007e+14 Volume = 1.0832e+21
>> E = referenceEllipsoid ("wgs84", "km") E = scalar structure containing the fields: Code = 7030 Name = World Geodetic System 1984 LengthUnit = km SemimajorAxis = 6378.1 SemiminorAxis = 6356.8 InverseFlattening = 298.26 Eccentricity = 0.081819 Flattening = 0.0033528 ThirdFlattening = 0.0016792 MeanRadius = 6371.0 SurfaceArea = 5.1007e+08 Volume = 1.0832e+12
See also: validateLengthUnit, wgs84Ellipsoid.
Package: mapping