IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2011, 5:33:35 PM (15 years ago)
Author:
heather
Message:

addtool -definebyquery didn't do what we wanted with -filter and -stage
staticsky. It now does. The cam search things are only used on cam stage (not
stack or staticsky, where it doesn't make sense)

File:
1 edited

Legend:

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

    r31375 r31596  
    117117
    118118    psMetadata *where = psMetadataAlloc();
    119     pxcamGetSearchArgs (config, where);
     119    //  pxcamGetSearchArgs (config, where);
    120120    PXOPT_COPY_S64(config->args, where,  "-cam_id",    "camRun.cam_id", "==");
    121121    PXOPT_COPY_S64(config->args, where,  "-stack_id",    "stackRun.stack_id", "==");
     
    123123    PXOPT_LOOKUP_STR(stage,       config->args, "-stage", false, false);
    124124    if (strcmp(stage, "cam")== 0) {
    125 
     125      pxcamGetSearchArgs (config, where);
    126126    pxAddLabelSearchArgs (config, where, "-label",     "camRun.label", "=="); // define using camRun label
    127127    pxAddLabelSearchArgs (config, where, "-data_group","camRun.data_group", "=="); // define using camRun label
     128
    128129    PXOPT_COPY_STR(config->args, where,  "-reduction", "camRun.reduction", "==");
    129130    }
     
    133134    pxAddLabelSearchArgs (config, where, "-data_group","stackRun.data_group", "=="); // define using camRun label
    134135    PXOPT_COPY_STR(config->args, where,  "-reduction", "stackRun.reduction", "==");
     136    pxAddLabelSearchArgs (config, where, "-filter",     "stackRun.filter", "=="); // define using camRun label
    135137    }
    136138    if (strcmp(stage, "staticsky")== 0) {
     
    139141    pxAddLabelSearchArgs (config, where, "-data_group","staticskyRun.data_group", "=="); // define using camRun label
    140142    PXOPT_COPY_STR(config->args, where,  "-reduction", "staticskyyRun.reduction", "==");
     143    pxAddLabelSearchArgs (config, where, "-filter",     "stackRun.filter", "=="); // define using camRun label
    141144    }
    142145   
Note: See TracChangeset for help on using the changeset viewer.