亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? easy6e.m

?? GPS導航電文相關的計算程序
?? M
字號:
%EASY6E	We compute a baseline from C/A code and phase observations.
%	    The code does not handle
%	       1. cycle slips and
%	       2. outliers.
%	    In contrast to EASY5, we now use an extended Kalman filter for the
%	    estimation. The present code is no real RTK code as all computational
%	    steps do not happen on an epoch-by-epoch basis
%
%       The filter uses e(ponentially) age-weighting of old data.

%       Reference:
%       Kailath, Thomas & Ali H. Sayed & Babak Hassibi (2000): Linear Estimation. 
%       Prentice Hall. Pages 68--69

%Kai Borre 27-07-2002
%Copyright (c) by Kai Borre
%$Revision: 1.0 $  $Date: 2002/07/27  $

% Initial computations of constants
v_light = 299792458;	     % vacuum speed of light m/s
f1 = 154*10.23E6;		     % L1 frequency Hz
f2 = 120*10.23E6;			 % L2 frequency Hz
lambda1 = v_light/f1;	     % wavelength on L1:  .19029367  m
lambda2 = v_light/f2;	     % wavelength on L2:  .244210213 m

% Read RINEX ephemerides file and convert to internal Matlab format
rinexe('SITE247J.01N','eph.dat');
Eph = get_eph('eph.dat');

% We identify the master observation file and open it
ofile1 = 'SITE247J.01O';
fid1 = fopen(ofile1,'rt');
[Obs_types1, ant_delta1, ifound_types1, eof11] = anheader(ofile1);
NoObs_types1 = size(Obs_types1,2)/2;

% We start by estimating the master position
[time1, dt1, sats1, eof1] = fepoch_0(fid1);
NoSv1 = size(sats1, 1);
m = NoSv1;
obs1raw = grabdata(fid1, NoSv1, NoObs_types1);
i = fobs_typ(Obs_types1,'C1'); % We use C/A pseudoranges
[X_i, el] = recpo_ls(obs1raw(:,i), sats1, time1, Eph);
[phi_i,lambda_i,h_i] = togeod(6378137,298.257223563,X_i(1),X_i(2),X_i(3));
% We close all files to ensure that the next reading starts
% at the top of the observation files
fclose all;

% Finding columns in Eph for each SV
for t = 1:m
    col_Eph(t) = find_eph(Eph,sats1(t),time1);
end

% Computation of elevation angle to all SVs.
all_sats1 = sats1;
% Delete Sv with elevation smaller than 10 degrees
sats1(el<10) = [];
del_sat = setdiff(all_sats1,sats1);

no_del_sat = [];
for t = 1:length(del_sat)
    no_dels = find(del_sat(t) == all_sats1);
    no_del_sat = [no_del_sat; no_dels];
end
No_del_sat = length(no_del_sat);

% Selecting reference SV. We take the SV with largest elevation
[y,ind] = max(el);
refsv = sats1(ind);
ofile1 = 'SITE247J.01O';
fid1 = fopen(ofile1,'rt');
ofile2 = 'SITE24~1.01O';
fid2 = fopen(ofile2,'rt');

% We start reading both observation files
[Obs_types1, ant_delta1, ifound_types1, eof11] = anheader(ofile1);
NoObs_types1 = size(Obs_types1,2)/2;
obsstr = ['P1';'P2';'L1';'L2'];
Oc = [];
for t = 1:4
    oc = strmatch(obsstr(t,:),strvcat('C1','P1','P2','L1','L2'),'exact');
    Oc = [Oc oc];
end
[Obs_types2, ant_delta2, ifound_types2, eof12] = anheader(ofile2);
NoObs_types2 = size(Obs_types2,2)/2;

% Computation of covariance matrix Sigma for double differenced observations
m1 = m-No_del_sat; % original number of SVs - deleted SVs due to low elevations
D = [ones(m1,1) -eye(m1) -ones(m1,1) eye(m1)];
Sigma = D*D';
X = zeros(3+2*m1,1);	      % coord.diff., N1, N2
N = zeros(3+2*m1,3+2*m1);     % initialization of normals
rs = zeros(3+2*m1,1);	      % initialization of right side
X_a = [];
X_j = X_i(1:3,1);
refrow = find(refsv == sats1);

