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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? readyuma.m

?? 此功能包用于各種GPS坐標(biāo)和時間的轉(zhuǎn)換
?? M
字號:
function [gps_alm, glo_alm] = readyuma(filename,rollover_flag)

% [gps_alm, glo_alm] = readyuma(filename,rollover_flag);
%
% Read in YUMA formatted GPS, GLONASS, or user created almanacs.
%
% Inputs:
%   filename - name of almanac file to read or GPS week number. (optional) 
%               The files must have the naming convention of gps###.alm and 
%               glo###.alm (or gls####.alm) if using the week number to specify a 
%               file for GPSor GLONASS. If a filename instead of a GPS week number  
%               is specified, only the gps_alm matrix will be returned and it 
%               will contain the almanac data for the given file. If not provided
%               the FIND_ALM function will locate the most recent GPS and GLONASS
%               almanacs. This function can also be used to read user created
%               almanacs, by providing the full almanac name and extension. The data
%               is returned in the gps_alm field.  Almanac names are stored as
%               mod(1024) weeks to conform to YUMA standards.
%   rollover_flag - flag indicating the number of GPS week rollovers that have
%               occured (1-st rollover on August 22, 1999) (optional, default = 1).
%               GPS time is kept as total number of GPS weeks (weeks go beyond 1024)
%               The GPS week in the almanac will be replaced with the GPS_week + 1024
%               for a rollover flag of 1.
%               
% Outputs:
%   gps_alm  - GPS almanac data matrix for all the GPS satellites found 
%               in the specified almanac file. (nx13)
%   glo_alm  - GLONASS almanac data matrix for all the GLONASS satellites 
%               found in the specified almanac file.  Supported when an 
%               almanac week number is provided. (mx13) 
%
% Note: Yuma almanac format is as follows...       
%       [sv_num, health, ecc, GPS_sec, inc, asc_node_rate, sqrt_a, ...
%        long of asc. node at weekly epoch,...
%        perigee, mean_anomaly, Af0, Af1, GPS_week] 
%       with units of rad, s, and m^.5
%
% See also FIND_ALM, KEP2GEPH

% Written by: Jimmy LaMance 11/1/96
% Copyright (c) 1998 by Constell, Inc.

% functions called: FIND_ALM

%%%%% BEGIN VARIABLE CHECKING CODE %%%%%
% declare the global debug mode
global DEBUG_MODE

if nargin < 2
  rollover_flag = 1;
end % if

if nargin == 0 
  if nargout == 2
    [inputfile(1,:), inputfile(2,:)] = find_alm; 
  else
    [inputfile(1,:)] = find_alm; 
  end % if nargout == 2    
end % if nargin == 0
  
% Check inputs to determine if a filename or week number was provided
if nargin >= 1
  if isstr(filename)        % if the input is a string
    inputfile = filename;   % set the read file name to the input
  else                      % else, ...generate the file name based on input week
   
    % do a sanity check on the week number
    GPS_week_max = 3640;    % maximum value of GPS weeks
    GPS_week_min = 0;       % minimum value of GPS weeks
  
    if filename > GPS_week_max | filename < GPS_week_min
      fprintf('The GPS week provided (%d) is out of bounds. \n',filename);
      fprintf('Mimimum and maximum values are %d and %d.\n',...
               GPS_week_max,GPS_week_min);
      if DEBUG_MODE
        fprintf('Error message from READYUMA: \n');
        fprintf('The GPS week variable (filename) to READYUMA is out of bounds.\n');
        return 
      else
        error('The GPS week variable (filename) to READYUMA is out of bounds.')
      end % if DEBUG_MODE
    end % if filename > GPS_week_max | filename < GPS_week_min 

  
    % set up the file name for the GPS almanac using the user provided week
    inputfile(1,:) = sprintf('gps%d.alm',filename);   % GPS almanac
 
    % if 2 output variables were requested, set up the file name for the 
    % GLONASS almanac also
    if nargout == 2
      inputfile(2,:) = sprintf('glo%d.alm',filename);   % GLONASS almanac
    
    end % if nargout == 2
  end % if isstr(filename)
end % if nargin == 1

%%%%% END VARIABLE CHECKING CODE %%%%%

%%%%% BEGIN ALGORITHM CODE %%%%%

