This function creates for writing a new SPK file whose pathname is the string pointed to by filename, and returns an ephemeris descriptor associated to it. If a file with the same name already exists, it is overwritten.
The function writeph_close() must be called to free memory allocated by this function.
The following example creates a new ephemeris file ephemeris.bsp
t_writephbin *weph;
weph = writeph_spk_create("ephemeris.bsp","asteroid_1");
if (weph)
{
/* ... compute and write to weph ... */
writeph_close(weph);
}