IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 29, 2009, 10:03:09 PM (17 years ago)
Author:
bills
Message:

in -warped mode (list mode) require selection args or -all (not reccomended)
also allow selection by dateobs and destreak status

File:
1 edited

Legend:

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

    r25324 r25682  
    11981198    PXOPT_COPY_STR(config->args, where, "-exp_name",   "rawExp.exp_name", "==");
    11991199    PXOPT_COPY_S64(config->args, where, "-fake_id",    "fakeRun.fake_id", "==");
     1200    PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawExp.dateobs",  ">=");
     1201    PXOPT_COPY_TIME(config->args, where, "-dateobs_end",   "rawExp.dateobs",  "<=");
     1202    PXOPT_COPY_STR(config->args, where, "-filter",     "rawExp.filter", "==");
     1203
     1204    PXOPT_LOOKUP_BOOL(destreaked, config->args, "-destreaked", false);
     1205
    12001206
    12011207    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
    12021208    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
     1209    PXOPT_LOOKUP_BOOL(all, config->args, "-all", false);
    12031210
    12041211    // find all rawImfiles matching the default query
     
    12131220        psStringAppend(&query, " AND %s", whereClause);
    12141221        psFree(whereClause);
     1222    } else if (!all) {
     1223        psError(PXTOOLS_ERR_DATA, true, "search parameters or -all are required");
     1224        return false;
    12151225    }
    12161226    psFree(where);
     1227
     1228    if (destreaked) {
     1229        psStringAppend(&query, " AND warpSkyfile.magicked != 0");
     1230    }
    12171231
    12181232    // treat limit == 0 as "no limit"
Note: See TracChangeset for help on using the changeset viewer.