% compute how many almanac files there are based on the size of the inputfile
num_almanac_files = size(inputfile,1);

% Open almanac file(s) for reading
for i = 1:num_almanac_files
  fid_all(i) = fopen(inputfile(i,:),'r');
end % for i = 1:num_almanac_files  

% Verify that the opens were successful and set up which files will be read
if num_almanac_files == 1
  
  % check for a valid file ID for the GPS almanac
  if fid_all(1) < 0     
    fprintf('Unable to open the almanac file %s. \n', inputfile(1,:))
    fprintf('Check that the file name and path are correct.\n');
    fprintf('No GPS almanac will be returned\n')
    gps_alm = [];
    if DEBUG_MODE
      fprintf('Error message from READYUMA: \n');
      fprintf('Incorrect or invalid file/path name for GPS almanac.\n');
      return 
    else
      error('Incorrect or invalid file/path name for GPS almanac.')
    end % if DEBUG_MODE
  end % if fid_all(1) < 0

% else if there are GPS and GLONASS almanac files
elseif num_almanac_files == 2
  
  % check that both GPS and GLONASS almanacs were opened correctly
  if fid_all(1) < 0 & fid_all(2) < 0
    fprintf('Unable to open a GPS or GLONASS almanac file %s %s. \n', inputfile(1,:),inputfile(2,:))
    fprintf('Check that the file names and path are correct.\n');
    fprintf('No almanac data will be returned\n\n')
    gps_alm = [];
    glo_alm = [];
    if DEBUG_MODE
      fprintf('Error message from READYUMA: \n');
      fprintf('Incorrect or invalid file/path name for GPS and GLONASS almanacs.\n');
      return 
    else
      error('Incorrect or invalid file/path name for GPS and GLONASS almanacs.')
    end % if DEBUG_MODE
  
  % check that the GPS almanac was opened correctly
  elseif fid_all(1) < 0
    fprintf('Unable to open the almanac file %s. \n', inputfile(1,:))
    fprintf('Check that the file name and path are correct.\n');
    fprintf('No GPS almanac will be returned.\n\n')
    gps_alm = [];

  % check that the GLONASS almanac was opened correctly
  elseif fid_all(2) < 0
    fprintf('Unable to open the almanac file %s. \n', inputfile(2,:))
    fprintf('Check that the file name and path are correct.\n');
    fprintf('No GLONASS almanac will be returned.\n\n')
    glo_alm = [];

  end % if fid_all(1) < 0 & fid_all(2) < 0

end % if num_almanac_file == 1  

% set up a matrix of almanac files to read (don't read the ones with invalid
% file IDs)
I_valid_file = find(fid_all ~= -1);
alm_files_to_read = length(I_valid_file);

for k = 1:alm_files_to_read
  fid = fid_all(I_valid_file(k));     % set the file identifier for this loop
  
  % Read through the file and fill in the almanac matrix

  err_msg = blanks(0);                 % set the error message to blank  
  end_of_file = 0;              % set the end of file flag to 0
                                % using the not makes the logic a little easier 
  read_error = 0;               % set a flag if a read error has occurred 
  num_lines_per_almanac = 13;   % 15 lines for each sat. in the almanac file
                              
  satellite_count = 1;          % counter with the the current satellite count
  almanac_head = fgetl(fid);    % get the header line for the first satellite

  if ~isstr(almanac_head)       % does the line read contain a string
    if almanac_head == -1       % is there an end of file on the first line
      end_of_file = 1;
      read_error = 1;           % read error in the given almanac file
    end % if almanac_head == -1
  end % if ~isstr(almanac_head)
  
  clear alm                     % clear any previous almanacs
  
  while end_of_file == 0 & read_error == 0
  
    for i = 1:num_lines_per_almanac
      almanac_line = fgetl(fid);      % get the next line from the almanac file

      if almanac_line == -1           % is there an end of file
        end_of_file = 1;              % set end of file flag

      else
        I_colon = find(almanac_line == ':');  % find the colon in the line
        if isempty(I_colon)   				  % search for a '('
          I_colon = find(almanac_line == ')');
        end
        
        I_end = size(almanac_line,2);         % find the end of the line
      
        if any(I_colon) & I_end > 3              % valid almanac line
           [alm(satellite_count,i),read_count,err_msg] = ...
            sscanf(almanac_line(I_colon+1:I_end),'%f');    
        else
          read_error = 1;                     % set the read error flag
          keyboard
        end % if any(I_colon) & I_end > 3 

        if ~isempty(err_msg)                 % verify the read was successfull
          read_error = 1;                   % set no_read_error flag
          i = num_lines_per_almanace + 1;   % set loop parameter to exit loop
        end % if any(err_msg)

      end % if almanac_line == -1                                            
    
    end % for i = 1:num_lines_per_almanac                                                                        

    almanac_tail = fgetl(fid);       % get the tailer line for this satellite
    almanac_head = fgetl(fid);       % get the header line for next satellite

    if ~isstr(almanac_tail) | ~isstr(almanac_head)
      if almanac_head == -1 | almanac_tail == -1      % is there an end of file 
        end_of_file = 1;
      end % if almanac_head == -1
    end % if ~isstr(almanac_tail) | ~isstr(almanac_head) 
  
    
    satellite_count = satellite_count + 1;  % increment the satellite counter
    
  end % while end_of_file == 0 & no_read_error  

  if I_valid_file(k) == 1      % the almanac should fo in the GPS almanac return
    gps_alm = alm;
  
  elseif I_valid_file(k) == 2  % the almanac should fo in the GLONASS almanac return
    glo_alm = alm;
  
  end % if k == 1
  
  fclose(fid);  % close the file just read
  
