% computeD2M.m
% compute scale factor from degrees to meters at the given refLLA. 
% 
% d2mLat = degrees to meters for latitude
% d2mLon = degrees to meters for longitude
% 
% latitude error in meters = (lat 1 - lat 2)* d2mLat
% longitude error in meters = (lon 1 - lon 2)* d2mLon
% 
% refLLA = [Lat, Lon, Alt]
% 
% d2mLat = 110987.0; % meters / degree at 37 deg N
% d2mLon = 89012.0; % meters / degree at 122 deg W
% 
% Vivek Nadkarni
% November 9, 2007
% 
function [d2mLat, d2mLon] = computeD2M ( refLLA )

Lat = refLLA(1);
Lon = refLLA(2);
Alt = refLLA(3);

[d2mLat,d2mLon,du] = deltablh_decimal( Lat-0.5, Lon-0.5, Alt, Lat+0.5, Lon+0.5, Alt);

return;