IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2005, 4:51:08 PM (21 years ago)
Author:
eugene
Message:

updating spreg to autocode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/spreg/modify.c

    r3491 r3509  
    22# include "spreg.h"
    33
    4 void ModifySubset (DB *db, Spectrum *spectrum, int Nspectrum, int *match, int Nmatch) {
     4void ModifySubset (FITS_DB *db, Spectrum *spectrum, int Nspectrum, int *match, int Nmatch) {
    55
    66  int i, j, Nold;
     
    3838  }
    3939
    40   fits_vtable_from_ftable (&vtable, &db[0].ftable, match, Nmatch);
     40  /** we may later want to pull this out and put it elsewhere **/
     41  fits_vtable_from_ftable (&db[0].ftable, &vtable, match, Nmatch);
    4142  for (i = 0; i < Nmatch; i++) {
    42     fits_convert_Spectrum (vtable.buffer[i], 1);
     43    fits_convert_Spectrum ((Spectrum *) vtable.buffer[i], sizeof (Spectrum), 1);
    4344  }
    4445  fits_db_update (db, &vtable);
     46  fits_db_close (db);
     47  fits_db_free (db);
     48
    4549  fprintf (stderr, "SUCCESS\n");
    4650  exit (0);
    47 
    4851}
Note: See TracChangeset for help on using the changeset viewer.