IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 29, 2010, 3:55:49 PM (16 years ago)
Author:
eugene
Message:

update merges from trunk

Location:
branches/eam_branches/20100225
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20100225

  • branches/eam_branches/20100225/ippTools/src/camtool.c

    r26981 r27517  
    255255    PXOPT_COPY_S64(config->args, where, "-cam_id",    "camRun.cam_id", "==");
    256256    PXOPT_COPY_STR(config->args, where, "-label",     "camRun.label", "==");
     257    PXOPT_COPY_STR(config->args, where, "-data_group","camRun.data_group", "==");
    257258    PXOPT_COPY_STR(config->args, where, "-state",     "camRun.state", "==");
    258259    PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "==");
     
    266267
    267268    // pxUpdateRun gets parameters from config->args and updates
    268     bool result = pxUpdateRun(config, where, &query, "camRun", true);
     269    bool result = pxUpdateRun(config, where, &query, "camRun", "cam_id", "camProcessedExp", true);
    269270    if (!result) {
    270271        psError(psErrorCodeLast(), false, "pxUpdateRun failed");
     
    686687    PXOPT_COPY_S64(config->args, where, "-cam_id",    "camRun.cam_id",    "==");
    687688    pxAddLabelSearchArgs (config, where, "-label",    "camRun.label",     "==");
     689    pxAddLabelSearchArgs (config, where, "-data_group", "camRun.data_group",     "LIKE");
    688690    PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "==");
    689691
    690     if (!psListLength(where->list) &&
     692    psString where2 = NULL;
     693    if (!pxspaceAddWhere(config, &where2, "rawExp")) {
     694        psError(psErrorCodeLast(), false, "pxSpaceAddWhere failed");
     695        return false;
     696    }
     697    if (!pxmagicAddWhere(config, &where2, "chipRun")) {
     698        psError(psErrorCodeLast(), false, "pxSpaceAddWhere failed");
     699        return false;
     700    }
     701    if (!psListLength(where->list) && !where2 &&
    691702        !psMetadataLookupBool(NULL, config->args, "-all")) {
    692703        psFree(where);
     
    725736    }
    726737    psFree(where);
     738    if (where2) {
     739        psStringAppend(&query, " %s", where2);
     740        psFree(where2);
     741    }
    727742
    728743    // order by cam_id so that the postage stamp parser can easliy find the 'latest' astrometry
    729     psStringAppend(&query, " ORDER BY cam_id");
     744    psStringAppend(&query, " ORDER BY exp_id, cam_id");
    730745
    731746    // treat limit == 0 as "no limit"
Note: See TracChangeset for help on using the changeset viewer.