Merges two JPL binary ephemeris files into a third binary ephemeris file.
ephcom_eph2eph reads in two JPL binary ephemeris files and merges them into a third binary ephemeris file. The first two files must have the same JPL ephemeris number, Earth-Moon Mass Ratio (EMRAT), distance of an AU (in kilometers), number of constants in the header, and number of coefficients in a data block. Otherwise, they were not generated from the same ephemeris and are not compatible.
The two input files must be adjacent in time, with either one ending exactly where the other begins, or with some overlap between the end of the first file and the beginning of the second. Otherwise, there would be a gap with unknown coefficients for a date span.
As an intentional side effect, ephcom_eph2eph will remove several formatting errors in the original JPL files: the last data block (a copy of the second to last block) is not repeated; ASCII start and stop dates in the header are corrected; ipt[*] and lpt contain the next possible coefficient location rather than 0 (this is the preferred format, as communicated by JPL's Myles Standish to Paul Hardy); data in unused portions of the header is set to all zeroes.
This is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this package; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/copyleft/lesser.html on the web.