IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25935


Ignore:
Timestamp:
Oct 23, 2009, 12:17:32 PM (17 years ago)
Author:
eugene
Message:

fix camtool -definebyquery usage of the label selection; add comments to clarify the label source for other definebyquery functions

Location:
trunk/ippTools/src
Files:
7 edited

Legend:

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

    r25840 r25935  
    9898    pxcamGetSearchArgs (config, where);
    9999    PXOPT_COPY_S64(config->args, where,  "-cam_id",    "camRun.cam_id", "==");
    100     pxAddLabelSearchArgs (config, where, "-label",     "camRun.label", "==");
     100    pxAddLabelSearchArgs (config, where, "-label",     "camRun.label", "=="); // define using camRun label
    101101    PXOPT_COPY_STR(config->args, where,  "-reduction", "camRun.reduction", "==");
    102102
  • trunk/ippTools/src/camtool.c

    r25851 r25935  
    109109    psMetadata *where = psMetadataAlloc();
    110110    pxcamGetSearchArgs (config, where);
    111     pxAddLabelSearchArgs (config, where, "-label", "camRun.label", "==");
    112     PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "==");
     111    pxAddLabelSearchArgs (config, where, "-label", "chipRun.label", "=="); // define using chipRun label
     112    PXOPT_COPY_STR(config->args, where, "-reduction", "chipRun.reduction", "==");
    113113
    114114    if (!psListLength(where->list) &&
     
    199199    }
    200200
    201     // loop over our list of camRun rows
     201    // loop over our list of chipRun rows
    202202    for (long i = 0; i < psArrayLength(output); i++) {
    203203        psMetadata *md = output->data[i];
    204204
    205         camRunRow *row = camRunObjectFromMetadata(md);
     205        chipRunRow *row = chipRunObjectFromMetadata(md);
    206206        if (!row) {
    207             psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into camRun");
     207            psError(PS_ERR_UNKNOWN, false, "failed to convert metadata into chipRun");
    208208            psFree(output);
    209209            return false;
  • trunk/ippTools/src/chiptool.c

    r25851 r25935  
    129129    psMetadata *where = psMetadataAlloc();
    130130    pxchipGetSearchArgs (config, where); // rawExp only
    131     pxAddLabelSearchArgs (config, where, "-label", "newExp.label", "LIKE");
     131    pxAddLabelSearchArgs (config, where, "-label", "newExp.label", "LIKE"); // define using newExp label
    132132
    133133    // psListLength(where->list) is at least 1 because exp_type defaults to "object"
  • trunk/ippTools/src/faketool.c

    r25851 r25935  
    130130    PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "dateobs", "<=");
    131131    PXOPT_COPY_STR(config->args, where, "-exp_tag", "exp_tag", "==");
    132     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     132    pxAddLabelSearchArgs (config, where, "-label", "label", "=="); // XXX does this choose the right label?
    133133    PXOPT_COPY_STR(config->args, where, "-filelevel", "filelevel", "==");
    134134    PXOPT_COPY_STR(config->args, where, "-reduction", "reduction", "==");
  • trunk/ippTools/src/magicdstool.c

    r25837 r25935  
    124124    PXOPT_COPY_S32(config->args, where, "-streaks_max","streaks", "<=");
    125125
    126     pxAddLabelSearchArgs (config, where, "-label", "magicRun.label", "==");
     126    pxAddLabelSearchArgs (config, where, "-label", "magicRun.label", "=="); // define using magicRun label
    127127
    128128    ippStage stageNum = ippStringToStage(stage);
  • trunk/ippTools/src/stacktool.c

    r25851 r25935  
    145145    PXOPT_COPY_F32(config->args,  where, "-select_fwhm_minor_min",     "camProcessedExp.fwhm_minor", ">=");
    146146    PXOPT_COPY_F32(config->args,  where, "-select_fwhm_minor_max",     "camProcessedExp.fwhm_minor", "<=");
    147     PXOPT_COPY_F32(config->args,  where, "-select_iq_m2_max",     "camProcessedExp.iq_m2", "<=");
    148     PXOPT_COPY_F32(config->args,  where, "-select_iq_m2_min",     "camProcessedExp.iq_m2", ">=");
    149     PXOPT_COPY_F32(config->args,  where, "-select_iq_m3_max",     "camProcessedExp.iq_m3", "<=");
    150     PXOPT_COPY_F32(config->args,  where, "-select_iq_m4_min",     "camProcessedExp.iq_m4", ">=");
    151     PXOPT_COPY_F32(config->args,  where, "-select_iq_m4_max",     "camProcessedExp.iq_m4", "<=");
     147    PXOPT_COPY_F32(config->args,  where, "-select_iq_m2_max",          "camProcessedExp.iq_m2", "<=");
     148    PXOPT_COPY_F32(config->args,  where, "-select_iq_m2_min",          "camProcessedExp.iq_m2", ">=");
     149    PXOPT_COPY_F32(config->args,  where, "-select_iq_m3_max",          "camProcessedExp.iq_m3", "<=");
     150    PXOPT_COPY_F32(config->args,  where, "-select_iq_m4_min",          "camProcessedExp.iq_m4", ">=");
     151    PXOPT_COPY_F32(config->args,  where, "-select_iq_m4_max",          "camProcessedExp.iq_m4", "<=");
    152152   
    153153    PXOPT_COPY_STR(config->args,  where, "-select_exp_type",           "rawExp.exp_type", "==");
    154154    PXOPT_COPY_F32(config->args,  where, "-select_good_frac_min",      "warpSkyfile.good_frac", ">=");
    155155    PXOPT_COPY_STR(config->args,  where, "-select_skycell_id",         "warpSkyfile.skycell_id", "==");
    156     pxAddLabelSearchArgs (config, where, "-select_label",              "warpRun.label", "LIKE");
     156    pxAddLabelSearchArgs (config, where, "-select_label",              "warpRun.label", "LIKE"); // define using warp label
    157157
    158158    // these are used to build the HAVING restriction
  • trunk/ippTools/src/warptool.c

    r25851 r25935  
    247247    PXOPT_COPY_F32(config->args,   where, "-sun_angle_max",      "rawExp.sun_angle",      "<");
    248248    PXOPT_COPY_STR(config->args,   where, "-reduction",          "fakeRun.reduction",     "==");
    249     pxAddLabelSearchArgs (config,  where, "-label",             "fakeRun.label",         "==");
     249    pxAddLabelSearchArgs (config,  where, "-label",              "fakeRun.label",         "=="); // define using fake label
    250250
    251251    if (!psListLength(where->list) &&
     
    676676    PXOPT_COPY_STR(config->args, where, "-skycell_id", "warpSkyCellMap.skycell_id", "==");
    677677    PXOPT_COPY_STR(config->args, where, "-tess_id",    "warpSkyCellMap.tess_id", "==");
    678     // PXOPT_COPY_STR(config->args, where, "-label",      "warpRun.label", "==");
    679678    pxAddLabelSearchArgs (config, where, "-label",     "warpRun.label", "==");
    680679    PXOPT_COPY_S16(config->args, where, "-fault",      "warpSkyCellMap.fault", "==");
     
    12941293    PXOPT_COPY_STR(config->args, where, "-tess_id",    "warpSkyfile.tess_id", "==");
    12951294    PXOPT_COPY_STR(config->args, where, "-reduction",  "rawExp.reduction", "==");
    1296     // PXOPT_COPY_STR(config->args, where, "-label",      "warpRun.label", "==");
    12971295    pxAddLabelSearchArgs (config, where, "-label",     "warpRun.label", "==");
    1298     PXOPT_COPY_S16(config->args, where, "-fault",       "warpSkyfile.fault", "==");
     1296    PXOPT_COPY_S16(config->args, where, "-fault",      "warpSkyfile.fault", "==");
    12991297
    13001298    if (!psListLength(where->list)
Note: See TracChangeset for help on using the changeset viewer.