% We process three epochs for estimating ambiguities; the present data evidently
% need three or more epochs for getting reliable estimates of the float ambiguities
for q = 1:6
    X_j = X_i(1:3,1)+X(1:3,1);
    [time1, dt1, sats1, eof1] = fepoch_0(fid1);
    [time2, dt2, sats2, eof2] = fepoch_0(fid2);
    if time1 ~= time2
	disp('Epochs do not correspond in time')
	break
    end;
    time = time1;
    NoSv1 = size(sats1,1);
    NoSv2 = size(sats2,1);
    obsm = grabdata(fid1, NoSv1, NoObs_types1);
    obsr = grabdata(fid2, NoSv2, NoObs_types2);
    obs1 = obsm(:,Oc); % P1 P2 Phi1 Phi2
    % Reordering of rows in obsr to correspond to obsm
    for s = 1:NoSv1
	Ind = find(sats1(s) == sats2(:));
	obs2(s,:) = obsr(Ind,Oc);
    end
    % Computing rho for refsv
    [tcorr,rhok_j,Xk_ECF] = get_rho(time, obs2(refrow,1), Eph(:,col_Eph(refrow)), X_j);
    [tcorr,rhok_i,Xk_ECF] = get_rho(time, obs1(refrow,1), Eph(:,col_Eph(refrow)), X_i);
    tt = 0;
    A1 = [];
    t0 = 1:NoSv1;
    t1 = setdiff(t0,no_del_sat); % we delete the low satellites
    for t = t1
	tt = tt+1;
	[tcorr,rhol_j,Xl_ECF] = get_rho(time,obs2(t,1), Eph(:,col_Eph(t)), X_j);
	[tcorr,rhol_i,Xl_ECF] = get_rho(time,obs1(t,1), Eph(:,col_Eph(t)), X_i);
	A0 = [(Xk_ECF(1)-X_j(1))/rhok_j - (Xl_ECF(1)-X_j(1))/rhol_j  ...
		(Xk_ECF(2)-X_j(2))/rhok_j - (Xl_ECF(2)-X_j(2))/rhol_j ...
		(Xk_ECF(3)-X_j(3))/rhok_j - (Xl_ECF(3)-X_j(3))/rhol_j];
	A1 = [A1; A0];
	Phi1 = (obs1(refrow,3)-obs1(t,3)-obs2(refrow,3)+obs2(t,3))*lambda1;
	Phi2 = (obs1(refrow,4)-obs1(t,4)-obs2(refrow,4)+obs2(t,4))*lambda2;
	b(tt,:) = Phi1-lambda1*X(3+tt,1);
	b(m1+tt,:) = Phi2-lambda2*X(3+m1+tt,1);
	bk(tt,:) =  rhok_i-rhok_j-rhol_i+rhol_j;
	bk(m1+tt,:) =  rhok_i-rhok_j-rhol_i+rhol_j;
    end;
    A_modi = eye(m1);		 % modified coefficient matrix
    col = find(refsv == sats1);  % find column for reference PRN
    A_modi(:,col) = -ones(m1,1);
    A_aug = [A1 lambda1*A_modi 0*eye(m1); A1 0*eye(m1) lambda2*A_modi];
    N = N+A_aug'*kron(eye(2),Sigma)*A_aug;
    rs = rs+A_aug'*kron(eye(2),Sigma)*(b-bk);
end %q
PP = pinv(N);
% X contains the three preliminary baseline components and the float ambiguities
X = PP*rs;

% Estimation of ambiguities by means of the Lambda method
[a,sqnorm,Sigma_afixed,Z] = lambda2(X(4:4+2*m1-1,1),PP(4:4+2*m1-1,4:4+2*m1-1));
% Correcting baseline vector as consequence of changing float ambiguities to fixed ones
X(1:3,1) = X(1:3,1)-PP(1:3,4:4+2*m1-1)*inv(PP(4:4+2*m1-1,4:4+2*m1-1))*...
			     (X(4:4+2*m1-1,1)-a(:,1)); %select first set of candidates
X(4:4+2*m1-1,1) = a(:,1);
fprintf('\n N1 for PRN %3.0f: %3.0f',[sats1(t1)'; a(1:m1,1)'])
fprintf('\n')
fprintf('\n N2 for PRN %3.0f: %3.0f',[sats1(t1)'; a(m1+1:2*m1,1)'])

