image thumbnail

read_teqc_compact

by

 

17 Apr 2011 (Updated )

Reads teqc's QC compact files more rapidly -- without for loops.

read_teqc_compact_out (varargin)
function varargout = read_teqc_compact_out (varargin)
    if (nargout ~= 1),  varargout = varargin;  return;  end
    fields = {'obs', 'epoch', 'prn', 'sys'};
    if (nargin > 4),  fields{end+1} = 'azim';  end
    if (nargin > 5),  fields{end+1} = 'elev';  end
    varargout = {cell2struct(varargin, fields, 2)};
    if (nargin < 5),  return;  end
    % some might prefer teqc's name (these are only pointers):
    varargout{1}.azi = varargout{1}.azim;
    varargout{1}.ele = varargout{1}.elev;
end

Contact us