IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19434


Ignore:
Timestamp:
Sep 9, 2008, 9:28:07 AM (18 years ago)
Author:
Paul Price
Message:

Adding search on label to stacktool -tosum

Location:
trunk/ippTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/stacktool_tosum.sql

    r19092 r19434  
    44    stackRun.skycell_id,
    55    stackRun.workdir,
     6    stackRun.label,
    67    rawExp.camera
    78FROM stackRun
  • trunk/ippTools/src/stacktool.c

    r19369 r19434  
    315315            "new",                      // state
    316316            workdir,
    317             label,
    318             reduction,
    319             dvodb,
     317            label,
     318            reduction,
     319            dvodb,
    320320            registered,
    321321            skycell_id,
     
    356356        // this insert needs to use exactly the same restrictions (race condition is probably not critical)
    357357        // the insert below seems to only restrict matches to the skycell, tess, and filter
    358         if ((randomLimit > 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter, randomLimit)) ||
     358        if ((randomLimit > 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter, randomLimit)) ||
    359359            (randomLimit <= 0 && !p_psDBRunQuery(config->dbh, thisInsert, skycell_id, filter))) {
    360360            psError(PS_ERR_UNKNOWN, false, "database error");
     
    419419        "new",                          // state
    420420        workdir,
    421         label,
    422         reduction,
    423         dvodb,
     421        label,
     422        reduction,
     423        dvodb,
    424424        registered,
    425425        skycell_id,
     
    611611    PXOPT_COPY_S64(config->args, where, "-warp_id", "warp_id", "==");
    612612    PXOPT_COPY_S64(config->args, where, "-stack_id", "stack_id", "==");
     613    PXOPT_COPY_STR(config->args, where, "-label", "label", "==");
    613614
    614615    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
     
    708709                               uri,
    709710                               path_base,
    710                                "full",  // data_state
     711                               "full",  // data_state
    711712                               bg,
    712713                               bg_stdev,
  • trunk/ippTools/src/stacktoolConfig.c

    r19369 r19434  
    114114    psMetadata *tosumArgs = psMetadataAlloc();
    115115    psMetadataAddS64(tosumArgs, PS_LIST_TAIL, "-stack_id", 0,            "search by stack ID", 0);
     116    psMetadataAddStr(tosumArgs, PS_LIST_TAIL, "-label", 0, "search by label", NULL);
    116117    psMetadataAddS64(tosumArgs, PS_LIST_TAIL, "-warp_id", 0,            "search by warp ID", 0);
    117118    psMetadataAddU64(tosumArgs, PS_LIST_TAIL, "-limit",  0,            "limit result set to N items", 0);
Note: See TracChangeset for help on using the changeset viewer.