% We close and reopen all files in order to start reading at a known position
fclose all;
ofile1 = 'SITE247J.01O';
fid1 = fopen(ofile1,'rt');
ofile2 = 'SITE24~1.01O';
fid2 = fopen(ofile2,'rt');

% Setting covariances for the Kalman filter; the state vector contains (x,y,z)
P = eye(3);	                    		 % covariances of state vector
Q = 0.05^2*eye(3);			             % covariances of system
R = 0.005^2*kron(eye(2),inv(Sigma));	 % covariances of observations
% In ofile2 we substitute empty observations with NaN's to obtain 22 valid epochs
qend = 22;
% Preliminary estimate of baseline components
x = X(1:3,1);
x_acc = [];
delta_x = zeros(3,1);

for q = 1:qend
    X_j = X_i(1:3,1)+x;
    [phi_j,lambda_j,h_j] = togeod(6378137,298.257223563,X_j(1),X_j(2),X_j(3));
    [time1, dt1, sats1, eof1] = fepoch_0(fid1);
    [time2, dt2, sats2, eof2] = fepoch_0(fid2);
    if time1 ~= time2
	disp('Epochs do not correspond in time')
	break
    end;
    time = time1;
    NoSv1 = size(sats1,1);
    NoSv2 = size(sats2,1);
    obsm = grabdata(fid1, NoSv1, NoObs_types1);
    obsr = grabdata(fid2, NoSv2, NoObs_types2);
    obs1 = obsm(:,Oc); % P1 P2 Phi1 Phi2
    % Reordering of rows in obsr to correspond to obsm
    for s = 1:m
	Ind = find(sats1(s) == sats2(:));
	obs2(s,:) = obsr(Ind,Oc);
    end
    % Computing rho for refsv
    [tcorr,rhok_j,Xk_ECF] = get_rho(time, obs2(1,1), Eph(:,col_Eph(1)), X_j);
    [tcorr,rhok_i,Xk_ECF] = get_rho(time, obs1(1,1), Eph(:,col_Eph(1)), X_i);
    tt = 0;
    A = zeros(2*m1,3);
    for t = t1
	tt = tt+1;
	[tcorr,rhol_j,Xl_ECF] = get_rho(time,obs2(t,1), Eph(:,col_Eph(t)), X_j);
	[tcorr,rhol_i,Xl_ECF] = get_rho(time,obs1(t,1), Eph(:,col_Eph(t)), X_i);
	A0 = [(Xk_ECF(1)-X_j(1))/rhok_j - (Xl_ECF(1)-X_j(1))/rhol_j  ...
		(Xk_ECF(2)-X_j(2))/rhok_j - (Xl_ECF(2)-X_j(2))/rhol_j ...
		(Xk_ECF(3)-X_j(3))/rhok_j - (Xl_ECF(3)-X_j(3))/rhol_j];
	A(tt,:) =  A0;
	A(m1+tt,:) = A0;
	% Tropospheric correction using standard meteorological parameters
	%[az,el_ki,d] = topocent(X_i(1:3),Xk_ECF-X_i(1:3));
	%[az,el_li,d] = topocent(X_i(1:3),Xl_ECF-X_i(1:3));
	%[az,el_kj,d] = topocent(X_j(1:3),Xk_ECF-X_j(1:3));
	%[az,el_lj,d] = topocent(X_j(1:3),Xl_ECF-X_j(1:3));
	%el_ki,    el_li,    el_kj,    el_lj
	%t_corr = tropo(sin(el_lj*pi/180),...
	%    h_j*1.e-3,1013,293,50,0,0,0)...
	%    -tropo(sin(el_li*pi/180),....
	%    h_i*1.e-3,1013,293,50,0,0,0)...
	%    -tropo(sin(el_kj*pi/180),...
	%    h_j*1.e-3,1013,293,50,0,0,0)...
	%    +tropo(sin(el_ki*pi/180),...
	%    h_i*1.e-3,1013,293,50,0,0,0);
	Phi1 = (obs1(refrow,3)-obs1(t,3)-obs2(refrow,3)+obs2(t,3))*lambda1; %-t_corr;
	Phi2 = (obs1(refrow,4)-obs1(t,4)-obs2(refrow,4)+obs2(t,4))*lambda2; %-t_corr;
	b(tt,:) = Phi1-lambda1*a(tt,1);
	b(m1+tt,:) = Phi2-lambda2*a(m1+tt,1);
	bk(tt,:) =  rhok_i-rhok_j-rhol_i+rhol_j;
	bk(m1+tt,:) =  rhok_i-rhok_j-rhol_i+rhol_j;
    end; % t
    
    % Age weighting of old data, see Fagin.
    tau = .1; % The smaller tau is, the faster old observations are forgotten
    age_weight = exp(1/tau);  
    
    %Extended Kalman filter, see pages 509--510 in Strang & Borre (1997): Linear
    % Algebra, Geodesy, and GPS, Wellesley-Cambridge Press
    P = P+Q;
    K = P*A'*inv(A*P*A'/age_weight+ R)/age_weight;
    x = x+K*(b-bk);
    P = (eye(3)-K*A)*P/age_weight;
    fprintf('\nx: %8.3f m,  y: %8.3f m,  z: %8.3f m\n',x(1),x(2),x(3))
    x_acc = [x_acc x];
