IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37526


Ignore:
Timestamp:
Oct 22, 2014, 12:49:08 PM (12 years ago)
Author:
eugene
Message:

copy max image ID to new header; modify verbosity

Location:
branches/eam_branches/ipp-20140904/Ohana/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID.c

    r37525 r37526  
    119119    NdeleteImages ++;
    120120
    121     if (VERBOSE) fprintf (stderr, "delete extern ID: %d = image ID %d (seq %d)\n", externID, image[n].imageID, n);
     121    if (VERBOSE) fprintf (stderr, "delete %s extern ID: %d = image ID %d (seq %d)\n", image[n].name, externID, image[n].imageID, n);
    122122  }
    123123
     
    455455  for (i = 0; i < Nimage; i++) {
    456456    if (deleteImage[i]) {
    457       fprintf (stderr, "%s : %d : %d : %d\n", image[i].name, image[i].imageID, image[i].parentID, image[i].externID);
     457      fprintf (stderr, "DELETE: %s : %d : %d : %d\n", image[i].name, image[i].imageID, image[i].parentID, image[i].externID);
    458458      continue;
    459459    }
     
    503503  // I want to keep the old DVO_DBID
    504504  char dbID[33];
     505  int imageIDmax;
    505506  if (!gfits_scan (&oldDB->header, "DVO_DBID", "%s", 1, dbID)) {
    506507    fprintf (stderr, "source image table is missing DVO_DBID, exiting\n");
    507508    exit (3);
    508509  }
     510  if (!gfits_scan (&oldDB->header, "IMAGEID", "%d", 1, &imageIDmax)) {
     511    fprintf (stderr, "max image ID is missing, exiting\n");
     512    exit (3);
     513  }
     514  gfits_modify (&db.header, "IMAGEID", "%d", 1, imageIDmax);     
    509515  gfits_modify (&db.header, "DVO_DBID", "%s", 1, dbID);     
    510516
  • branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/dvo_image.c

    r37521 r37526  
    255255  srand48(A);
    256256 
    257   fprintf (stderr, "%ld : %f\n", A, drand48());
    258 
    259257  int i;
    260258  for (i = 0; i < 32; i++) {
Note: See TracChangeset for help on using the changeset viewer.