IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 29, 2012, 7:44:16 AM (14 years ago)
Author:
bills
Message:

in staticskytool -result add -num_filters and select where num_filters >=
so that one can say things like
staticskytool -result -skycell_id skycell.0866.051 -num_filters 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/staticskytool.c

    r33384 r33385  
    638638    PXOPT_COPY_STR(config->args, where, "-skycell_id", "stackRun.skycell_id", "LIKE");
    639639    PXOPT_COPY_S16(config->args, where, "-fault",      "staticskyResult.fault", "==");
     640    PXOPT_LOOKUP_S32(num_filters, config->args, "-num_filters", false, false);
    640641
    641642    PXOPT_LOOKUP_BOOL(all, config->args, "-all", false);
     
    662663
    663664    psStringAppend(&query, "\nGROUP BY sky_id");
     665    if (num_filters) {
     666        psStringAppend(&query, "\nHAVING COUNT(filter) >= %d", num_filters);
     667    }
     668       
    664669
    665670    // treat limit == 0 as "no limit"
Note: See TracChangeset for help on using the changeset viewer.