end %q

% Transformation of geocentric baseline coordinates into topocentric coordinates
for i = 1:qend
    [e(i),n(i),u(i)] = xyz2enu(phi_j,lambda_j,x_acc(1,i),x_acc(2,i),x_acc(3,i));
end
fprintf('\n\nBaseline Components\n')
fprintf('\nX: %8.3f m,  Y: %8.3f m,  Z: %8.3f m\n', ...
				  x_acc(1,qend),x_acc(2,qend),x_acc(3,qend))
fprintf('\nE: %8.3f m,  N: %8.3f m,  U: %8.3f m\n',mean(e),mean(n),mean(u))

figure;
plot(1:qend,[(e-e(1))' (n-n(1))' (u-u(1))']*1000,'linewidth',2)
title('Estimates of Baseline Using Age-Weighting','fontsize',16)
ylabel('State Vector, Changes Relative to Initial Epoch [mm]','fontsize',16)
xlabel('Epochs [1 s interval]','fontsize',16)
legend('East','North','Up')
set(gca,'fontsize',16)
legend

print -deps easy6e
%%%%%%%%%%%%%%%%%%%%%% end easy6e.m  %%%%%%%%%%%%%%%%%%%







?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美综合在线| 亚洲国产三级在线| 久久精品无码一区二区三区| 日韩欧美国产wwwww| 欧美一区二区三区啪啪| 欧美精品一卡两卡| 337p亚洲精品色噜噜噜| 欧美一激情一区二区三区| 日韩午夜精品电影| 精品对白一区国产伦| 国产亚洲一区字幕| 国产精品私房写真福利视频| 国产精品成人一区二区艾草| 中文字幕一区二区三区在线播放 | 欧美情侣在线播放| 欧美日韩精品二区第二页| 宅男在线国产精品| 日韩欧美久久久| 国产网站一区二区| 亚洲三级久久久| 亚洲一区二区视频在线观看| 日韩精品电影一区亚洲| 九一久久久久久| 国产一区二区在线看| 成人精品鲁一区一区二区| 色哟哟欧美精品| 欧美日韩亚州综合| 日韩精品在线看片z| 国产欧美一区二区精品久导航| 亚洲国产成人在线| 一级做a爱片久久| 日韩电影在线看| 成人午夜视频在线观看| 在线这里只有精品| 日韩欧美国产系列| 国产精品第四页| 亚洲高清久久久| 国产一区二区电影| 在线免费观看日韩欧美| 日韩三级电影网址| 成人免费一区二区三区视频 | 美女脱光内衣内裤视频久久网站 | 91首页免费视频| 欧美嫩在线观看| 久久欧美一区二区| 亚洲自拍都市欧美小说| 久久se这里有精品| 91久久精品日日躁夜夜躁欧美| 欧美一级高清大全免费观看| 国产精品视频第一区| 日本午夜精品视频在线观看| 大桥未久av一区二区三区中文| 欧美日韩精品一区二区| 久久精品欧美一区二区三区麻豆| 亚洲精品你懂的| 国产精品资源在线观看| 欧美日韩国产一级片| 中国av一区二区三区| 日本sm残虐另类| 99久久精品国产毛片| 精品国产伦一区二区三区观看体验 | 欧美xxxx在线观看| 一区二区三区日韩| 成人一级视频在线观看| 日韩免费观看2025年上映的电影| 亚洲色图在线看| 国产精品123区| 日韩欧美久久久| 午夜精品国产更新| 91美女蜜桃在线| 国产午夜亚洲精品午夜鲁丝片| 日韩精品三区四区| 日本道精品一区二区三区| 国产欧美日韩亚州综合 | av爱爱亚洲一区| 欧美岛国在线观看| 日韩激情中文字幕| 91麻豆国产在线观看| 欧美激情在线观看视频免费| 精品午夜一区二区三区在线观看| 欧美影视一区二区三区| 亚洲成人免费视| 99国产精品久久久久久久久久久 | 久久精品国产第一区二区三区| 欧美日免费三级在线| 一区二区三区久久久| 波多野结衣中文字幕一区二区三区 | 日本道色综合久久| 亚洲色图欧洲色图婷婷| 岛国精品在线播放| 欧美国产一区视频在线观看| 国产精品一二一区| 2021久久国产精品不只是精品| 日本三级亚洲精品| 91精品国产综合久久久久久久久久 | 99国产精品久久久| 国产欧美日韩在线视频| 国产美女一区二区三区| 精品国产百合女同互慰| 日本成人在线看| 日韩三级视频中文字幕| 日韩不卡免费视频| 4438成人网| 捆绑调教美女网站视频一区| 91精品国产欧美一区二区| 日韩专区在线视频| 这里只有精品电影| 久久精品国产一区二区| 精品国产a毛片| 国产精品资源网| 国产精品久久久久久久久晋中 | 欧美国产日韩亚洲一区| 国产91精品在线观看| 亚洲国产精品av| 99久久精品免费看国产| 亚洲精品菠萝久久久久久久| 欧美日韩一级视频| 日韩 欧美一区二区三区| 日韩一区二区不卡| 狠狠色2019综合网| 中文字幕欧美激情| 91视频精品在这里| 一区二区三区欧美亚洲| 欧美一区日韩一区| 国产精品一区在线| 国产精品的网站| 欧美日本视频在线| 久久精品国产99国产精品| 欧美国产丝袜视频| 欧美亚男人的天堂| 日本强好片久久久久久aaa| 精品国内二区三区| 91伊人久久大香线蕉| 亚洲v中文字幕| 2019国产精品| 91免费国产在线观看| 日本不卡一区二区| 久久九九国产精品| 欧美最猛黑人xxxxx猛交| 日本成人超碰在线观看| 国产精品入口麻豆九色| 欧美三级在线看| 久久99精品国产| 亚洲日本免费电影| 欧美一卡2卡3卡4卡| 丁香六月久久综合狠狠色| 一区二区在线观看免费视频播放 | 亚洲色图欧美在线| 欧美一区二区视频在线观看2022| 国产精品亚洲а∨天堂免在线| 亚洲乱码精品一二三四区日韩在线| 91精品在线麻豆| www.在线成人| 免费人成精品欧美精品| 日韩毛片视频在线看| 制服丝袜亚洲播放| 91亚洲精华国产精华精华液| 日本女人一区二区三区| 成人欧美一区二区三区视频网页| 欧美一区二区三区免费| 99久久99久久精品国产片果冻| 捆绑调教一区二区三区| 一区二区三区 在线观看视频| 精品日韩av一区二区| 精品视频1区2区| eeuss鲁片一区二区三区在线看| 男女视频一区二区| 亚洲免费高清视频在线| 精品99一区二区三区| 欧美日韩亚洲综合一区 | 欧美一区二区久久久| 不卡一区在线观看| 久草这里只有精品视频| 亚洲影院理伦片| 国产精品网站导航| 欧美v日韩v国产v| 欧美日韩激情一区二区三区| va亚洲va日韩不卡在线观看| 国产综合一区二区| 日日骚欧美日韩| 亚洲愉拍自拍另类高清精品| 国产精品系列在线| 2020国产精品自拍| 日韩一区二区三区av| 欧美日韩一区三区四区| 91国偷自产一区二区三区成为亚洲经典 | 国产欧美日韩中文久久| 欧美成人vps| 在线不卡的av| 欧美人xxxx| 欧美三日本三级三级在线播放| 91免费视频网址| 99久久夜色精品国产网站| 国产伦精品一区二区三区免费| 蜜臀久久久久久久| 日韩精品亚洲一区二区三区免费| 亚洲国产精品一区二区www在线| 亚洲蜜臀av乱码久久精品蜜桃| 国产精品第四页| 国产精品麻豆一区二区|