IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 23, 2005, 6:18:28 PM (21 years ago)
Author:
eugene
Message:

working towards autocode FITS table support

File:
1 edited

Legend:

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

    r2803 r3491  
    22# include "spreg.h"
    33
    4 void ModifySubset (int *match, int Nmatch) {
     4void ModifySubset (DB *db, Spectrum *spectrum, int Nspectrum, int *match, int Nmatch) {
    55
    66  int i, j, Nold;
    77  char *tmppath;
    8   int Nspectrum;
    9   Spectrum *spectrum;
     8  VTable vtable;
    109
    1110  Nold = 0;
    1211  tmppath = NULL;
    13 
    14   spectrum = get_spectra (&Nspectrum);
    1512
    1613  /* create some necessary variables */
     
    4138  }
    4239
    43   update_db (match, Nmatch);
     40  fits_vtable_from_ftable (&vtable, &db[0].ftable, match, Nmatch);
     41  for (i = 0; i < Nmatch; i++) {
     42    fits_convert_Spectrum (vtable.buffer[i], 1);
     43  }
     44  fits_db_update (db, &vtable);
    4445  fprintf (stderr, "SUCCESS\n");
    4546  exit (0);
Note: See TracChangeset for help on using the changeset viewer.