IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 30, 2018, 5:07:23 PM (8 years ago)
Author:
eugene
Message:

add avselect function to dvo (returns all matched objects within a radius of a list of points)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/mmatch.c

    r39457 r40523  
    8484
    8585  // parse the fields to be extracted and returned
    86   int first = 3;
    87   if (CoordsFile) {
    88     first = 1;
    89   }
     86  // this is a syntax check that we can perform before reading the input vectors
     87  // NOTE: This block is missing in avmatch / avselect
     88  int first = CoordsFile ? 1 : 3;
    9089  fields = dbCmdlineFields (argc-first, &argv[first], DVO_TABLE_MEASURE, &last, &Nfields);
    9190  if (fields == NULL) goto help;
     
    166165    }     
    167166
     167    // NOTE: image metadata is only needed to mmatch (not avmatch) since measures are tied to images, not averages
    168168    if (loadImages) {
    169169      Image *image;
     
    245245    char hostfile[1024];
    246246    snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist[0].regions[i]->name);
     247
    247248    dvo_catalog_init (&catalog, TRUE);
    248249    catalog.filename = HOST_ID ? hostfile : skylist[0].filename[i];
     
    265266
    266267    // returns the matches to AVERAGE objects; what do we do for each MEASURE?
    267     find_matches_by_vectors (skylist[0].regions[i], &catalog, RAvec, DECvec, RADIUS, index);
     268    find_matches_by_vectors_closest (skylist[0].regions[i], &catalog, RAvec, DECvec, RADIUS, index);
    268269
    269270    for (j = 0; (j < Nelem) && !interrupt; j++) {
     
    331332  ClearInterrupt (old_sigaction);
    332333
     334  // XXXX ???? this seems odd
    333335  for (n = 0; n < Nfields; n++) {
    334336    ResetVector (vec[n], fields[n].type, Npts);
Note: See TracChangeset for help on using the changeset viewer.