IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 2, 2010, 9:54:29 AM (16 years ago)
Author:
bills
Message:

various enhancements to camtool -processedexp to support the postage stamp server

File:
1 edited

Legend:

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

    r26981 r27133  
    686686    PXOPT_COPY_S64(config->args, where, "-cam_id",    "camRun.cam_id",    "==");
    687687    pxAddLabelSearchArgs (config, where, "-label",    "camRun.label",     "==");
     688    pxAddLabelSearchArgs (config, where, "-data_group", "camRun.data_group",     "LIKE");
    688689    PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "==");
    689690
    690     if (!psListLength(where->list) &&
     691    psString where2 = NULL;
     692    if (!pxspaceAddWhere(config, &where2, "rawExp")) {
     693        psError(psErrorCodeLast(), false, "pxSpaceAddWhere failed");
     694        return false;
     695    }
     696    if (!pxmagicAddWhere(config, &where2, "chipRun")) {
     697        psError(psErrorCodeLast(), false, "pxSpaceAddWhere failed");
     698        return false;
     699    }
     700    if (!psListLength(where->list) && !where2 &&
    691701        !psMetadataLookupBool(NULL, config->args, "-all")) {
    692702        psFree(where);
     
    725735    }
    726736    psFree(where);
     737    if (where2) {
     738        psStringAppend(&query, " %s", where2);
     739        psFree(where2);
     740    }
    727741
    728742    // order by cam_id so that the postage stamp parser can easliy find the 'latest' astrometry
    729     psStringAppend(&query, " ORDER BY cam_id");
     743    psStringAppend(&query, " ORDER BY exp_id, cam_id");
    730744
    731745    // treat limit == 0 as "no limit"
Note: See TracChangeset for help on using the changeset viewer.