IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36597


Ignore:
Timestamp:
Mar 18, 2014, 3:35:31 PM (12 years ago)
Author:
bills
Message:

various bug fixes in fftool

Location:
tags/ipp-20140114/ippTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20140114/ippTools/share/fftool_definebyquery_select_warps.sql

    r36441 r36597  
    55    JOIN chipRun USING(chip_id)
    66    JOIN rawExp USING(exp_id)
     7    JOIN skycell ON skycell.tess_id = warpSkyfile.tess_id AND skycell.skycell_id = warpSkyfile.skycell_id
    78WHERE warpRun.tess_id = '%s' AND warpSkyfile.skycell_id = '%s' AND rawExp.filter = '%s'
    89    AND warpRun.state = 'full' AND warpSkyfile.quality = 0 and warpSkyfile.fault = 0
  • tags/ipp-20140114/ippTools/src/fftool.c

    r36546 r36597  
    139139
    140140    psMetadata *warpWhereMD = psMetadataAlloc();
    141     pxAddLabelSearchArgs(config, warpWhereMD, "-select_warp_label",     "fullForceRun.label",           "LIKE");
    142     pxAddLabelSearchArgs(config, warpWhereMD, "-select_warp_data_group","fullForceRun.data_group",      "LIKE");
    143     PXOPT_COPY_S64(config->args, warpWhereMD, "-select_warp_id",        "fullForceRun.warp_id",         "==");
     141    pxAddLabelSearchArgs(config, warpWhereMD, "-select_warp_label",     "warpRun.label",           "LIKE");
     142    pxAddLabelSearchArgs(config, warpWhereMD, "-select_warp_data_group","warpRun.data_group",      "LIKE");
     143    PXOPT_COPY_S64(config->args, warpWhereMD, "-select_warp_id",        "warpRun.warp_id",         "==");
    144144    if (!psListLength(warpWhereMD->list)) {
    145145        psError(PXTOOLS_ERR_CONFIG, false, "warp search parameters are required");
     
    155155    }
    156156
    157     PXOPT_COPY_STR(config->args, warpWhereMD, "-select_tess_id",       "fullForceRun.tess_id",         "==");
    158     pxAddLabelSearchArgs(config, warpWhereMD, "-select_filter",        "fullForceRun.filter",          "LIKE");
     157    PXOPT_COPY_STR(config->args, warpWhereMD, "-select_tess_id",       "warpRun.tess_id",         "==");
     158    pxAddLabelSearchArgs(config, warpWhereMD, "-select_filter",        "rawExp.filter",          "LIKE");
     159#ifdef notdef
    159160    if (!pxskycellAddWhere(config, warpWhereMD)) {
    160161        psError(PXTOOLS_ERR_CONFIG, false, "failed to add skycell search arguments");
     
    163164        return false;
    164165    }
    165 
     166#endif
    166167
    167168    PXOPT_LOOKUP_BOOL(rerun, config->args, "-rerun", false);
     
    502503    psMetadata *where = psMetadataAlloc();
    503504    PXOPT_COPY_S64(config->args, where, "-ff_id",      "fullForceRun.ff_id", "==");
    504     PXOPT_COPY_S64(config->args, where, "-warp_id",    "fullForceRun.warp_id", "==");
     505    PXOPT_COPY_S64(config->args, where, "-warp_id",    "fullForceResult.warp_id", "==");
    505506    PXOPT_COPY_S64(config->args, where, "-skycal_id",  "fullForceRun.skycal_id", "==");
    506507    PXOPT_COPY_S64(config->args, where, "-stack_id",   "stackRun.stack_id", "==");
Note: See TracChangeset for help on using the changeset viewer.