Home > utilities > lon_to_m.m

lon_to_m

PURPOSE ^

dx = lon_to_m(dlon, alat)

SYNOPSIS ^

function dx = lon_to_m(dlon, alat)

DESCRIPTION ^

 dx = lon_to_m(dlon, alat)
 dx   = longitude difference in meters
 dlon = longitude difference in degrees
 alat = average latitude between the two fixes

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function dx = lon_to_m(dlon, alat)
0002 % dx = lon_to_m(dlon, alat)
0003 % dx   = longitude difference in meters
0004 % dlon = longitude difference in degrees
0005 % alat = average latitude between the two fixes
0006 
0007 rlat = alat * pi/180;
0008 p = 111415.13 * cos(rlat) - 94.55 * cos(3 * rlat);
0009 dx = dlon .* p;

Generated on Wed 20-Feb-2019 16:06:01 by m2html © 2005