This function calculates the distance in kilometers per degree of longitude or latitude for any location. This quantity can be used as the conversion factor to convert between distances in kilometers and distances in degrees of longitude or latitude for any location of interest.
INPUT
phi = degrees of latitude at the location of interest (-90 to 90 deg N)
OUTPUT
dlon = distance in kilometers per degree of longitute at phi
dlat = distance in kilometers per degree of latitute at phi
example use:
>> phi = [0 15 30 45 60 75 90]';
>> [dlon_km dlat_km] = kmperdeg(phi)
phi =
0
15
30
45
60
75
90
dlon_km =
111.3195
107.5505
96.4863
78.8468
55.8000
28.9020
0.0000
dlat_km =
110.5743
110.6487
110.8525
111.1318
111.4123
111.6184
111.6940
引用格式
Gregory Pelletier (2024). kmperdeg (https://www.mathworks.com/matlabcentral/fileexchange/117965-kmperdeg), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2022b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |