IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 23, 2005, 8:55:22 PM (21 years ago)
Author:
eugene
Message:

converted to the libohana/dvo_image I/O routines; improvements in fits_db.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/delstar/src/delete_imagefile.c

    r4611 r4864  
    11# include "delstar.h"
    22
    3 void delete_imagefile (char *filename) {
     3void delete_imagefile (FITS_DB *db, char *filename) {
    44
    5   int i, j;
    6   int Nregions, Nimlist;
     5  int i, Nregions, Nimlist;
    76  int *imlist;
    87  double trange;
     
    4140    start = image[0].tzero;
    4241    stop  = image[0].tzero + trange;
    43     find_matches (&catalog, image[j].source, start, stop);
     42    find_matches (&catalog, image[0].source, start, stop);
    4443    wcatalog (&catalog);
    4544    unlock_catalog (&catalog);
     
    4746
    4847  /* find and delete matching images */
    49   imlist = find_images_data (image, &Nimlist);
     48  imlist = find_images_data (db, image, &Nimlist);
    5049  if (!Nimlist) Shutdown ("image %s not found in db", filename);
    5150
    52   dimages (imlist, Nimlist);
     51  fits_vtable_from_ftable (&db[0].ftable, &db[0].vtable, imlist, Nimlist);
     52  dvo_image_update (db, VERBOSE);
     53  unlock_image_db (db);
    5354
    54   save_image_db ();
    55   unlock_image_db ();
    5655  fprintf (stderr, "SUCCESS\n");
    5756  exit (0);
Note: See TracChangeset for help on using the changeset viewer.