IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35709


Ignore:
Timestamp:
Jun 24, 2013, 8:44:48 PM (13 years ago)
Author:
eugene
Message:

finish -dup-measures

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

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/Ohana/src/delstar/src/args.c

    r35707 r35709  
    174174    MODE = MODE_DUP_MEASURES;
    175175    remove_argument (N, &argc, argv);
     176    SKIP_IMAGES = TRUE; // we do not need to load the images for -dup-measures
    176177  }
    177178  if ((N = get_argument (argc, argv, "-photcodes"))) {
     
    250251     }*/
    251252
     253  if (MODE == MODE_NONE) usage ();
     254
    252255  if (argc != 1) usage ();
    253256  return (TRUE);
  • branches/eam_branches/ipp-20130509/Ohana/src/delstar/src/delete_duplicate_measures.c

    r35707 r35709  
    8686  }   
    8787
    88   int i;
     88  int i, j;
    8989  for (i = 0; i < table->Nhosts; i++) {
     90
     91    if (sky->Nregions < table->Nhosts) {
     92      // do any of the regions want this host?
     93      int wantThisHost = FALSE;
     94      for (j = 0; j < sky->Nregions; j++) {
     95        if (HostTableTestHost (sky->regions[j], table->hosts[i].hostID)) {
     96          wantThisHost = TRUE;
     97          break;
     98        }
     99      }
     100      if (!wantThisHost) {
     101        // fprintf (stderr, "skip host %s\n", table->hosts[i].hostname);
     102        continue;
     103      }
     104    }
    90105
    91106    // ensure that the paths are absolute path names
     
    100115
    101116    char tmpline[1024];
    102     if (VERBOSE)       { snprintf (tmpline, 1024, "%s -v",              command);                    strcpy (command, tmpline); }
    103     if (VERBOSE2)      { snprintf (tmpline, 1024, "%s -vv",             command);                    strcpy (command, tmpline); }
     117    if (VERBOSE)    { snprintf (tmpline, 1024, "%s -v",      command);             strcpy (command, tmpline); }
     118    if (VERBOSE2)   { snprintf (tmpline, 1024, "%s -vv",     command);             strcpy (command, tmpline); }
     119    if (SINGLE_CPT) { snprintf (tmpline, 1024, "%s -cpt %s", command, SINGLE_CPT); strcpy (command, tmpline); }
     120    if (UPDATE)     { snprintf (tmpline, 1024, "%s -update", command);             strcpy (command, tmpline); }
    104121
    105122    fprintf (stderr, "command: %s\n", command);
Note: See TracChangeset for help on using the changeset viewer.