ReadAsteroidDatabase:

Path: Interplanetary/Ephemeris

% Read in an asteroid database file and return elements
 Reads the file astorb.dat found at http://naic.edu/~nolan/astorb.html. A short
 version is included with the toolbox. For the full version you need to
 download astrob.dat and put it in your MATLAB path.

 There are four ways of selecting asteroids:

   'all'               All of the asteroids in the database
   [1 7 300]           Selected lines in the database
   'ceres'             Name of one asteroid
   {'ceres' 'egeria'}  A cell array of names

 If no outputs are given, it will display the asteroids and propagate
 them for one Earth year. It draws the orbits of the Earth and Jupiter
 for reference.

 Type ReadAsteroidDatabase for a demo using astorbshort.dat.
--------------------------------------------------------------------------
   Form:
   [el, jD, name, id] = ReadAsteroidDatabase( 'all' )
   [el, jD, name, id] = ReadAsteroidDatabase( 'ceres' )
   [el, jD, name, id] = ReadAsteroidDatabase( [1 7 300] )
   [el, jD, name, id] = ReadAsteroidDatabase( {'ceres' 'netis'} )
   ReadAsteroidDatabase( 'ceres' ); % make plot
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   a     (-)     Asteroids to return (see above)
   file (1,:)    Optional file name

   ------
   Output
   ------
   el    (:,6)	  Elements
   jD    (:,1)	  Julian date of epoch
   name  {:}     Names
   id    {:}     Id (may not be a number)

--------------------------------------------------------------------------
   Reference: http://naic.edu/~nolan/astorb.html
--------------------------------------------------------------------------

Children:

SC: BasicOrbit/El2RV
Common: Database/Constant
Common: General/StringMatch
Common: Graphics/NewFig
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Time/Date2JD

Back to the Interplanetary Module page