Code

MATLAB Code:


%% 1. Download and Partition
% Author:               SmallSatCat
% Date Created:         08/07/2017
% Last Updated:         08/07/2017
% Possible Updates:   

%% Download Database
url = 'http://smallsatcat.org/dat/overall/index_2018-10-27.txt';
data = webread(url, 'Timeout', 600);

%% Save Database
filename = 'SmallSatCat.txt';
fileID = fopen(filename, 'w');
fprintf(fileID, '%s', data);
fclose(fileID);

%% Partition Database
% Everything except from the NORAD ID is read out as string, this is done
% for convenience, but can easily be changed for example for the
% frequencies
filename = 'SmallSatCat.txt';
fid = fopen(filename, 'r');
SmallSatCat = textscan(fid, '%d %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s', ...
        'Delimiter', ';', 'EndOfLine', '\n', 'HeaderLines', 1);
fclose(fid);