The conversion of an event's arrival time to TDB requires the knowledge of the satellite's position at that time. Therefore, the program attempts to open the HK file of type _hkg corresponding to the event list file currently being processed and to get the satellite position data from the ephemeris extension. Per default, the name of the HK file is derived from the event list file name by simply substituting _lev with _hkg. However, there is also the possibility to specify an alternative HK file name via a command line parameter hkfile.
In addition to the satellite position data, the time conversion algorithm in use by baryconv requires the barycentric vectors for the time period in question to be known a priori. This information is comprised in an ASCII file named earth.dat which is part of the standard FTOOLS reference data set (see command line parameter earthfile).
baryconv kv618_lev.fits ra=23.4 dec=88.9 earthfile=./earth.dat
baryconv "a_lev.fits b_lev.fits" earthfile=/usr/local/data/earth.dat