Home > utilities > lat_to_m.m

lat_to_m

PURPOSE ^

dy = lat_to_m(dlat,alat)

SYNOPSIS ^

function dy = lat_to_m(dlat,alat)

DESCRIPTION ^

  dy = lat_to_m(dlat,alat)
 dy   = latitude difference in meters
 dlat = latitude 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 dy = lat_to_m(dlat,alat)
0002 %  dy = lat_to_m(dlat,alat)
0003 % dy   = latitude difference in meters
0004 % dlat = latitude 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 dy = dlat .* m ;

Generated on Tue 18-Dec-2012 12:37:31 by m2html © 2005