# include "imregister.h"
# include "spreg.h"
static char *version = "spregister $Revision: 1.1.1.1 $";

int main (int argc, char **argv) {
 
  Spectrum *spectrum, *pspectrum;
  int i, status, Nnew;
  float *dtime;

  get_version (argc, argv, version);
  args (argc, argv);
  spectrum = spinfo (argv[1]);

  Nnew = 1;
  pspectrum = &spectrum[0];

  if (NoReg) exit (0);

  set_db (SpectrumDB);
  status = load_db ();
  if (!status) {
    create_db ();
  }
  append_db (pspectrum, Nnew);
}


/* notes:
   SpectrumDB set in args:ConfigInit by config variable SPECTRUM_DB

*/
