IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16826


Ignore:
Timestamp:
Mar 5, 2008, 10:57:34 AM (18 years ago)
Author:
Paul Price
Message:

Adding -all flag to allow all skycells to be queued for stacking. Gets around the requirement that there be some -select_whatever flag.

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r16726 r16826  
    119119    PXOPT_COPY_F32(config->args, where, "-select_solang_max", "solang", "<=");
    120120
    121     if (!psListLength(where->list)) {
     121    if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
    122122        psFree(where);
    123123        psError(PXTOOLS_ERR_DATA, false, "search parameters are required");
     
    174174    for (long i = 0; i < psArrayLength(output); i++) {
    175175        psMetadata *md = output->data[i];
    176        
     176
    177177        // pull out the warp_id, skycell_id, & tess_id
    178178        bool status;
     
    617617    // constrants
    618618    if (!stackSumSkyfileInsert(config->dbh,
    619                                (psS64)atoll(stack_id),
    620                                uri,
    621                                path_base,
    622                                bg,
    623                                bg_stdev,
    624                                dtime_stack,
    625                                hostname,
    626                                good_frac,
    627                                code
    628           )) {
     619                               (psS64)atoll(stack_id),
     620                               uri,
     621                               path_base,
     622                               bg,
     623                               bg_stdev,
     624                               dtime_stack,
     625                               hostname,
     626                               good_frac,
     627                               code
     628          )) {
    629629        if (!psDBRollback(config->dbh)) {
    630630            psError(PS_ERR_UNKNOWN, false, "database error");
  • trunk/ippTools/src/stacktoolConfig.c

    r16724 r16826  
    4545    psTime *now = psTimeGetNow(PS_TIME_TAI);
    4646
    47     // -definebyquery
     47    // -queue
    4848    psMetadata *queueArgs = psMetadataAlloc();
    4949    psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-workdir", 0,
     
    8888            "define max solar angle", NAN);
    8989
     90    psMetadataAddBool(queueArgs, PS_LIST_TAIL, "-all",  0,
     91            "allow everything to be queued without search terms", false);
    9092    psMetadataAddBool(queueArgs, PS_LIST_TAIL, "-simple",  0,
    9193            "use the simple output format", false);
Note: See TracChangeset for help on using the changeset viewer.