UWBIns/lib/gnss/get_eph.m
2025-04-16 20:15:33 +08:00

17 lines
542 B
Matlab
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function eph = get_eph(ephemeridesfile)
%GET_EPH The ephemerides contained in ephemeridesfile
% are reshaped into a matrix with 21 rows and
% as many columns as there are ephemerides.
% Typical call eph = get_eph('rinex_n.dat')
%Kai Borre 10-10-96
%Copyright (c) by Kai Borre
%$Revision: 1.0 $ $Date: 1997/09/26 $
fide = fopen(ephemeridesfile);
[eph, count] = fread(fide, Inf, 'double');
noeph = count/23;
eph = reshape(eph, 23, noeph); % ephΪһ¸ö23ÐÐnoephÁеľØÕó
%%%%%%%% end get_eph.m %%%%%%%%%%%%%%%%%%%%%