forward
Convert geodetic latitude to authalic, conformal, isometric, or rectifying latitude
Description
Examples
Convert Geodetic Latitude to Authalic Latitude
Specify geodetic latitude coordinates and create an authalic latitude converter. Then, convert the coordinates.
phi = [-90 -67.5 -45 -22.5 0 22.5 45 67.5 90]; conv = map.geodesy.AuthalicLatitudeConverter(wgs84Ellipsoid); beta = forward(conv,phi)
beta = 1×9
-90.0000 -67.4092 -44.8717 -22.4094 0 22.4094 44.8717 67.4092 90.0000
Convert Geodetic Latitude to Isometric Latitude
Specify geodetic latitude coordinates and create an isometric latitude converter. Then, convert the coordinates.
phi = [-90 -67.5 -45 -22.5 0 22.5 45 67.5 90]; conv = map.geodesy.IsometricLatitudeConverter(wgs84Ellipsoid); psi = forward(conv,phi)
psi = 1×9
-Inf -1.6087 -0.8766 -0.4006 0 0.4006 0.8766 1.6087 Inf
Convert Geodetic Latitude to Rectifying Latitude Using Radians
Specify geodetic latitude coordinates and convert them to radians. Create a rectifying latitude converter. Then, convert the coordinates by specifying the angle unit as 'radians'
.
phi = [-90 -67.5 -45 -22.5 0 22.5 45 67.5 90];
phirad = deg2rad(phi);
conv = map.geodesy.RectifyingLatitudeConverter(wgs84Ellipsoid);
mu = forward(conv,phirad,'radians')
mu = 1×9
-1.5708 -1.1763 -0.7829 -0.3909 0 0.3909 0.7829 1.1763 1.5708
Input Arguments
converter
— Latitude converter
AuthalicLatitudeConverter
,
ConformalLatitudeConverter
,
IsometricLatitudeConverter
, or
RectifyingLatitudeConverter
object
Latitude converter, specified as an AuthalicLatitudeConverter
,
ConformalLatitudeConverter
,
IsometricLatitudeConverter
,
or RectifyingLatitudeConverter
object.
phi
— Geodetic latitude coordinates
numeric scalar, vector, matrix, or N-D array
Geodetic latitude coordinates, specified as a numeric scalar value,
vector, matrix, or N-D array. If angleUnit
is not
supplied, phi
is in degrees. Otherwise, values of
phi
must be consistent with the units of
angleUnit
.
Data Types: single
| double
angleUnit
— Unit of geodetic latitude coordinates
'degrees'
(default) | 'radians'
Units of geodetic latitude coordinates, specified as
'degrees'
or 'radians'
.
Output Arguments
lat
— Converted latitude coordinates
numeric scalar, vector, matrix, or N-D array
Converted latitude coordinates, returned as a numeric scalar, vector,
matrix, or N-D array. lat
is the same size as
phi
.
The interpretation of lat
depends on the latitude
converter. If the conversion is:
authalic,
lat
represents the variable β (beta), and has the same units asphi
.conformal,
lat
represents χ (chi), and has the same units asphi
.isometric,
lat
represents ψ (psi).lat
is a dimensionless number and does not have an angle unit.rectifying,
lat
represents μ (mu), and has the same units asphi
.
Version History
Introduced in R2013a
See Also
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)