end % for k = 1:num_almanac_files

if rollover_flag ~= 0
  gps_alm(:,13) = gps_alm(:,13) + rollover_flag*1024;
  glo_alm(:,13) = gps_alm(:,13) + rollover_flag*1024;
end % if rollover_flag ~= 0

%%%%% END ALGORITHM CODE %%%%%

% end of READYUMA

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本道色综合久久| 国产一区二区福利视频| 色呦呦国产精品| 亚洲精品一二三区| 欧美性受xxxx黑人xyx| 天堂蜜桃91精品| 日韩欧美成人午夜| 国产一区视频在线看| 亚洲国产精品成人久久综合一区| 成人国产一区二区三区精品| 亚洲日本va在线观看| 欧美在线一区二区三区| 青椒成人免费视频| 国产精品入口麻豆九色| 91麻豆精东视频| 青青草精品视频| 国产精品色婷婷久久58| 欧美日韩精品专区| 国产精品一级黄| 亚洲国产精品麻豆| 精品福利一二区| 91麻豆福利精品推荐| 日韩国产精品91| 国产精品天干天干在线综合| 欧美日韩精品一区二区在线播放| 国产在线播精品第三| 亚洲欧美日韩国产成人精品影院 | av不卡免费在线观看| 亚洲国产裸拍裸体视频在线观看乱了 | 亚洲国产日韩在线一区模特| 精品国产成人在线影院 | 国产成人亚洲综合a∨婷婷| 亚洲免费看黄网站| 欧美精品一区二区精品网| 91热门视频在线观看| 国产又黄又大久久| 亚洲一区二区三区中文字幕| 欧美精品一区二区蜜臀亚洲| 欧美午夜精品一区二区蜜桃| 成人动漫精品一区二区| 免费av网站大全久久| 亚洲视频你懂的| 久久综合色综合88| 在线播放/欧美激情| 99re热这里只有精品免费视频| 日韩精品一级中文字幕精品视频免费观看| 色综合网色综合| 色综合久久99| 蜜臀久久99精品久久久画质超高清| 欧美国产激情一区二区三区蜜月| 欧美丰满少妇xxxxx高潮对白| 99视频精品在线| 国产又黄又大久久| 久久国产视频网| 亚洲成av人综合在线观看| 国产精品乱人伦一区二区| 日韩欧美成人午夜| 欧美一区二区网站| 欧美日韩中文字幕精品| 91极品美女在线| 99vv1com这只有精品| 91免费小视频| 一区二区三区日韩精品| 9191国产精品| 狂野欧美性猛交blacked| 亚洲一二三区视频在线观看| 中文字幕在线免费不卡| 久久精品在线免费观看| 日韩精品一区二区三区在线观看 | 日韩国产在线观看一区| 亚洲精品网站在线观看| 国产精品国产自产拍高清av| 久久久久久久综合色一本| 精品国产伦一区二区三区免费| 制服丝袜亚洲精品中文字幕| 欧美久久久久久蜜桃| 欧美男女性生活在线直播观看| 欧美午夜理伦三级在线观看| 在线免费观看不卡av| 91美女在线看| 91福利精品第一导航| 欧美亚洲禁片免费| 欧美日本在线看| 日韩在线一二三区| 国产美女久久久久| 国产成人av自拍| 国产综合久久久久影院| 经典三级一区二区| 成人性生交大片免费看在线播放 | 欧美日本国产一区| 91精品国产色综合久久ai换脸| 欧美猛男超大videosgay| 555www色欧美视频| 26uuu亚洲综合色欧美| 久久久99精品免费观看| 亚洲日本在线视频观看| 肉色丝袜一区二区| 国精产品一区一区三区mba桃花 | 色国产精品一区在线观看| 欧美性一二三区| 精品久久久久久综合日本欧美| 久久久综合精品| 亚洲日穴在线视频| 奇米综合一区二区三区精品视频 | 成人白浆超碰人人人人| 91久久精品网| 欧美成人r级一区二区三区| 欧美激情综合网| 亚洲伊人伊色伊影伊综合网| 久久精工是国产品牌吗| av资源网一区| 欧美老肥妇做.爰bbww视频| 久久精品在这里| 亚洲成a人v欧美综合天堂下载| 狠狠色综合日日| 91九色最新地址| 精品国产91久久久久久久妲己 | 日韩和的一区二区| 成人激情小说乱人伦| 欧美另类变人与禽xxxxx| 国产精品丝袜久久久久久app| 亚洲高清免费视频| 丰满白嫩尤物一区二区| 欧美一区二区啪啪| 最新中文字幕一区二区三区 | 一区二区国产视频| 国产一区二区在线电影| 欧美亚洲动漫精品| 国产精品不卡一区| 精久久久久久久久久久| 精品视频免费在线| 国产精品国产三级国产普通话蜜臀| 视频在线观看一区| av电影在线观看一区| 久久久欧美精品sm网站| 日产国产高清一区二区三区| a亚洲天堂av| 国产欧美一区二区精品性色超碰| 午夜欧美视频在线观看| 91在线观看高清| 中文字幕第一页久久| 国产一区视频在线看| 日韩一级二级三级| 五月婷婷久久丁香| 色妞www精品视频| 国产精品每日更新| 国产成人av电影在线| 久久久一区二区三区| 精品一区二区免费看| 日韩视频不卡中文| 天天av天天翘天天综合网| 色综合激情久久| 中文字幕一区在线| 丁香激情综合五月| 国产亚洲污的网站| 国产一区二区精品久久91| 欧美成人一区二区| 欧美a一区二区| 欧美一级二级三级蜜桃| 天堂成人免费av电影一区| 欧美日韩国产美| 午夜亚洲福利老司机| 欧美日韩三级一区| 午夜电影网一区| 91精品在线免费观看| 青草av.久久免费一区| 日韩精品一区二区三区老鸭窝 | 亚洲国产岛国毛片在线| 国产传媒欧美日韩成人| 国产女人18水真多18精品一级做| 国产又黄又大久久| 中文字幕欧美三区| jlzzjlzz亚洲日本少妇| 樱花草国产18久久久久| 欧美猛男男办公室激情| 日本亚洲三级在线| 精品国产91洋老外米糕| 粉嫩欧美一区二区三区高清影视 | 日本欧美一区二区在线观看| 91精品国产综合久久香蕉麻豆| 国产亚洲欧美在线| 欧美日韩高清一区二区不卡| 国产一区二区不卡老阿姨| 亚洲国产综合91精品麻豆 | 99久久免费视频.com| 国产精品久久久久久久蜜臀 | 国产人成亚洲第一网站在线播放| 国产成a人亚洲| 亚洲免费av观看| 欧美剧情片在线观看| 肉肉av福利一精品导航| 久久影院午夜论| 一本久久a久久精品亚洲| 亚洲国产精品一区二区久久| 精品日产卡一卡二卡麻豆| 国产91在线|亚洲| 亚洲成a人片在线观看中文| 久久影院午夜论| 日本精品一级二级| 麻豆视频一区二区|