Demonstrate using PropgateOrbitPlugin in batch

Loads the saved file OPDemo.mat ------------------------------------------------------------------------ See also PropagateOrbitPlugIn ------------------------------------------------------------------------

%--------------------------------------------------------------------------
%   Copyright (c) 2000 Princeton Satellite Systems, Inc. All rights reserved.
%--------------------------------------------------------------------------


d = load('OPDemo.mat');
d.epoch.dT = 3600;

global PSS_NO_INTERACTIVE_DEMOS; % for testing

tag = PropagateOrbitPlugIn( 'initialize' );

PropagateOrbitPlugIn( 'set data',     tag, d );
PropagateOrbitPlugIn( 'propagate',    tag );
disp('------------')
disp('-- Paused...');
disp('-- press any key to close the Orbit Propagator GUI and associated plots.')
disp('------------');
if PSS_NO_INTERACTIVE_DEMOS
  pause(1)
else
  pause
end
PropagateOrbitPlugIn(  'close plots', tag );
PropagateOrbitPlugIn(  'quit',        tag );


%--------------------------------------
% PSS internal file version information
%--------------------------------------
------------
-- Paused...
-- press any key to close the Orbit Propagator GUI and associated plots.
------------