Home > utilities > m_to_lon.m

m_to_lon

PURPOSE ^

SYNOPSIS ^

function dlon = m_to_lon(dx, alat)

DESCRIPTION ^

 dlon = longitude difference in degrees
 dx   = longitude difference in meters
 alat = average latitude between the two fixes

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function dlon = m_to_lon(dx, alat)
0002 %
0003 % dlon = longitude difference in degrees
0004 % dx   = longitude difference in meters
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 dlon = dx ./ p;

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