IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28376


Ignore:
Timestamp:
Jun 16, 2010, 5:57:21 PM (16 years ago)
Author:
eugene
Message:

add options to stacktool to limit by zero point

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r28375 r28376  
    237237    PXOPT_COPY_F32(config->args,  where, "-select_iq_m4_min",          "camProcessedExp.iq_m4", ">=");
    238238    PXOPT_COPY_F32(config->args,  where, "-select_iq_m4_max",          "camProcessedExp.iq_m4", "<=");
     239    PXOPT_COPY_F32(config->args,  where, "-select_zpt_obs_min",        "camProcessedExp.zpt_obs", ">=");
     240    PXOPT_COPY_F32(config->args,  where, "-select_zpt_obs_max",        "camProcessedExp.zpt_obs", "<=");
    239241
    240242    PXOPT_COPY_STR(config->args,  where, "-select_exp_type",           "rawExp.exp_type", "==");
     
    456458            tess_id,
    457459            filter,
    458             NULL, // software_ver
     460            NULL, // software_ver
    459461            note);
    460462
     
    657659        tess_id,
    658660        filter,
    659         NULL, // software_ver
     661        NULL, // software_ver
    660662        note);
    661663
     
    988990
    989991    psTrace("czw.test",1,"Received versions: pslib %s psmodules %s psphot %s ppstats %s ppstack %s streaks %s\n",
    990             ver_pslib,ver_psmodules,ver_psphot,ver_ppstats,ver_ppstack,ver_streaks);
     992            ver_pslib,ver_psmodules,ver_psphot,ver_ppstats,ver_ppstack,ver_streaks);
    991993    psString software_ver = NULL;
    992994    if ((ver_pslib)&&(ver_psmodules)) {
     
    10051007      software_ver = pxMergeCodeVersions(software_ver,ver_streaks);
    10061008    }
    1007    
     1009
    10081010    // default values
    10091011    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
     
    10451047                               good_frac,
    10461048                               fault,
    1047                                software_ver,
     1049                               software_ver,
    10481050                               quality
    10491051          )) {
     
    10561058
    10571059    if (fault == 0) {
    1058         // Set stackRun software if we are finished.
    1059         if (!pxSetRunSoftware(config, "stackRun", "stack_id", stack_id, software_ver)) {
    1060           if (!psDBRollback(config->dbh)) {
    1061             psError(PS_ERR_UNKNOWN, false, "database error");
    1062           }
    1063           psError(PS_ERR_UNKNOWN, false, "failed to set stackRun.software_ver for stack_id: %" PRId64,
    1064                   stack_id);
    1065           return(false);
    1066         }
     1060        // Set stackRun software if we are finished.
     1061        if (!pxSetRunSoftware(config, "stackRun", "stack_id", stack_id, software_ver)) {
     1062          if (!psDBRollback(config->dbh)) {
     1063            psError(PS_ERR_UNKNOWN, false, "database error");
     1064          }
     1065          psError(PS_ERR_UNKNOWN, false, "failed to set stackRun.software_ver for stack_id: %" PRId64,
     1066                  stack_id);
     1067          return(false);
     1068        }
    10671069
    10681070        if (!setstackRunState(config, stack_id, "full")) {
  • trunk/ippTools/src/stacktoolConfig.c

    r28375 r28376  
    8888    psMetadataAddF64(definebyqueryArgs, PS_LIST_TAIL, "-select_iq_m4_min", 0, "define min iq_m4", NAN);
    8989    psMetadataAddF64(definebyqueryArgs, PS_LIST_TAIL, "-select_iq_m4_max", 0, "define max iq_m4", NAN);
     90    psMetadataAddF64(definebyqueryArgs, PS_LIST_TAIL, "-select_zpt_obs_min", 0, "define min zero point", NAN);
     91    psMetadataAddF64(definebyqueryArgs, PS_LIST_TAIL, "-select_zpt_obs_max", 0, "define max zero point", NAN);
    9092    psMetadataAddS32(definebyqueryArgs, PS_LIST_TAIL, "-random", 0, "use this number of random elements", 0);
    9193    psMetadataAddS32(definebyqueryArgs, PS_LIST_TAIL, "-min_num", 0, "minimum number of inputs", 0);
Note: See TracChangeset for help on using the changeset viewer.