IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35619


Ignore:
Timestamp:
Jun 3, 2013, 8:44:41 AM (13 years ago)
Author:
eugene
Message:

add -verify-catalogs option to dvomerge (skips loading the images and IDmap)

Location:
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/include/dvomerge.h

    r35594 r35619  
    2626int    VERBOSE;
    2727int    VERIFY;
     28int    VERIFY_CATALOG_ONLY;
    2829int    IMAGES_ONLY;
    2930char   CATDIR[256];
  • branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/args.c

    r35597 r35619  
    1515  /* verify merge status of output tables, but do not modify */
    1616  VERIFY = FALSE;
     17  VERIFY_CATALOG_ONLY = FALSE;
    1718  if ((N = get_argument (*argc, argv, "-verify"))) {
    1819    VERIFY = TRUE;
     
    2122  if ((N = get_argument (*argc, argv, "-check-only"))) {
    2223    VERIFY = TRUE;
     24    remove_argument (N, argc, argv);
     25  }
     26  if ((N = get_argument (*argc, argv, "-verify-catalogs"))) {
     27    VERIFY = TRUE;
     28    VERIFY_CATALOG_ONLY = TRUE;
    2329    remove_argument (N, argc, argv);
    2430  }
     
    144150    remove_argument (N, argc, argv);
    145151  }
     152  if ((N = get_argument (*argc, argv, "-verify-catalogs"))) {
     153    VERIFY = TRUE;
     154    VERIFY_CATALOG_ONLY = TRUE;
     155    remove_argument (N, argc, argv);
     156  }
    146157
    147158  /* replace measurement, don't duplicate */
  • branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeImageIDs.c

    r34405 r35619  
    8787  int    status;
    8888
     89  if (VERIFY && VERIFY_CATALOG_ONLY) return TRUE;
     90
    8991  /*** load input1/Images.dat ***/
    9092  sprintf (ImageCat, "%s/Images.dat", input);
  • branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c

    r35594 r35619  
    167167  snprintf (IDmapFilename, DVO_MAX_PATH, "%s/IDmap.fits", absoutput);
    168168
    169   // save IDmap information
    170   if (!IDmapSave (IDmapFilename, IDmap)) {
    171     fprintf (stderr, "ERROR: failure to save the image ID map\n");
    172     exit (1);
     169  if (!VERIFY_CATALOG_ONLY) {
     170    // save IDmap information
     171    if (!IDmapSave (IDmapFilename, IDmap)) {
     172      fprintf (stderr, "ERROR: failure to save the image ID map\n");
     173      exit (1);
     174    }
    173175  }
    174176
     
    198200    if (VERBOSE)             { snprintf (tmpline, DVO_MAX_PATH, "%s -v",       command); strcpy (command, tmpline); }
    199201    if (VERIFY)              { snprintf (tmpline, DVO_MAX_PATH, "%s -verify",  command); strcpy (command, tmpline); }
     202    if (VERIFY_CATALOG_ONLY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify-catalogs",  command); strcpy (command, tmpline); }
    200203    if (REPLACE_BY_PHOTCODE) { snprintf (tmpline, DVO_MAX_PATH, "%s -replace", command); strcpy (command, tmpline); }
    201204
  • branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomerge_client.c

    r33963 r35619  
    5555  snprintf (IDmapFilename, DVO_MAX_PATH, "%s/IDmap.fits", absoutput);
    5656
    57   // save IDmap information
    58   IDmap = IDmapLoad (IDmapFilename);
    59   if (!IDmap) {
    60     fprintf (stderr, "ERROR: failure to save the image ID map\n");
    61     exit (1);
     57  if (!VERIFY_CATALOG_ONLY) {
     58    // save IDmap information
     59    IDmap = IDmapLoad (IDmapFilename);
     60    if (!IDmap) {
     61      fprintf (stderr, "ERROR: failure to save the image ID map\n");
     62      exit (1);
     63    }
    6264  }
    6365
Note: See TracChangeset for help on using the changeset viewer.