call horizon online matlab version
Call horizons online matlab version .
A matlab version of callhorizons.
But not the same ,you have to read horizons_doc carefully ,and check the data carefully .
runtests('queryHorizonsTest');% run the test
target=queryHorizons('499');% for Mars
target=target.set_discreteepochs([2457446.177083, 2457446.182343,2457448.182343]);
target=target.get_ephemerides('O44');% lijiang Station
% you can get elements like
target=target.get_elements() % sun centered
target=target.get_elements('SSB') % SSB centered
target=queryHorizons('Ceres');
target=target.set_epochrange('2016-02-26', '2016-10-25', '1d')
target=target.get_ephemerides('O44');
target=target.get_vectors();% get vector in (J2000, earth mean equator plane,SSB center)
''''
target.originSrc % the origin source from Horizon
target.data % the formated ephemrides from source , a matlab table format
target.official_name % check the name of object
target.getitme('RA',1) % get the first RA
target.data{1,'RA'} % the same to the up
target.getitme('RA',:) % get all RA
target.fields % show all items
''''