IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2024, 9:16:02 AM (2 years ago)
Author:
eugene
Message:

shakedown the xcstack-related tools; make staticsky definebyquery skycell_id selection a LIKE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/ippTools/src/xcfftool.c

    r42597 r42699  
    180180    PXOPT_COPY_S64(config->args, warpWhereMD, "-select_warp_id",         "warpRun.warp_id",         "==");
    181181    PXOPT_COPY_F32(config->args, warpWhereMD, "-select_good_frac_min",   "warpSkyfile.good_frac",  ">=");
    182     // XXX is is really necessary to limit the warps?
     182    // it is necessary to limit the warps otherwise the warpQueryTemplate (line 282) will be ill-formed
    183183    if (!psListLength(warpWhereMD->list)) {
    184184        psError(PXTOOLS_ERR_CONFIG, false, "warp search parameters are required");
     
    279279    psString warpQueryTemplate = pxDataGet("xcfftool_definebyquery_select_warps.sql");
    280280
     281    // note the GROUP BY: if warpWhereMD is empty, this contruction
     282    // will yield nonsense
    281283    whereClause = psDBGenerateWhereConditionSQL(warpWhereMD, NULL);
    282     psStringAppend(&warpQueryTemplate, "\n AND %s", whereClause);
     284    psStringAppend(&warpQueryTemplate, "\n AND %s GROUP BY warp_id", whereClause);
    283285
    284286    for (long i = 0; i < output->n; i++) {
Note: See TracChangeset for help on using the changeset viewer.