Home > utilities > m_to_lat.m

m_to_lat

PURPOSE ^

SYNOPSIS ^

function dlat = m_to_lat(dy, alat)

DESCRIPTION ^

 dy   = latitude difference in meters
 dlat = latidute difference in degrees
 alat = average latitude between the two fixes
 Reference: American Practical Navigator, Vol II, 1975 Edition, p 5

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function dlat = m_to_lat(dy, alat)
0002 %
0003 % dy   = latitude difference in meters
0004 % dlat = latidute difference in degrees
0005 % alat = average latitude between the two fixes
0006 % Reference: American Practical Navigator, Vol II, 1975 Edition, p 5
0007 
0008 rlat = alat * pi/180;
0009 m = 111132.09 * ones(size(rlat)) - ...
0010     566.05 * cos(2 * rlat) + 1.2 * cos(4 * rlat);
0011 dlat = dy ./ m;

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